Helper class to manage multi-specie phase properties. More...
#include <phaseProperties.H>

Public Types | |
| enum | phaseType { GAS , LIQUID , SOLID , UNKNOWN } |
| Phase type enumeration. More... | |
Public Member Functions | |
| phaseProperties () | |
| Default construct, as 'UNKNOWN' state. | |
| phaseProperties (Istream &is) | |
| Construct from Istream. | |
| void | reorder (const wordList &gasNames, const wordList &liquidNames, const wordList &solidNames) |
| Reorder species to be consistent with the corresponding. | |
| phaseType | phase () const |
| Return const access to the phase type. | |
| const word & | stateLabel () const |
| Return const access to the phase state label. | |
| word | phaseTypeName () const |
| Return word representation of the phase type. | |
| const List< word > & | names () const |
| Return the list of specie names. | |
| const word & | name (const label speciei) const |
| Return const access to a specie name. | |
| const scalarField & | Y () const |
| Return const access to all specie mass fractions. | |
| scalar & | Y (const label speciei) |
| Return non-const access to a specie mass fraction. | |
| const labelList & | carrierIds () const |
| Return const access to the map to the carrier ids. | |
| label | id (const word &specieName) const |
| Return the id of a specie in the local list by name. | |
Static Public Attributes | |
| static const Enum< phaseType > | phaseTypeNames |
| Corresponding word representations for phase type enumerations. | |
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.
References UNKNOWN.
Referenced by operator<<, operator>>, and phaseProperties().

|
explicit |
Construct from Istream.
Definition at line 26 of file phasePropertiesIO.C.
References phaseProperties().

| 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 187 of file phaseProperties.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, GAS, LIQUID, Foam::nl, phaseTypeNames, Foam::reorder(), SOLID, 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< CloudType >::Cp(), CompositionModel< Foam::ReactingCloud< Foam::DSMCCloud< dsmcParcel > > >::H(), CompositionModel< CloudType >::Hc(), and CompositionModel< CloudType >::L().

| 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.
References phaseTypeNames.
| 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< CloudType >::Cp(), CompositionModel< Foam::ReactingCloud< Foam::DSMCCloud< dsmcParcel > > >::H(), CompositionModel< CloudType >::Hc(), CompositionModel< Foam::ReactingCloud< Foam::DSMCCloud< dsmcParcel > > >::rho(), and CompositionModel< Foam::ReactingCloud< Foam::DSMCCloud< dsmcParcel > > >::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.
References UList< T >::find().

|
friend |
References phaseProperties().
|
friend |
References phaseProperties().
|
static |
Corresponding word representations for phase type enumerations.
Definition at line 76 of file phaseProperties.H.
Referenced by phaseTypeName(), and reorder().