interpolate¶
-
dolfin.fem.interpolation.
interpolate
(v, V)¶ Return interpolation of a given function into a given finite element space.
- Arguments
- v
- a
Function
or anExpression
- V
- a
FunctionSpace (standard, mixed, etc.)
Example of usage
v = Expression("sin(pi*x[0])") V = FunctionSpace(mesh, "Lagrange", 1) Iv = interpolate(v, V)