56 template<
class BasicMomentumTransportModel>
59 public BasicMomentumTransportModel
99 typedef typename BasicMomentumTransportModel::alphaField
alphaField;
100 typedef typename BasicMomentumTransportModel::rhoField
rhoField;
101 typedef typename BasicMomentumTransportModel::transportModel
transportModel;
116 const alphaField&
alpha,
121 const transportModel& transport
123 (alpha, rho, U, alphaRhoPhi, phi, transport)
133 const alphaField& alpha,
138 const transportModel& transport
150 const alphaField& alpha,
155 const transportModel& transport
203 this->
nut() + this->nu()
210 return this->
nut(patchi) + this->nu(patchi);
Templated abstract base class for LES SGS models.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
declareRunTimeSelectionTable(autoPtr, LESModel, dictionary,(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport),(alpha, rho, U, alphaRhoPhi, phi, transport))
virtual void printCoeffs(const word &type)
Print model coefficients.
virtual tmp< volScalarField > nuEff() const
Return the effective viscosity.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
dimensionedScalar epsilonMin_
Lower limit of epsilon.
void operator=(const LESModel &)=delete
Disallow default bitwise assignment.
dictionary coeffDict_
Model coefficients dictionary.
Switch turbulence_
Turbulence on/off flag.
virtual ~LESModel()
Destructor.
A class for handling words, derived from string.
static word groupName(Name name, const word &group)
dictionary LESDict_
LES coefficients dictionary.
const volScalarField & delta() const
Access function to filter width.
autoPtr< Foam::LESdelta > delta_
Run-time selectable delta model.
LESModel(const word &type, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport)
Construct from components.
Switch printCoeffs_
Flag to print the model coeffs at run-time.
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
TypeName("LES")
Runtime type information.
BasicMomentumTransportModel::rhoField rhoField
const dimensionedScalar & kMin() const
Return the lower allowable limit for k (default: small)
dimensionedScalar omegaMin_
Lower limit for omega.
BasicMomentumTransportModel::transportModel transportModel
virtual bool read()
Read model coefficients if they have changed.
dimensionedScalar kMin_
Lower limit of k.
static autoPtr< LESModel > New(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport)
Return a reference to the selected LES model.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
virtual const dictionary & coeffDict() const
Const access to the coefficients dictionary.
BasicMomentumTransportModel::alphaField alphaField
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
A class for managing temporary objects.