Hello,
I used the interpolate-function to interploate a function on a given mesh:
from dolfin import *
import numpy as np
i = 10
mesh = UnitSquareMesh(i,i)
F = FunctionSpace(mesh, "Lagrange", 1)
f = Expression("sin(5*x[0])")
inter = Function(F)
inter.interpolate(f)
Now I want to use the result of the interpolation:
if ("inter[xi]" < 0.0):
is it possible to get the values on the meh coordinates?
I need to do it this way. Interpreting the expression at a given point is not an option.
Regards