Class containing a pair of thermo references. Handles down-casting to more specific thermo types by constructing one pair from another (e.g., constructing a multicomponentThermo reference pair from a basicThermo pair). Tracks validity of the references. More...

Public Member Functions | |
| ThermoRefPair (const objectRegistry &db, const Pair< word > &phaseNames) | |
| Construct from a database and phase names. More... | |
| const Pair< bool > & | valid () const |
| Access the validity flags. More... | |
| bool | either () const |
| Return if either validity flag is set. More... | |
| bool | both () const |
| Return if both validity flags are set. More... | |
| const ThermoType & | first () const |
| Access the first thermo. More... | |
| const ThermoType & | second () const |
| Access the second thermo. More... | |
| template<class OtherThermoType > | |
| ThermoRefPair< OtherThermoType > | thermos () const |
| Cast to a different thermo type, with error checking. More... | |
| template<class OtherThermoType > | |
| ThermoRefPair< OtherThermoType > | thermos (const Pair< bool > required, const fvModel &model, const word &thermoType) const |
| Cast to a different thermo type, with error checking. More... | |
| const ThermoType & | operator[] (const label i) const |
| Access a thermo by index. More... | |
| template<class OtherThermoType > | |
| Foam::ThermoRefPair< OtherThermoType > | thermos () const |
| template<class OtherThermoType > | |
| Foam::ThermoRefPair< OtherThermoType > | thermos (const Pair< bool > required, const fvModel &model, const word &thermoType) const |
Friends | |
| template<class OtherThermoType > | |
| class | ThermoRefPair |
| Declare friendship with other thermo reference pairs. More... | |
Class containing a pair of thermo references. Handles down-casting to more specific thermo types by constructing one pair from another (e.g., constructing a multicomponentThermo reference pair from a basicThermo pair). Tracks validity of the references.
Definition at line 50 of file ThermoRefPair.H.
|
inline |
Construct from a database and phase names.
Definition at line 48 of file ThermoRefPairI.H.
|
inline |
Access the validity flags.
Definition at line 83 of file ThermoRefPairI.H.
Referenced by massDiffusionLimitedPhaseChange::addSup(), phaseChange::addSup(), coefficientPhaseChange::addSup(), homogeneousCondensation::correct(), homogeneousLiquidPhaseSeparation::correct(), reactionDrivenPhaseChange::mDot(), coefficientPhaseChange::mDot(), phaseChange::setSpecies(), and ThermoRefPair< ThermoType >::thermos().

|
inline |
Return if either validity flag is set.
Definition at line 90 of file ThermoRefPairI.H.
Referenced by reactionDrivenPhaseChange::reactionDrivenPhaseChange(), and phaseChange::setSpecies().

|
inline |
Return if both validity flags are set.
Definition at line 97 of file ThermoRefPairI.H.
Referenced by phaseChange::setSpecies().

|
inline |
Access the first thermo.
Definition at line 104 of file ThermoRefPairI.H.
Referenced by coefficientPhaseChange::addSup(), homogeneousCondensation::correct(), coefficientPhaseChange::mDot(), homogeneousCondensation::tau(), and homogeneousLiquidPhaseSeparation::tau().

|
inline |
Access the second thermo.
Definition at line 111 of file ThermoRefPairI.H.
Referenced by homogeneousCondensation::correct(), and homogeneousLiquidPhaseSeparation::correct().

|
inline |
Cast to a different thermo type, with error checking.
Referenced by massDiffusionLimitedPhaseChange::addSup(), phaseChange::addSup(), coefficientPhaseChange::addSup(), phaseChange::L(), reactionDrivenPhaseChange::mDot(), coefficientPhaseChange::mDot(), and phaseChange::setSpecies().

|
inline |
Cast to a different thermo type, with error checking.
|
inline |
Access a thermo by index.
Definition at line 174 of file ThermoRefPairI.H.
References Foam::first(), and Foam::second().

|
inline |
Definition at line 120 of file ThermoRefPairI.H.
References Foam::first(), Foam::second(), and Foam::blendedInterfacialModel::valid().

|
inline |
Definition at line 145 of file ThermoRefPairI.H.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, fvModel::name(), and ThermoRefPair< ThermoType >::valid().

|
friend |
Declare friendship with other thermo reference pairs.
Definition at line 79 of file ThermoRefPair.H.