Go to the documentation of this file.
41 #ifndef ReynoldsStress_H
42 #define ReynoldsStress_H
53 template<
class BasicTurbulenceModel>
56 public BasicTurbulenceModel
82 template<
class RhoFieldType>
85 const RhoFieldType&
rho,
92 typedef typename BasicTurbulenceModel::alphaField
alphaField;
93 typedef typename BasicTurbulenceModel::rhoField
rhoField;
94 typedef typename BasicTurbulenceModel::transportModel
transportModel;
102 const word& modelName,
109 const word& propertiesName
120 virtual bool read() = 0;
virtual tmp< volScalarField > k() const
Return the turbulence kinetic energy.
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
virtual bool read()=0
Re-read model coefficients if they have changed.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
void correctWallShearStress(volSymmTensorField &R) const
virtual tmp< scalarField > nut(const label patchi) const
Return the turbulence viscosity on patch.
virtual void correctNut()=0
Update the eddy-viscosity.
Reynolds-stress turbulence model base class.
virtual tmp< fvVectorMatrix > divDevRhoReff(volVectorField &U) const
Return the source term for the momentum equation.
ReynoldsStress(const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName)
Construct from components.
virtual ~ReynoldsStress()=default
Destructor.
BasicTurbulenceModel::transportModel transportModel
tmp< fvVectorMatrix > DivDevRhoReff(const RhoFieldType &rho, volVectorField &U) const
Return the source term for the momentum equation.
BasicTurbulenceModel::rhoField rhoField
virtual void validate()
Validate the turbulence fields after construction.
BasicTurbulenceModel::alphaField alphaField
virtual tmp< volScalarField > nut() const
Return the turbulence viscosity.
virtual tmp< volSymmTensorField > devRhoReff() const
Return the effective stress tensor.
BasicTurbulenceModel::transportModel transportModel
virtual void correct()=0
Solve the turbulence equations and correct the turbulence viscosity.
virtual tmp< volSymmTensorField > R() const
Return the Reynolds stress tensor.
void boundNormalStress(volSymmTensorField &R) const
BasicTurbulenceModel::alphaField alphaField
BasicTurbulenceModel::rhoField rhoField
dimensionedScalar couplingFactor_
const Boundary & boundaryField() const
Return const-reference to the boundary field.