35 #ifndef generalizedNewtonian_H 36 #define generalizedNewtonian_H 46 namespace laminarModels
53 template<
class BasicTurbulenceModel>
77 typedef typename BasicTurbulenceModel::alphaField
alphaField;
78 typedef typename BasicTurbulenceModel::rhoField
rhoField;
79 typedef typename BasicTurbulenceModel::transportModel
transportModel;
91 const alphaField&
alpha,
96 const transportModel& transport,
106 const alphaField&
alpha,
111 const transportModel& transport,
volScalarField nu_
The non-Newtonian viscosity field.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
BasicTurbulenceModel::rhoField rhoField
virtual void correct()
Correct the generalizedNewtonian viscosity.
Linear viscous stress turbulence model base class.
Turbulence model for shear-dependent Non-Newtonian flow.
virtual tmp< volScalarField > k() const
Return the turbulence kinetic energy.
generalizedNewtonian(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName)
Construct from components.
virtual tmp< volScalarField > epsilon() const
Return the turbulence kinetic energy dissipation rate,.
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from string.
static autoPtr< generalizedNewtonian > New(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName)
Return a reference to the selected turbulence model.
virtual bool read()
Read turbulenceProperties dictionary.
TypeName("generalizedNewtonian")
Runtime type information.
virtual tmp< volScalarField > strainRate() const
virtual ~generalizedNewtonian()
Destructor.
virtual tmp< volScalarField > nut() const
Return the turbulence viscosity,.
BasicTurbulenceModel::alphaField alphaField
virtual tmp< volScalarField > nuEff() const
Return the effective viscosity.
BasicTurbulenceModel::transportModel transportModel
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
A class for managing temporary objects.
virtual tmp< volSymmTensorField > R() const
Return the Reynolds stress tensor.
autoPtr< generalizedNewtonianViscosityModel > viscosityModel_
Run-time selectable non-Newtonian viscosity model.