Helper class to manage multi-specie phase properties. More...

Public Types | |
| enum | phaseType { GAS, LIQUID, SOLID, UNKNOWN } |
| Phase type enumeration. More... | |
Public Member Functions | |
| phaseProperties () | |
| Default construct, as 'UNKNOWN' state. More... | |
| phaseProperties (Istream &is) | |
| Construct from Istream. More... | |
| void | reorder (const wordList &gasNames, const wordList &liquidNames, const wordList &solidNames) |
| Reorder species to be consistent with the corresponding. More... | |
| phaseType | phase () const |
| Return const access to the phase type. More... | |
| const word & | stateLabel () const |
| Return const access to the phase state label. More... | |
| word | phaseTypeName () const |
| Return word representation of the phase type. More... | |
| const List< word > & | names () const |
| Return the list of specie names. More... | |
| const word & | name (const label speciei) const |
| Return const access to a specie name. More... | |
| const scalarField & | Y () const |
| Return const access to all specie mass fractions. More... | |
| scalar & | Y (const label speciei) |
| Return non-const access to a specie mass fraction. More... | |
| const labelList & | carrierIds () const |
| Return const access to the map to the carrier ids. More... | |
| label | id (const word &specieName) const |
| Return the id of a specie in the local list by name. More... | |
Static Public Attributes | |
| static const Enum< phaseType > | phaseTypeNames |
| Corresponding word representations for phase type enumerations. More... | |
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 |
Phase type enumeration.
| Enumerator | |
|---|---|
| GAS | |
| LIQUID | |
| SOLID | |
| UNKNOWN | |
Definition at line 65 of file phaseProperties.H.
| phaseProperties | ( | ) |
Default construct, as 'UNKNOWN' state.
Definition at line 175 of file phaseProperties.C.
|
explicit |
Construct from Istream.
Definition at line 26 of file phasePropertiesIO.C.
| void reorder | ( | const wordList & | gasNames, |
| const wordList & | liquidNames, | ||
| const wordList & | solidNames | ||
| ) |
Reorder species to be consistent with the corresponding.
phase specie name list
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 |
Return const access to the phase type.
Definition at line 235 of file phaseProperties.C.
Referenced by CompositionModel< Foam::ReactingCloud< Foam::DSMCCloud > >::Cp(), CompositionModel< Foam::ReactingCloud< Foam::DSMCCloud > >::H(), CompositionModel< Foam::ReactingCloud< Foam::DSMCCloud > >::Hc(), CompositionModel< Foam::ReactingCloud< Foam::DSMCCloud > >::Hs(), CompositionModel< Foam::ReactingCloud< Foam::DSMCCloud > >::L(), and CompositionModel< Foam::ReactingCloud< Foam::DSMCCloud > >::X().

| const Foam::word & stateLabel | ( | ) | const |
Return const access to the phase state label.
Definition at line 241 of file phaseProperties.C.
| Foam::word phaseTypeName | ( | ) | const |
Return word representation of the phase type.
Definition at line 247 of file phaseProperties.C.
| const Foam::List< Foam::word > & names | ( | ) | const |
Return the list of specie names.
Definition at line 253 of file phaseProperties.C.
| const Foam::word & name | ( | const label | speciei | ) | const |
Return const access to a specie name.
Definition at line 259 of file phaseProperties.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.

| const Foam::scalarField & Y | ( | ) | const |
Return const access to all specie mass fractions.
Definition at line 273 of file phaseProperties.C.
| Foam::scalar & Y | ( | const label | speciei | ) |
Return non-const access to a specie mass fraction.
Definition at line 279 of file phaseProperties.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.

| const Foam::labelList & carrierIds | ( | ) | const |
Return const access to the map to the carrier ids.
Definition at line 293 of file phaseProperties.C.
Referenced by CompositionModel< Foam::ReactingCloud< Foam::DSMCCloud > >::Cp(), CompositionModel< Foam::ReactingCloud< Foam::DSMCCloud > >::H(), CompositionModel< Foam::ReactingCloud< Foam::DSMCCloud > >::Hc(), CompositionModel< Foam::ReactingCloud< Foam::DSMCCloud > >::Hs(), and CompositionModel< Foam::ReactingCloud< Foam::DSMCCloud > >::X().

| Foam::label id | ( | const word & | specieName | ) | const |
Return the id of a specie in the local list by name.
Returns -1 if not found
Definition at line 299 of file phaseProperties.C.
|
friend |
|
friend |
|
static |
Corresponding word representations for phase type enumerations.
Definition at line 76 of file phaseProperties.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.