35 #ifndef linearViscousStress_H 36 #define linearViscousStress_H 47 template<
class BasicMomentumTransportModel>
50 public BasicMomentumTransportModel
55 typedef typename BasicMomentumTransportModel::alphaField
alphaField;
56 typedef typename BasicMomentumTransportModel::rhoField
rhoField;
57 typedef typename BasicMomentumTransportModel::transportModel
transportModel;
65 const word& modelName,
66 const alphaField&
alpha,
71 const transportModel& transport
83 virtual bool read() = 0;
virtual void correct()=0
Solve the turbulence equations and correct the turbulence viscosity.
virtual ~linearViscousStress()
Destructor.
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.
BasicMomentumTransportModel::transportModel transportModel
BasicMomentumTransportModel::alphaField alphaField
linearViscousStress(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 handling words, derived from string.
virtual bool read()=0
Re-read model coefficients if they have changed.
BasicMomentumTransportModel::rhoField rhoField
virtual tmp< volSymmTensorField > devTau() const
Return the effective stress tensor.
A class for managing temporary objects.
virtual tmp< fvVectorMatrix > divDevTau(volVectorField &U) const
Return the source term for the momentum equation.