PhysicalQuantity#

class ansys.geometry.core.misc.units.PhysicalQuantity(unit: pint.Unit, expected_dimensions: beartype.typing.Optional[pint.Unit] = None)#

Provides the base class for handling units throughout PyAnsys Geometry.

Parameters:
unitUnit

Units for the class.

expected_dimensionsUnit, default: None

Units for the dimensionality of the physical quantity.

Overview#

unit

Unit of the object.

base_unit

Base unit of the object.

Import detail#

from ansys.geometry.core.misc.units import PhysicalQuantity

Property detail#

property PhysicalQuantity.unit: pint.Unit#

Unit of the object.

property PhysicalQuantity.base_unit: pint.Unit#

Base unit of the object.