Helper class to manage multi-specie phase properties. More...
Public Types | |
enum | phaseType { GAS, LIQUID, SOLID, UNKNOWN } |
Public Member Functions | |
phaseProperties () | |
phaseProperties (Istream &is) | |
void | reorder (const wordList &gasNames, const wordList &liquidNames, const wordList &solidNames) |
phaseType | phase () const |
const word & | stateLabel () const |
word | phaseTypeName () const |
const List< word > & | names () const |
const word & | name (const label speciei) const |
const scalarField & | Y () const |
scalar & | Y (const label speciei) |
const labelList & | carrierIds () const |
label | id (const word &specieName) const |
Static Public Attributes | |
static const Enum< phaseType > | phaseTypeNames |
Friends | |
Istream & | operator>> (Istream &, phaseProperties &) |
Ostream & | operator<< (Ostream &, const phaseProperties &) |
Helper class to manage multi-specie phase properties.
Definition at line 56 of file phaseProperties.H.
enum phaseType |
Enumerator | |
---|---|
GAS | |
LIQUID | |
SOLID | |
UNKNOWN |
Definition at line 63 of file phaseProperties.H.
phaseProperties | ( | ) |
Definition at line 175 of file phaseProperties.C.
|
explicit |
Definition at line 26 of file phasePropertiesIO.C.
void reorder | ( | const wordList & | gasNames, |
const wordList & | liquidNames, | ||
const wordList & | solidNames | ||
) |
Definition at line 188 of file phaseProperties.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, Foam::reorder(), and solidNames().
Foam::phaseProperties::phaseType phase | ( | ) | const |
Definition at line 235 of file phaseProperties.C.
Referenced by CompositionModel< CloudType >::Cp(), CompositionModel< CloudType >::H(), CompositionModel< CloudType >::Hc(), CompositionModel< CloudType >::Hs(), CompositionModel< CloudType >::L(), and CompositionModel< CloudType >::X().
const Foam::word & stateLabel | ( | ) | const |
Definition at line 241 of file phaseProperties.C.
Foam::word phaseTypeName | ( | ) | const |
Definition at line 247 of file phaseProperties.C.
const Foam::List< Foam::word > & names | ( | ) | const |
Definition at line 253 of file phaseProperties.C.
const Foam::word & name | ( | const label | speciei | ) | const |
Definition at line 259 of file phaseProperties.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.
const Foam::scalarField & Y | ( | ) | const |
Definition at line 273 of file phaseProperties.C.
Foam::scalar & Y | ( | const label | speciei | ) |
Definition at line 279 of file phaseProperties.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.
const Foam::labelList & carrierIds | ( | ) | const |
Definition at line 293 of file phaseProperties.C.
Referenced by CompositionModel< CloudType >::Cp(), CompositionModel< CloudType >::H(), CompositionModel< CloudType >::Hc(), CompositionModel< CloudType >::Hs(), and CompositionModel< CloudType >::X().
Foam::label id | ( | const word & | specieName | ) | const |
Definition at line 299 of file phaseProperties.C.
|
friend |
|
friend |
|
static |
Definition at line 72 of file phaseProperties.H.
Referenced by Foam::operator<<(), and Foam::operator>>().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.