31 template<
class BasicThermophysicalTransportModel>
34 BasicThermophysicalTransportModel
41 Info<< coeffDict_.dictName() << coeffDict_ <<
endl;
48 template<
class BasicThermophysicalTransportModel>
51 BasicThermophysicalTransportModel
59 BasicThermophysicalTransportModel(momentumTransport,
thermo),
60 RASDict_(this->subOrEmptyDict(
"RAS")),
61 printCoeffs_(RASDict_.lookupOrDefault<
Switch>(
"printCoeffs", false)),
62 coeffDict_(RASDict_.optionalSubDict(
type +
"Coeffs"))
68 template<
class BasicThermophysicalTransportModel>
73 BasicThermophysicalTransportModel
78 BasicThermophysicalTransportModel
89 thermophysicalTransportModel::typeName,
93 momentumTransport.
mesh(),
99 if (header.headerOk())
103 const word modelType(modelDict.subDict(
"RAS").lookup(
"model"));
105 Info<<
"Selecting RAS thermophysical transport model "
106 << modelType <<
endl;
108 typename dictionaryConstructorTable::iterator cstrIter =
109 dictionaryConstructorTablePtr_->find(modelType);
111 if (cstrIter == dictionaryConstructorTablePtr_->end())
114 <<
"Unknown RAS thermophysical transport model "
115 << modelType <<
nl <<
nl
116 <<
"Available models:" <<
endl
117 << dictionaryConstructorTablePtr_->sortedToc()
121 return autoPtr<RASThermophysicalTransportModel>
123 cstrIter()(momentumTransport,
thermo)
129 turbulenceThermophysicalTransportModels::unityLewisEddyDiffusivity
131 RASThermophysicalTransportModel
133 BasicThermophysicalTransportModel
135 > RASunityLewisEddyDiffusivity;
137 Info<<
"Selecting default RAS thermophysical transport model "
138 << RASunityLewisEddyDiffusivity::typeName <<
endl;
140 return autoPtr<RASThermophysicalTransportModel>
142 new RASunityLewisEddyDiffusivity
144 RASunityLewisEddyDiffusivity::typeName,
156 template<
class BasicThermophysicalTransportModel>
159 BasicThermophysicalTransportModel
164 RASDict_ <<= this->subDict(
"RAS");
166 coeffDict_ <<= RASDict_.optionalSubDict(
type() +
"Coeffs");
177 template<
class BasicThermophysicalTransportModel>
181 BasicThermophysicalTransportModel::predict();
185 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
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
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...
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, const SuType &Su)
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.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &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