Structure ansys::dpf::UnitSystem
Last update: 25.03.2026
System of measurement units.
Members
Public functions
Function UnitSystem
ansys::dpf::UnitSystem::UnitSystem(std::string const &name, int id)
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
ansys::dpf::UnitSystem::UnitSystem(std::string const &name, std::string const &unit_names)
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
const char * ansys::dpf::UnitSystem::c_str() const
Gets name of unit system. Returns:
Name of unit system.
Return type: const char *
Function getId
dp_id ansys::dpf::UnitSystem::getId() const
Gets identifer of unit system. Returns:
Id of unit system.
Return type: dp_id
Function getUnitNames
std::string ansys::dpf::UnitSystem::getUnitNames() const
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==
bool ansys::dpf::UnitSystem::operator==(UnitSystem const &rhs) const
Parameters:
- UnitSystem const & rhs
Return type: bool