ibfoamrig.io.Dimensions#

class ibfoamrig.io.Dimensions(mass=0.0, length=0.0, time=0.0, temperature=0.0, quantity=0.0, current=0.0, luminous_intensity=0.0)[source]#

Bases: NamedTuple

SI base-unit exponents of an OpenFOAM dimensions entry.

The order matches OpenFOAM: [kg m s K mol A cd]. Exponents are floats due to OpenFOAM allowing fractional powers.

Variables:
  • mass (float) – Exponents of kilogram.

  • length (float) – Exponent of metre.

  • time (float) – Exponents of second.

  • temperature (float) – Exponent of kelvin.

  • quantity (float) – Exponent of mole.

  • current (float) – Exponent of current.

  • luminous_intensity (float) – Exponent of candela.

mass: float#

Alias for field number 0

length: float#

Alias for field number 1

time: float#

Alias for field number 2

temperature: float#

Alias for field number 3

quantity: float#

Alias for field number 4

current: float#

Alias for field number 5

luminous_intensity: float#

Alias for field number 6

property is_dimensionless: bool#

True if all exponents are zero.