Go to the documentation of this file.
52 template<
class BasicTurbulenceModel>
55 public BasicTurbulenceModel
98 typedef typename BasicTurbulenceModel::alphaField
alphaField;
99 typedef typename BasicTurbulenceModel::rhoField
rhoField;
100 typedef typename BasicTurbulenceModel::transportModel
transportModel;
121 const word& propertiesName
123 (
alpha,
rho,
U, alphaRhoPhi,
phi, transport, propertiesName)
139 const word& propertiesName
221 this->
nut() + this->
nu()
229 return this->
nut(patchi) + this->
nu(patchi);
dictionary coeffDict_
Model coefficients dictionary.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
dimensionedScalar & omegaMin()
Allow omegaMin to be changed.
TypeName("RAS")
Runtime type information.
A class for handling words, derived from Foam::string.
virtual tmp< volScalarField > omega() const
Return the specific dissipation rate.
virtual tmp< volScalarField > nuEff() const
Return the effective viscosity.
A class for managing temporary objects.
Templated abstract base class for RAS turbulence models.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Switch printCoeffs_
Flag to print the model coeffs at run-time.
static const word propertiesName
Default name of the turbulence properties dictionary.
RASModel(const RASModel &)=delete
No copy construct.
dimensionedScalar epsilonMin_
Lower limit of epsilon.
dimensionedScalar omegaMin_
Lower limit for omega.
virtual ~RASModel()=default
Destructor.
BasicTurbulenceModel::alphaField alphaField
static autoPtr< RASModel > 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 RAS model.
const dimensionedScalar & epsilonMin() const
Return the lower allowable limit for epsilon (default: SMALL)
dictionary RASDict_
RAS coefficients dictionary.
void operator=(const RASModel &)=delete
No copy assignment.
dimensionedScalar & epsilonMin()
Allow epsilonMin to be changed.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
BasicTurbulenceModel::rhoField rhoField
BasicTurbulenceModel::alphaField alphaField
virtual tmp< scalarField > nuEff(const label patchi) const
Return the effective viscosity on patch.
declareRunTimeSelectionTable(autoPtr, RASModel, dictionary,(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName),(alpha, rho, U, alphaRhoPhi, phi, transport, propertiesName))
BasicTurbulenceModel::transportModel transportModel
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
virtual tmp< volScalarField > epsilon() const
Return the turbulence kinetic energy dissipation rate.
BasicTurbulenceModel::transportModel transportModel
virtual const dictionary & coeffDict() const
Const access to the coefficients dictionary.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const dimensionedScalar & omegaMin() const
Return the lower allowable limit for omega (default: SMALL)
Switch turbulence_
Turbulence on/off flag.
dimensionedScalar kMin_
Lower limit of k.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
const dimensionedScalar & kMin() const
Return the lower allowable limit for k (default: SMALL)
virtual void printCoeffs(const word &type)
Print model coefficients.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
dimensionedScalar & kMin()
Allow kMin to be changed.
virtual bool read()
Read model coefficients if they have changed.