35 #ifndef ReynoldsStress_H
36 #define ReynoldsStress_H
47 template<
class BasicMomentumTransportModel>
50 public BasicMomentumTransportModel
79 template<
class RhoFieldType>
82 const RhoFieldType&
rho,
89 typedef typename BasicMomentumTransportModel::alphaField
alphaField;
90 typedef typename BasicMomentumTransportModel::rhoField
rhoField;
98 const word& modelName,
116 virtual bool read() = 0;
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Reynolds-stress turbulence model base class.
BasicMomentumTransportModel::alphaField alphaField
void boundNormalStress(volSymmTensorField &R) const
virtual tmp< volScalarField > nut() const
Return the turbulence viscosity.
virtual ~ReynoldsStress()
Destructor.
virtual tmp< volScalarField > k() const
Return the turbulence kinetic energy.
virtual void validate()
Validate the turbulence fields after construction.
ReynoldsStress(const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)
Construct from components.
virtual tmp< volSymmTensorField > devTau() const
Return the effective stress tensor.
virtual bool read()=0
Re-read model coefficients if they have changed.
virtual void correctNut()=0
Update the eddy-viscosity.
virtual void correct()=0
Solve the turbulence equations and correct the turbulence viscosity.
virtual tmp< fvVectorMatrix > divDevTau(volVectorField &U) const
Return the source term for the momentum equation.
virtual tmp< volSymmTensorField > sigma() const
Return the Reynolds stress tensor [m^2/s^2].
virtual tmp< fvSymmTensorMatrix > RSource() const
Source term for the R equation.
dimensionedScalar couplingFactor_
tmp< fvVectorMatrix > DivDevRhoReff(const RhoFieldType &rho, volVectorField &U) const
Return the source term for the momentum equation.
void correctWallShearStress(volSymmTensorField &R) const
BasicMomentumTransportModel::rhoField rhoField
A class for managing temporary objects.
Abstract base class for all fluid physical properties.
A class for handling words, derived from string.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static scalar R(const scalar a, const scalar x)