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: System.String, unitCategory: System.String) System.String#
No-index:

Takes input mechanical unit string and category string
And returns framework unit string which can be used for conversion
classmethod UnitsHelper.GetValidQuantityNamesAndUnits() System.Collections.Generic.IDictionary[System.String, System.String]#
No-index:

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.