← Back to team overview

dolfin team mailing list archive

Restriction of a function to a submesh

 

Hello,

I am trying to restrict a function to a submesh, and I am not sure how
to do it. I looked at the restriction example, but that example is
restricts the function space. I want to take a nodal function "f" and
restrict it to a submesh.

One way I can think of is to use eval() to find function values at
nodes of submesh,  but this seems highly inefficient. Any one know how
to go about this?

Thanks,
-Jehanzeb


Follow ups