UnitConversion#
- Usage:
UnitConversion Class API Wrapper
- class UnitConversion[source]#
Bases:
object
Wrapper for UnitConversion class of Moldflow Synergy.
- convert_to_si(unit, value)[source]#
Convert value to SI Units.
- Parameters:
unit (str) – Unit Description
value (float) – Value to be converted
- Returns:
The converted value.
- Return type:
float
- convert_to_unit(unit, unit_system, value)[source]#
Convert value to ‘unit system’ units.
- Parameters:
unit (str) – Unit Description
unit_system (SystemUnits | str) – SystemUnits
value (float) – Value to be converted (Must be in SI)
- Returns:
The converted value.
- Return type:
float
- get_unit_description(unit, unit_system)[source]#
Return the unit descriptor in the specified unit System.
- Parameters:
unit (str) – Unit Description
unit_system (SystemUnits | str) – SystemUnits
- Returns:
The unit descriptor in the specified unit System.
- Return type:
str