Go to the documentation of this file.
33 template<
class BasicTurbulenceModel>
38 Info<< coeffDict_.dictName() << coeffDict_ <<
endl;
45 template<
class BasicTurbulenceModel>
55 const word& propertiesName
70 LESDict_(this->subOrEmptyDict(
"LES")),
71 turbulence_(LESDict_.get<
Switch>(
"turbulence")),
72 printCoeffs_(LESDict_.getOrDefault<
Switch>(
"printCoeffs",
false)),
73 coeffDict_(LESDict_.optionalSubDict(
type +
"Coeffs")),
112 IOobject::groupName(
"delta", alphaRhoPhi.group()),
120 this->mesh_.deltaCoeffs();
126 template<
class BasicTurbulenceModel>
136 const word& propertiesName
143 IOobject::groupName(propertiesName, alphaRhoPhi.group()),
146 IOobject::MUST_READ_IF_MODIFIED,
156 Info<<
"Selecting LES turbulence model " << modelType <<
endl;
158 auto cstrIter = dictionaryConstructorTablePtr_->cfind(modelType);
160 if (!cstrIter.found())
167 *dictionaryConstructorTablePtr_
173 cstrIter()(
alpha,
rho,
U, alphaRhoPhi,
phi, transport, propertiesName)
180 template<
class BasicTurbulenceModel>
185 LESDict_ <<= this->subDict(
"LES");
186 LESDict_.readEntry(
"turbulence", turbulence_);
188 coeffDict_ <<= LESDict_.optionalSubDict(
type() +
"Coeffs");
190 delta_().read(LESDict_);
192 kMin_.readIfPresent(LESDict_);
201 template<
class BasicTurbulenceModel>
BasicTurbulenceModel::rhoField rhoField
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Dimensionless.
A class for handling words, derived from Foam::string.
const dimensionSet dimVelocity
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
static autoPtr< LESModel > New(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName)
Return a reference to the selected LES model.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
BasicTurbulenceModel::transportModel transportModel
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
virtual bool read()
Read model coefficients if they have changed.
messageStream Info
Information stream (uses stdout - output is on the master only)
virtual void printCoeffs(const word &type)
Print model coefficients.
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
LESModel(const LESModel &)=delete
No copy construct.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Generic dimensioned Type class.
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
BasicTurbulenceModel::alphaField alphaField