zoomy_core.mesh package

Contents

zoomy_core.mesh package#

Zoomy mesh hierarchy: BaseMesh → FVMMesh → LSQMesh.

zoomy_core.mesh.ensure_lsq_mesh(mesh, model)#

Promote mesh to an LSQMesh sized for model.

The LSQ polynomial degree is always derived from the model — user code does not set it. model may be a Model, a SystemModel, or a NumericalSystemModel; in every case the resolution path is the same:

  1. The model is promoted to an NSM (if not already one).

  2. nsm.resolved_lsq_degree() returns the max spatial-derivative order required across sm.aux_registry, source_derivative_specs, and any additional_systems.

  3. The mesh’s cached LSQ stencil is built (or rebuilt) at that degree.

Passing an already-built LSQMesh whose cached stencil is of lower degree triggers a rebuild in place.

Parameters:
Return type:

LSQMesh

Submodules#