Gas component (molecule)
More...
#include <TRT_PAI_gasComponent.h>
Gas component (molecule)
Definition at line 16 of file TRT_PAI_gasComponent.h.
◆ TRT_PAI_gasComponent() [1/2]
| TRT_PAI_gasComponent::TRT_PAI_gasComponent |
( |
| ) |
|
|
inline |
◆ TRT_PAI_gasComponent() [2/2]
| TRT_PAI_gasComponent::TRT_PAI_gasComponent |
( |
const std::string & | nm | ) |
|
|
inline |
◆ addElement()
| void TRT_PAI_gasComponent::addElement |
( |
TRT_PAI_element * | pe, |
|
|
unsigned int | n ) |
Add element to gas component.
- Parameters
-
| pe | pointer to element class |
| n | multiplicity of this element in molecule |
Definition at line 10 of file TRT_PAI_gasComponent.cxx.
11 {
14 return;
15}
std::vector< TRT_PAI_element * > m_pelements
std::vector< unsigned int > m_elementMultiplicity
◆ getDensity()
| double TRT_PAI_gasComponent::getDensity |
( |
double | tempK = 293. | ) |
|
Get density of gas component (molecule) at atmospheric preassure.
- Parameters
-
| tempK | Temperature in Kelvin |
Definition at line 19 of file TRT_PAI_gasComponent.cxx.
19 {
22 for (
int i=0;
i<
n; ++
i ) {
24 }
25 double density =
mass/22400.;
26 if ( tempK>0. ) density = density*293./tempK;
27 return density;
28}
◆ getElement()
Get pointer to this element in gas component (molecule)
- Parameters
-
Definition at line 59 of file TRT_PAI_gasComponent.h.
◆ getElementMultiplicity()
| unsigned int TRT_PAI_gasComponent::getElementMultiplicity |
( |
unsigned int | n | ) |
|
|
inline |
Get multiplicity of this element in gas component (molecule)
- Parameters
-
Definition at line 51 of file TRT_PAI_gasComponent.h.
◆ getName()
| const std::string & TRT_PAI_gasComponent::getName |
( |
| ) |
|
|
inline |
◆ getNElementTypes()
| int TRT_PAI_gasComponent::getNElementTypes |
( |
| ) |
|
|
inline |
◆ m_elementMultiplicity
| std::vector<unsigned int> TRT_PAI_gasComponent::m_elementMultiplicity |
|
private |
◆ m_name
| std::string TRT_PAI_gasComponent::m_name |
|
private |
◆ m_pelements
The documentation for this class was generated from the following files: