grids.core.GenericGrid.unit_system#

property GenericGrid.unit_system: UnitSystem#

The unit system associated with the grid.

This unit system determines how physical quantities such as coordinates, gradients, basis vectors, and differential operators are interpreted and scaled. By default, this is the CGS unit system unless explicitly overridden during grid initialization via the units keyword argument.

Returns:

The internal unyt.UnitSystem instance defining the base units for length, time, mass, angle, and other physical dimensions.

Return type:

unyt.UnitSystem

Notes

This property is typically used to:

  • Interpret coordinate values (e.g., in centimeters or meters)

  • Scale gradients and derivatives correctly

  • Generate unit-aware fields and tensors

The unit system is constructed during grid initialization and is immutable thereafter.