31 template<
class BasicThermophysicalTransportModel>
34 BasicThermophysicalTransportModel
42 BasicThermophysicalTransportModel(momentumTransport,
thermo)
48 template<
class BasicThermophysicalTransportModel>
53 BasicThermophysicalTransportModel
58 BasicThermophysicalTransportModel
69 thermophysicalTransportModel::typeName,
73 momentumTransport.
mesh(),
79 if (header.headerOk())
83 const word modelType(modelDict.subDict(
"RAS").lookup(
"model"));
86 <<
"Selecting RAS thermophysical transport model "
89 typename dictionaryConstructorTable::iterator cstrIter =
90 dictionaryConstructorTablePtr_->find(modelType);
92 if (cstrIter == dictionaryConstructorTablePtr_->end())
95 <<
"Unknown RAS thermophysical transport model "
96 << modelType <<
nl <<
nl
97 <<
"Available models:" <<
endl
98 << dictionaryConstructorTablePtr_->sortedToc()
104 autoPtr<RASThermophysicalTransportModel> modelPtr
106 cstrIter()(momentumTransport,
thermo)
116 turbulenceThermophysicalTransportModels::unityLewisEddyDiffusivity
118 RASThermophysicalTransportModel
120 BasicThermophysicalTransportModel
122 > RASunityLewisEddyDiffusivity;
125 <<
"Selecting default RAS thermophysical transport model "
126 << RASunityLewisEddyDiffusivity::typeName <<
endl;
130 autoPtr<RASThermophysicalTransportModel> modelPtr
132 new RASunityLewisEddyDiffusivity
134 RASunityLewisEddyDiffusivity::typeName,
150 template<
class BasicThermophysicalTransportModel>
153 BasicThermophysicalTransportModel
156 return this->subOrEmptyDict(
"RAS").optionalSubDict(
type() +
"Coeffs");
160 template<
class BasicThermophysicalTransportModel>
163 BasicThermophysicalTransportModel
170 template<
class BasicThermophysicalTransportModel>
174 BasicThermophysicalTransportModel::predict();
178 template<
class BasicThermophysicalTransportModel>
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
static word group(const word &name)
Return group (extension part of name)
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...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base class for turbulence models (RAS, LES and laminar).
const Time & time() const
const fvMesh & mesh() const
const surfaceScalarField & alphaRhoPhi() const
Access function to phase flux field.
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 & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
Ostream & indent(Ostream &os)
Indent stream.
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