Return projection of given expression v onto the finite element space V.
Example of usage
v = Expression("sin(pi*x[0])") V = FunctionSpace(mesh, "Lagrange", 1) Pv = project(v, V)This is useful for post-processing functions or expressions which are not readily handled by visualization tools (such as for example discontinuous functions).