60 template<
class BasicMomentumTransportModel>
63 public BasicMomentumTransportModel
107 typedef typename BasicMomentumTransportModel::alphaField
alphaField;
108 typedef typename BasicMomentumTransportModel::rhoField
rhoField;
123 const alphaField&
alpha,
130 (alpha, rho, U, alphaRhoPhi, phi, viscosity)
140 const alphaField& alpha,
145 const viscosity& viscosity
157 const alphaField& alpha,
162 const viscosity& viscosity
203 return viscosityModel_->nu();
209 return viscosityModel_->nu(patchi);
218 this->
nut() + this->
nu()
225 return this->
nut(patchi) + this->
nu(patchi);
Templated abstract base class for LES SGS models.
A list of keyword definitions, which are a keyword followed by any number of values (e...
LESModel(const word &type, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)
Construct from components.
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
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)
virtual tmp< volScalarField > nu() const
Return the laminar viscosity.
static autoPtr< LESModel > New(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)
Return a reference to the selected LES model.
dictionary LESDict_
LES coefficients dictionary.
autoPtr< laminarModels::generalisedNewtonianViscosityModel > viscosityModel_
Run-time selectable generalised Newtonian viscosity model.
const volScalarField & delta() const
Access function to filter width.
autoPtr< Foam::LESdelta > delta_
Run-time selectable delta model.
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)
Abstract base class for all fluid physical properties.
dimensionedScalar omegaMin_
Lower limit for omega.
virtual bool read()
Read model coefficients if they have changed.
dimensionedScalar kMin_
Lower limit of k.
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
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
declareRunTimeSelectionTable(autoPtr, LESModel, dictionary,(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity),(alpha, rho, U, alphaRhoPhi, phi, viscosity))
A class for managing temporary objects.