mesh

Contents

mesh#

property Props.mesh#

Normalized mesh-stagger tuple for this quantity.

Converts the integer _mesh code to a length-3 tuple of Mesh members via _normalize_mesh_code().

Returns:
outtuple[Mesh, Mesh, Mesh] or None

One Mesh value per spatial dimension (r, theta, phi) — in the order they appear in main_mesh() processing (most-significant bit first, mapping to the last numpy axis). Returns None when _mesh is None (coordinate scale arrays have no stagger).

Examples

>>> from psi_io._models import _MAS_QUANTITY_PROPS_MAPPING
>>> from psi_io._mesh import Mesh
>>> _MAS_QUANTITY_PROPS_MAPPING['br'].mesh
(Mesh.HALF, Mesh.MAIN, Mesh.MAIN)
>>> _MAS_QUANTITY_PROPS_MAPPING['t'].mesh
(Mesh.HALF, Mesh.HALF, Mesh.HALF)
>>> _MAS_QUANTITY_PROPS_MAPPING['vr'].mesh
(Mesh.MAIN, Mesh.HALF, Mesh.HALF)