Skip to main content
System of measurement units.

Members

Public functions

Function UnitSystem

Create new unit system. Parameters:
  • std::string const & name: [in] Name of unit system.
  • int id: [in] Common unit system identifier used by Ansys.
Return type:

Function UnitSystem

Creates a new custom unit system from its base unit strings Parameters:
  • std::string const & name: [in] Name of unit system
  • std::string const & unit_names: [in] semicolon-separated list of base units (Length, Mass, Time, Temperature, Electric Charge and Angle)
Return type:

Function c_str

Gets name of unit system. Returns: Name of unit system. Return type: const char *

Function getId

Gets identifer of unit system. Returns: Id of unit system. Return type: dp_id

Function getUnitNames

Gets unit_names of unit system (if it is custom). Returns: unit_names string of unit system (if it is custom). Return type: std::string

Function operator==

Parameters: Return type: bool