50#ifndef ReynoldsStress_H
51#define ReynoldsStress_H
62template<
class BasicTurbulenceModel>
65 public BasicTurbulenceModel
92 template<
class RhoFieldType>
95 const RhoFieldType&
rho,
102 typedef typename BasicTurbulenceModel::alphaField
alphaField;
103 typedef typename BasicTurbulenceModel::rhoField
rhoField;
104 typedef typename BasicTurbulenceModel::transportModel
transportModel;
112 const word& modelName,
119 const word& propertiesName
130 virtual bool read() = 0;
141 return nut_.boundaryField()[patchi];
BasicTurbulenceModel::alphaField alphaField
virtual tmp< volSymmTensorField > R() const
Return the Reynolds stress tensor.
void boundNormalStress(volSymmTensorField &R) const
BasicTurbulenceModel::rhoField rhoField
virtual tmp< scalarField > nut(const label patchi) const
Return the turbulence viscosity on patch.
virtual tmp< volScalarField > k() const
Return the turbulence kinetic energy.
virtual void validate()
Validate the turbulence fields after construction.
virtual bool read()=0
Re-read model coefficients if they have changed.
virtual tmp< fvVectorMatrix > divDevRhoReff(volVectorField &U) const
Return the source term for the momentum equation.
virtual ~ReynoldsStress()=default
Destructor.
virtual tmp< volScalarField > nut() const
Return the turbulence viscosity.
tmp< fvVectorMatrix > DivDevRhoReff(const RhoFieldType &rho, volVectorField &U) const
Return the source term for the momentum equation.
virtual void correctNut()=0
Update the eddy-viscosity.
virtual void correct()=0
Solve the turbulence equations and correct the turbulence viscosity.
BasicTurbulenceModel::transportModel transportModel
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 tmp< volSymmTensorField > devRhoReff() const
Return the effective stress tensor.
dimensionedScalar couplingFactor_
void correctWallShearStress(volSymmTensorField &R) const
void checkRealizabilityConditions(const volSymmTensorField &R) const
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.