Hi, if I have two functions f2D and f1D that are defined in 2D and 1D meshes respectively, and I want to interpolate f1D to f2D such that:
f2D(x,y) = f1D(x)
In the old fenics, we can simply use the Lagrange interpolator, but in the dolfinx, it seems like the Lagrange interpolator is removed
If I do: f2D->interplolate(f1D),
I only get f2D(x,y) = f1D(x) when y=0, which means I only get a line, and the rest of the domain is emply.
Is there any functions that I can try?
BTW, in my case, the 2D mesh is [0,L] * [-v,v] and the 1D mesh is [0,L]
More details: my 1D mesh and 2D mesh will always be match, like this:
so it is more like I want to “paste” a 1D function into the 2D grid, maybe it is not that efficient to use interpolate?