UnitsHelper#
- class ansys.mechanical.stubs.v261.Ansys.ACT.Mechanical.UnitsHelper#
Bases:
objectDefines set of methods that can be used to find mechanical unit information
Overview#
Takes input mechanical unit string and category string |
|
Return a compact unit string for the supplied field. |
|
GetQuantityNameBasedOnUnitCategoryType method. |
|
Retrieve a dictionary of quantity names to unit strings. |
|
RegisterConvertionFunction method. |
Equals method. |
|
GetHashCode method. |
|
GetType method. |
|
ToString method. |
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
Return a compact unit string for the supplied field.
for example, on an acceleration object acc (in MKS and NMM, respectively):
- acc.Magnitude.Output.Unit ==> 'm sec^-1 sec^-1' , 'm sec^-1 sec^-1'
- GetCurrentCompactUnitString(ExtAPI, acc.Magnitude.Output.QuantityName) ==> 'm/s²' , 'mm/s²'
- classmethod UnitsHelper.GetQuantityNameBasedOnUnitCategoryType(unitCategory: Ansys.Mechanical.DataModel.Enums.UnitCategoryType) str#
GetQuantityNameBasedOnUnitCategoryType method.
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.