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