Hello, I want to ask a question about the dolfinx::fem::Expression. I have read the demo
But this expression is much more complicated than I need. Basically, I only need g = f’, where f and g are 1D functions, so I create my expression as follows
For expressions you need to provide the points on the reference element where you want to evaluate the expression (usually the interpolation points of another function space).
Another option is to choose your own points, as done in:
This depends on what function space you want to interpolate the expression into. As you are working with an interval, do you want to evaluate the derivative at the midpoint of the cell?
Or are you using expression for something else than interpolation, like evaluating the derivative in a subset of cells at some coordinates?
Sorry, I’m a little bit confused about the number “0.5”, is it a local coordinates? Since I have several sub intervals, and it is not necessarily a unit interval.