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& RASdict(modelDict.subDict(
"RAS"));
85 const word modelType(RASdict.lookup(
"model"));
88 <<
"Selecting RAS thermophysical transport model "
91 typename dictionaryConstructorTable::iterator cstrIter =
92 dictionaryConstructorTablePtr_->find(modelType);
94 if (cstrIter == dictionaryConstructorTablePtr_->end())
97 <<
"Unknown RAS thermophysical transport model "
98 << modelType <<
nl <<
nl
99 <<
"Available models:" <<
endl
100 << dictionaryConstructorTablePtr_->sortedToc()
104 printDictionary print
107 RASdict.optionalTypeDict(modelType).name()
110 autoPtr<RASThermophysicalTransportModel> modelPtr
112 cstrIter()(momentumTransport,
thermo)
120 turbulenceThermophysicalTransportModels::unityLewisEddyDiffusivity
122 RASThermophysicalTransportModel
124 BasicThermophysicalTransportModel
126 > RASunityLewisEddyDiffusivity;
129 <<
"Selecting default RAS thermophysical transport model "
132 return autoPtr<RASThermophysicalTransportModel>
134 new RASunityLewisEddyDiffusivity
148 template<
class BasicThermophysicalTransportModel>
151 BasicThermophysicalTransportModel
154 return typeDict(this->
type());
158 template<
class BasicThermophysicalTransportModel>
161 BasicThermophysicalTransportModel
164 return this->subOrEmptyDict(
"RAS").optionalTypeDict(
type);
168 template<
class BasicThermophysicalTransportModel>
171 BasicThermophysicalTransportModel
178 template<
class BasicThermophysicalTransportModel>
182 BasicThermophysicalTransportModel::predict();
186 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 RAS thermophysical transport models.
virtual void correct()
Solve the thermophysical transport model equations.
virtual void predict()
Predict the RAS 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