Class to represent a material information in the Database.
More...
#include <GeoMaterial.h>
Class to represent a material information in the Database.
Definition at line 22 of file GeoMaterial.h.
◆ addComponent()
add a component to the material.
Fall fractions should add up to one but this is not verified
Definition at line 37 of file GeoMaterial.h.
37{ m_components.emplace_back(component); }
◆ addProperty()
add a property to the material
Definition at line 39 of file GeoMaterial.h.
39{ m_properties.emplace_back(property); }
◆ getComponents() [1/2]
get all components
Definition at line 51 of file GeoMaterial.h.
51{ return m_components; }
◆ getComponents() [2/2]
get all components
Definition at line 53 of file GeoMaterial.h.
53{ return m_components; }
◆ getDensity()
double getDensity |
( |
| ) |
const |
|
inline |
get the density of the material (in default framework units
Definition at line 45 of file GeoMaterial.h.
◆ getName()
const std::string & getName |
( |
| ) |
const |
|
inline |
◆ getPressure()
double getPressure |
( |
| ) |
const |
|
inline |
get the pressure of the material (in default framework units
Definition at line 49 of file GeoMaterial.h.
◆ getProperties()
get all properties
Definition at line 55 of file GeoMaterial.h.
55{ return m_properties; }
◆ getState()
◆ getTemperature()
double getTemperature |
( |
| ) |
const |
|
inline |
get the temperature of the material (in default framework units
Definition at line 47 of file GeoMaterial.h.
47{ return m_temperature; }
◆ hasProperties()
bool hasProperties |
( |
| ) |
const |
|
inline |
check if the material has at least one property
- Returns
- true if there is at least one property
Definition at line 58 of file GeoMaterial.h.
58{ return m_properties.size() > 0; }
◆ setDensity()
void setDensity |
( |
double | density | ) |
|
|
inline |
set the density of the material (in default framework units
Definition at line 31 of file GeoMaterial.h.
31{ m_density = density; }
◆ setName()
void setName |
( |
const std::string & | name | ) |
|
|
inline |
◆ setPressure()
void setPressure |
( |
double | pressure | ) |
|
|
inline |
set the pressure of the material (in default framework units
Definition at line 35 of file GeoMaterial.h.
35{ m_pressure = pressure; }
◆ setState()
void setState |
( |
int | state | ) |
|
|
inline |
◆ setTemperature()
void setTemperature |
( |
double | temperature | ) |
|
|
inline |
set the temperature of the material (in default framework units
Definition at line 33 of file GeoMaterial.h.
33{ m_temperature = temperature; }
◆ m_components
◆ m_density
◆ m_name
◆ m_pressure
◆ m_properties
◆ m_state
◆ m_temperature
The documentation for this class was generated from the following file: