Thermo package for (S)olids (L)iquids and (G)ases Takes reference to thermo package, and provides: More...
Public Member Functions | |
parcelThermo (const fluidThermo &carrierThermo) | |
Construct from carrier thermo. More... | |
parcelThermo (const parcelThermo &) | |
Copy constructor. More... | |
virtual | ~parcelThermo () |
Destructor. More... | |
const liquidMixtureProperties & | liquids () const |
Return reference to the global (additional) liquids. More... | |
const solidMixtureProperties & | solids () const |
Return reference to the global (additional) solids. More... | |
label | liquidId (const word &cmptName, bool allowNotFound=false) const |
Index of liquid component. More... | |
label | solidId (const word &cmptName, bool allowNotFound=false) const |
Index of solid component. More... | |
Thermo package for (S)olids (L)iquids and (G)ases Takes reference to thermo package, and provides:
- liquids : liquid components - access to elemental properties
If no liquids or solids are specified, their respective pointers will also be nullptr.
Registered to the mesh so that it can be looked-up
Definition at line 58 of file parcelThermo.H.
parcelThermo | ( | const fluidThermo & | carrierThermo | ) |
Construct from carrier thermo.
Definition at line 30 of file parcelThermo.C.
References Foam::endl(), dictionary::found(), Foam::Info, liquidMixtureProperties::New(), solidMixtureProperties::New(), basicThermo::properties(), and dictionary::subDict().
parcelThermo | ( | const parcelThermo & | pThermo | ) |
Copy constructor.
Definition at line 67 of file parcelThermo.C.
|
virtual |
Destructor.
Definition at line 76 of file parcelThermo.C.
const Foam::liquidMixtureProperties & liquids | ( | ) | const |
Return reference to the global (additional) liquids.
Definition at line 82 of file parcelThermo.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
const Foam::solidMixtureProperties & solids | ( | ) | const |
Return reference to the global (additional) solids.
Definition at line 95 of file parcelThermo.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Foam::label liquidId | ( | const word & | cmptName, |
bool | allowNotFound = false |
||
) | const |
Index of liquid component.
Definition at line 108 of file parcelThermo.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, and Foam::nl.
Foam::label solidId | ( | const word & | cmptName, |
bool | allowNotFound = false |
||
) | const |
Index of solid component.
Definition at line 133 of file parcelThermo.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, and Foam::nl.