I apologize for being new to this software package. We would like to calculate particle trajectories and for this purpose we need to interpolate from a given mesh to an arbitrary, given point. I found various ways to interpolate between two different meshes, but couldn’t find any discussion for this specific question. Any suggestions would be very helpful to us.
If your FE variable is u, then you can use u(x0,y0,z0) to extract the value at a certain point. As far as I know, it only does interpolation from the function values at the vertices, so its only P1 order.
Thank you very much for taking your time to answer this basic question! Is there any simple way that can interpolate with smooth derivatives without copying the entire mesh to an interpolating function?
Dear Frederic, thank you very much for your response. I would like to obtain the electric / magnetic field values at arbitrary points in space (x, y, z) via an interpolation from the mesh that ensures that both the field and their derivatives are smooth. Typically, nearest-neighbour interpolation from a discrete grid results in continuous functions with non-continuous first derivatives, so I wonder if the method described by aszaboa exhibits the same behaviour in general. I hope my question makes sense.
IN FreeFEM, the interpolation a just get the value of he finite element polynomial approximation,
so generally you have only C0 regularity. If you want better your need to build a regular approximation of your data (this is not simple)
Dear Frederic, thank you very much for your comments; at least it’s good to know that there is no straight-forward implementation that we have overlooked.