35 Info<<
"Creating component thermo properties:" <<
endl;
43 Info<<
" liquids - " << liquids_->components().size()
44 <<
" components" <<
endl;
48 Info<<
" no liquid components" <<
endl;
57 Info<<
" solids - " << solids_->components().size()
58 <<
" components" <<
endl;
62 Info<<
" no solid components" <<
endl;
69 liquids_(pThermo.liquids_, false),
70 solids_(pThermo.solids_, false)
84 if (!liquids_.valid())
87 <<
"liquids requested, but object is not allocated" 100 <<
"solids requested, but object is not allocated" 110 const word& cmptName,
116 if (cmptName == liquids_->components()[i])
125 <<
"Unknown liquid component " << cmptName <<
". Valid liquids are:" 135 const word& cmptName,
141 if (cmptName == solids_->components()[i])
150 <<
"Unknown solid component " << cmptName <<
". Valid solids are:"
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Thermo package for (S)olids (L)iquids and (G)ases Takes reference to thermo package, and provides:
Info<< "Reading thermophysical properties\"<< endl;autoPtr< fluidReactionThermo > pThermo(fluidReactionThermo::New(mesh))
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
label liquidId(const word &cmptName, bool allowNotFound=false) const
Index of liquid component.
virtual const IOdictionary & properties() const =0
Return the dictionary.
static autoPtr< liquidMixtureProperties > New(const dictionary &)
Select construct from dictionary.
label solidId(const word &cmptName, bool allowNotFound=false) const
Index of solid component.
A class for handling words, derived from string.
Base-class for fluid thermodynamic properties.
const solidMixtureProperties & solids() const
Return reference to the global (additional) solids.
errorManip< error > abort(error &err)
const liquidMixtureProperties & liquids() const
Return reference to the global (additional) liquids.
parcelThermo(const fluidThermo &carrierThermo)
Construct from carrier thermo.
static autoPtr< solidMixtureProperties > New(const dictionary &)
Select construct from dictionary.
virtual ~parcelThermo()
Destructor.