Interpolating function from base mesh onto extruded mesh (i.e. interpolating from 2D mesh to 3D mesh) #3714
-
Dear community, This qn is a follow-up to my previous one. Is there a way to interpolate from a 2D base mesh (used for a 3D extruded mesh) onto the extruded mesh such that the function is simply a constant in the extruded direction? Also can I add include dependence on the extruded direction by applying a factor? I've been trying to do this (using TensorProductElement with "R"-space in the extruded direction) but keep getting "geometric dimensions of source and destination meshes must match". Apologies if I've missed something obvious ... Search for similar done, no hits. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This is one of those situations where it is better to ask what you are doing a bit more generally. If you are doing stuff in a mixture of base mesh and extruded mesh it is easiest to do the base mesh stuff on the extruded mesh using function spaces that are constant in the extruded direction |
Beta Was this translation helpful? Give feedback.
A bit more thought needs to be applied to the “because faster” statement. The z-independent space has the same number of DOFs as a space on the base mesh, so the linear system solve cost is the same. So there is no advantage to directly using the base mesh.