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& LESdict(modelDict.subDict(
"LES"));
85 const word modelType(LESdict.lookup(
"model"));
88 <<
"Selecting LES thermophysical transport model "
91 typename dictionaryConstructorTable::iterator cstrIter =
92 dictionaryConstructorTablePtr_->find(modelType);
94 if (cstrIter == dictionaryConstructorTablePtr_->end())
97 <<
"Unknown LES thermophysical transport model "
98 << modelType <<
nl <<
nl
99 <<
"Available models:" <<
endl
100 << dictionaryConstructorTablePtr_->sortedToc()
104 printDictionary print
107 LESdict.optionalTypeDict(modelType).name()
110 return autoPtr<LESThermophysicalTransportModel>
112 cstrIter()(momentumTransport,
thermo)
118 turbulenceThermophysicalTransportModels::unityLewisEddyDiffusivity
120 LESThermophysicalTransportModel
122 BasicThermophysicalTransportModel
124 > LESunityLewisEddyDiffusivity;
127 <<
"Selecting default LES thermophysical transport model "
130 return autoPtr<LESThermophysicalTransportModel>
132 new LESunityLewisEddyDiffusivity
146 template<
class BasicThermophysicalTransportModel>
149 BasicThermophysicalTransportModel
152 return typeDict(this->
type());
156 template<
class BasicThermophysicalTransportModel>
159 BasicThermophysicalTransportModel
162 return this->subOrEmptyDict(
"LES").optionalTypeDict(
type);
166 template<
class BasicThermophysicalTransportModel>
169 BasicThermophysicalTransportModel
176 template<
class BasicThermophysicalTransportModel>
180 BasicThermophysicalTransportModel::predict();
184 template<
class BasicThermophysicalTransportModel>
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
static word groupName(Name name, const word &group)
Templated abstract base class for LES thermophysical transport models.
virtual void correct()
Solve the thermophysical transport model equations.
virtual void predict()
Predict the LES transport coefficients if possible.
BasicThermophysicalTransportModel::thermoModel thermoModel
BasicThermophysicalTransportModel::momentumTransportModel momentumTransportModel
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.
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.
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