UnitsHelper
Last update: 14.01.2025
UnitsHelper
class Ansys.ACT.Mechanical.UnitsHelper
Bases: object
Defines set of methods that can be used to find mechanical unit information
Overview
Constructors
Name | Description |
---|---|
ConvertMechanicalUnitToCoreUnit |
Takes input mechanical unit string and category string |
GetValidQuantityNamesAndUnits |
Retrieve a dictionary of quantity names to unit strings. |
Method detail
classmethod UnitsHelper.ConvertMechanicalUnitToCoreUnit(mechanicalUnit: str, unitCategory: str)
Takes input mechanical unit string and category string
And returns framework unit string which can be used for conversion
classmethod UnitsHelper.GetValidQuantityNamesAndUnits()
Retrieve a dictionary of quantity names to unit strings.
These quantity names represent valid quantity names that can be used when defining quantities in
Mechanical ACT extensions.