31 template<
class BasicThermophysicalTransportModel>
34 BasicThermophysicalTransportModel
42 BasicThermophysicalTransportModel(momentumTransport,
thermo)
48 template<
class BasicThermophysicalTransportModel>
53 BasicThermophysicalTransportModel
58 BasicThermophysicalTransportModel
73 momentumTransport.
mesh(),
79 if (header.headerOk())
83 const dictionary& laminarDict(modelDict.subDict(
"laminar"));
85 const word modelType(laminarDict.lookup(
"model"));
87 Info<<
indentOrNl <<
"Selecting laminar thermophysical transport model "
90 typename dictionaryConstructorTable::iterator cstrIter =
91 dictionaryConstructorTablePtr_->find(modelType);
93 if (cstrIter == dictionaryConstructorTablePtr_->end())
96 <<
"Unknown laminar thermophysical transport model "
97 << modelType <<
nl <<
nl
98 <<
"Available models:" <<
endl
99 << dictionaryConstructorTablePtr_->sortedToc()
103 printDictionary print
106 laminarDict.optionalTypeDict(modelType).name()
109 return autoPtr<laminarThermophysicalTransportModel>
111 cstrIter()(momentumTransport,
thermo)
117 <<
"Selecting default laminar thermophysical transport model "
118 << laminarThermophysicalTransportModels::unityLewisFourier<
121 return autoPtr<laminarThermophysicalTransportModel>
123 new laminarThermophysicalTransportModels::unityLewisFourier
125 BasicThermophysicalTransportModel
126 >(momentumTransport,
thermo)
134 template<
class BasicThermophysicalTransportModel>
137 BasicThermophysicalTransportModel
140 return typeDict(this->
type());
144 template<
class BasicThermophysicalTransportModel>
147 BasicThermophysicalTransportModel
150 return this->subOrEmptyDict(
"laminar").optionalTypeDict(
type);
154 template<
class BasicThermophysicalTransportModel>
157 BasicThermophysicalTransportModel
164 template<
class BasicThermophysicalTransportModel>
167 BasicThermophysicalTransportModel
170 BasicThermophysicalTransportModel::predict();
174 template<
class BasicThermophysicalTransportModel>
177 BasicThermophysicalTransportModel
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
static word groupName(Name name, const word &group)
static const word & constant()
Return constant name.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual const word & phaseName() const =0
Phase name.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Templated abstract base class for laminar thermophysical transport models.
BasicThermophysicalTransportModel::thermoModel thermoModel
BasicThermophysicalTransportModel::momentumTransportModel momentumTransportModel
Abstract base class for momentum transport models (RAS, LES and laminar).
const Time & time() const
const fvMesh & mesh() const
Templated form of IOobject providing type information for file reading and header type checking.
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void correct(const RdeltaTType &rDeltaT, const RhoType &rho, volScalarField &psi, const surfaceScalarField &phiCorr, const SpType &Sp)
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool read(const char *, int32_t &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
Ostream & indentOrNl(Ostream &os)
Indent stream or add newline if indent level == 0.
tmp< DimensionedField< TypeR, GeoMesh, Field > > New(const tmp< DimensionedField< TypeR, GeoMesh, Field >> &tdf1, const word &name, const dimensionSet &dimensions)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
fluidMulticomponentThermo & thermo