Skip to content

salvus.mesh.data_structures.salvus_mesh.algorithms.lifting

salvus.mesh.data_structures.salvus_mesh.algorithms.lifting salvus mesh data_structures salvus_mesh algorithms lifting

Lift an embedding to a higher order.

Functions

lift()

def lift(embedding: Mesh, n: types.int_) -> Mesh: ...

Lift an embedding (1st order mesh) to a higher order mesh.

Operates directly on embedding’s blocks, rather than round-tripping through UnstructuredMesh. Only the section (the global DOF numbering) is ever delegated further, to construct_section, which itself falls back to a UnstructuredMesh-based implementation when DMPlex bindings are unavailable — but that fallback does not affect field handling, since it only supplies a DOF numbering, not any of the roundtrip machinery that used to broadcast fields onto every block or stamp block/fluid bookkeeping fields onto them.

elemental_fields, material and linear_solids carry over from each block untouched, as none of them change under a pure degree lift. nodal_fields do not survive the lift: a per-point field defined at the embedding’s points has no well-defined value at the new points added by lifting, so it is dropped rather than silently broadcast or stretched.

Parameters
  • embedding Mesh — The 1st order mesh to lift.
  • n types.int_ — The polynomial order of the GLL basis assigned to each element.
Returns Mesh — The lifted mesh with high-order points attached.