As the title suggests, I would like to map the degrees of freedom from a submesh to the original mesh, and from a boundarymesh to its parent mesh.
If the dof's correspond to vertices (CG1) I can do this by mapping and mapping back the corresponding vertices, using functions like (see second link):
dof_to_vertex_map(Vs)
submesh.data().array('parent_vertex_indices', 0)
boundarymesh.entity_map(0)
vertex_to_dof_map(V)
Now my question is whether there exists a similar piece of information that I can use to relate the degrees of freedom between meshes, not just the vertices? Reason for asking is that my problem requires a CG2 functionspace. Any pointing in the right direction will be helpful.
See also:
interpolate-works-functionspaces-with-degree-polynomials
vertex-mapping-from-submesh-boundarymesh-back-actual-mesh