dof_mapping_quad#
module opensg.utils.shell
- opensg.utils.shell.dof_mapping_quad(V, v2a, V_l, w_ll, boundary_facets_left, entity_mapl)#
Map degrees of freedom between boundary and main meshes.
This function maps the solution from a boundary mesh to the corresponding degrees of freedom in the main mesh.
- Parameters:
V (dolfinx.fem.FunctionSpace) – Function space on main mesh
v2a (dolfinx.fem.Function) – Function to store mapped values
V_l (dolfinx.fem.FunctionSpace) – Function space on boundary mesh
w_ll (dolfinx.fem.Function) – Solution on boundary mesh
boundary_facets_left (array) – Array of boundary facet indices
entity_mapl (array) – Mapping between boundary and main mesh entities
- Returns:
dolfinx.fem.Function – Updated v2a with mapped values