53 template<
class BasicMomentumTransportModel>
56 public BasicMomentumTransportModel
97 typedef typename BasicMomentumTransportModel::alphaField
alphaField;
98 typedef typename BasicMomentumTransportModel::rhoField
rhoField;
113 const alphaField&
alpha,
120 (alpha, rho, U, alphaRhoPhi, phi, viscosity)
130 const alphaField& alpha,
135 const viscosity& viscosity
147 const alphaField& alpha,
152 const viscosity& viscosity
211 return viscosityModel_->nu();
217 return viscosityModel_->nu(patchi);
226 this->
nut() + this->
nu()
233 return this->
nut(patchi) + this->
nu(patchi);
void operator=(const RASModel &)=delete
Disallow default bitwise assignment.
dimensionedScalar kMin_
Lower limit of k.
autoPtr< laminarModels::generalisedNewtonianViscosityModel > viscosityModel_
Run-time selectable generalised Newtonian viscosity model.
A list of keyword definitions, which are a keyword followed by any number of values (e...
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
dictionary RASDict_
RAS coefficients dictionary.
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
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.
declareRunTimeSelectionTable(autoPtr, RASModel, 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))
virtual bool read()
Read model coefficients if they have changed.
virtual ~RASModel()
Destructor.
BasicMomentumTransportModel::alphaField alphaField
Templated abstract base class for RAS turbulence models.
virtual tmp< volScalarField > nuEff() const
Return the effective viscosity.
dictionary coeffDict_
Model coefficients dictionary.
virtual const dictionary & coeffDict() const
Const access to the coefficients dictionary.
static autoPtr< RASModel > 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 RAS model.
A class for handling words, derived from string.
static word groupName(Name name, const word &group)
const dimensionedScalar & kMin() const
Return the lower allowable limit for k (default: small)
virtual void printCoeffs(const word &type)
Print model coefficients.
dimensionedScalar omegaMin_
Lower limit for omega.
Abstract base class for all fluid physical properties.
BasicMomentumTransportModel::rhoField rhoField
TypeName("RAS")
Runtime type information.
const dimensionedScalar & epsilonMin() const
Return the lower allowable limit for epsilon (default: small)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
RASModel(const word &type, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)
Construct from components.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Switch printCoeffs_
Flag to print the model coeffs at run-time.
A class for managing temporary objects.
virtual tmp< volScalarField > nu() const
Return the laminar viscosity.
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
dimensionedScalar epsilonMin_
Lower limit of epsilon.
const dimensionedScalar & omegaMin() const
Return the lower allowable limit for omega (default: small)
Switch turbulence_
Turbulence on/off flag.