mesh

Contents

mesh#

property ModelProps.mesh#

Normalized mesh-stagger object for this quantity.

Wraps the integer _mesh code and the number of coordinate scales in a single Mesh instance via its constructor.

Returns:
outMesh

A Mesh whose bits classify each spatial axis (r, theta, phi) as half or main mesh, with the most-significant bit mapping to \(r\) (the last NumPy axis under PSI’s Fortran convention).

Examples

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