35 #ifndef eddyViscosity_H 36 #define eddyViscosity_H 49 template<
class BasicMomentumTransportModel>
71 typedef typename BasicMomentumTransportModel::alphaField
alphaField;
72 typedef typename BasicMomentumTransportModel::rhoField
rhoField;
73 typedef typename BasicMomentumTransportModel::transportModel
transportModel;
81 const word& modelName,
82 const alphaField&
alpha,
87 const transportModel& transport
99 virtual bool read() = 0;
virtual tmp< volSymmTensorField > sigma() const
Return the Reynolds stress tensor [m^2/s^2].
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual tmp< volScalarField > nut() const
Return the turbulence viscosity.
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
Linear viscous stress turbulence model base class.
Eddy viscosity turbulence model base class.
BasicMomentumTransportModel::rhoField rhoField
virtual bool read()=0
Re-read model coefficients if they have changed.
virtual void correct()=0
Solve the turbulence equations and correct the turbulence viscosity.
BasicMomentumTransportModel::transportModel transportModel
A class for handling words, derived from string.
virtual void correctNut()=0
BasicMomentumTransportModel::alphaField alphaField
virtual ~eddyViscosity()
Destructor.
virtual void validate()
Validate the turbulence fields after construction.
eddyViscosity(const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport)
Construct from components.
A class for managing temporary objects.