UnitsHelper#

class ansys.mechanical.stubs.v241.Ansys.ACT.Mechanical.UnitsHelper#

Bases: object

Defines set of methods that can be used to find mechanical unit information

Overview#

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) str#
Takes input mechanical unit string and category string
And returns framework unit string which can be used for conversion
classmethod UnitsHelper.GetValidQuantityNamesAndUnits() dict[str, str]#
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.