Looking for code to evaluate function at given point using dolfinx.fem.Function(np.array([x,y]),cells)

Dear All

I am aware of the syntax as per subject line. However I don’t know which cells

I need to pass to the eval function!

Regards

Moritz

This is explained in for instance:

and

and a convenience function for evaluation (it is not high performant, so do not put it anywhere were you want performance) can be found at API reference — scifem

1 Like