Simple container for a list of phase properties. More...
Public Member Functions | |
phasePropertiesList () | |
Construct null. More... | |
phasePropertiesList (Istream &is, const wordList &gasNames, const wordList &liquidNames, const wordList &solidNames) | |
Construct from components. More... | |
~phasePropertiesList () | |
Destructor. More... | |
const List< phaseProperties > & | props () const |
Return the list of phase properties. More... | |
const wordList & | phaseTypes () const |
Return the list of word representation of phase types. More... | |
const wordList & | stateLabels () const |
Return the list of state labels. More... | |
label | size () const |
Return the size (number of phases) More... | |
const phaseProperties & | operator[] (const label) const |
Simple container for a list of phase properties.
Definition at line 53 of file phasePropertiesList.H.
Construct null.
Definition at line 32 of file phasePropertiesList.C.
phasePropertiesList | ( | Istream & | is, |
const wordList & | gasNames, | ||
const wordList & | liquidNames, | ||
const wordList & | solidNames | ||
) |
Construct from components.
Definition at line 40 of file phasePropertiesList.C.
References forAll, List< T >::setSize(), and solidNames().
~phasePropertiesList | ( | ) |
Destructor.
Definition at line 69 of file phasePropertiesList.C.
const Foam::List< Foam::phaseProperties > & props | ( | ) | const |
Return the list of phase properties.
Definition at line 76 of file phasePropertiesList.C.
const Foam::wordList & phaseTypes | ( | ) | const |
Return the list of word representation of phase types.
Definition at line 82 of file phasePropertiesList.C.
const Foam::wordList & stateLabels | ( | ) | const |
Return the list of state labels.
Definition at line 88 of file phasePropertiesList.C.
Foam::label size | ( | ) | const |
Return the size (number of phases)
Definition at line 94 of file phasePropertiesList.C.
const Foam::phaseProperties & operator[] | ( | const label | phaseI | ) | const |
Definition at line 101 of file phasePropertiesList.C.