Go to the documentation of this file.
57 Info<<
"Creating component thermo properties:" <<
endl;
59 if (isA<basicSpecieMixture>(
thermo))
65 Info<<
" multi-component carrier - " << mcThermo.
species().size()
66 <<
" species" <<
endl;
70 Info<<
" single component carrier" <<
endl;
73 if (
thermo.found(
"liquids"))
76 Info<<
" liquids - " << liquids_->components().size()
77 <<
" components" <<
endl;
81 Info<<
" no liquid components" <<
endl;
84 if (
thermo.found(
"solids"))
87 Info<<
" solids - " << solids_->components().size()
88 <<
" components" <<
endl;
113 if (carrier_ ==
nullptr)
116 <<
"carrier requested, but object is not allocated"
129 <<
"liquids requested, but object is not allocated"
142 <<
"solids requested, but object is not allocated"
152 const word& cmptName,
156 forAll(carrier().species(), i)
158 if (cmptName == carrier_->species()[i])
167 <<
"Unknown carrier component " << cmptName
168 <<
". Valid carrier components are:" <<
nl
178 const word& cmptName,
182 forAll(liquids().components(), i)
184 if (cmptName == liquids_->components()[i])
193 <<
"Unknown liquid component " << cmptName <<
". Valid liquids are:"
203 const word& cmptName,
207 forAll(solids().components(), i)
209 if (cmptName == solids_->components()[i])
218 <<
"Unknown solid component " << cmptName <<
". Valid solids are:"
228 return (carrier_ !=
nullptr);
234 return bool(liquids_);
240 return bool(solids_);
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling words, derived from Foam::string.
const fluidThermo & thermo() const
Specialization of basicMultiComponentMixture for a mixture consisting of a number for molecular speci...
Thermo package for (S)olids (L)iquids and (G)ases Takes reference to thermo package,...
bool hasMultiComponentCarrier() const
const speciesTable & species() const
Fundamental fluid thermodynamic properties.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
const solidMixtureProperties & solids() const
Ostream & endl(Ostream &os)
static autoPtr< liquidMixtureProperties > New(const dictionary &)
Mesh consisting of general polyhedral cells.
const liquidMixtureProperties & liquids() const
const basicSpecieMixture & carrier() const
Mesh data needed to do the Finite Volume discretisation.
errorManip< error > abort(error &err)
static autoPtr< solidMixtureProperties > New(const dictionary &)
label liquidId(const word &cmptName, bool allowNotFound=false) const
errorManipArg< error, int > exit(error &err, const int errNo=1)
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
#define FatalErrorInFunction
label carrierId(const word &cmptName, bool allowNotFound=false) const
SLGThermo(const fvMesh &mesh, fluidThermo &thermo)
label solidId(const word &cmptName, bool allowNotFound=false) const
defineTypeNameAndDebug(combustionModel, 0)