35 #ifndef generalizedNewtonian_H 36 #define generalizedNewtonian_H 46 namespace laminarModels
53 template<
class BasicMomentumTransportModel>
77 typedef typename BasicMomentumTransportModel::alphaField
alphaField;
78 typedef typename BasicMomentumTransportModel::rhoField
rhoField;
79 typedef typename BasicMomentumTransportModel::transportModel
transportModel;
91 const alphaField&
alpha,
96 const transportModel& transport
105 const alphaField&
alpha,
110 const transportModel& transport
volScalarField nu_
The non-Newtonian viscosity field.
BasicMomentumTransportModel::transportModel transportModel
BasicMomentumTransportModel::alphaField alphaField
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 void correct()
Correct the generalizedNewtonian viscosity.
Linear viscous stress turbulence model base class.
Turbulence model for shear-dependent Non-Newtonian flow.
static autoPtr< generalizedNewtonian > New(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport)
Return a reference to the selected turbulence model.
generalizedNewtonian(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport)
Construct from components.
virtual tmp< volScalarField > k() const
Return the turbulence kinetic energy.
virtual tmp< volScalarField > epsilon() const
Return the turbulence kinetic energy dissipation rate,.
BasicMomentumTransportModel::rhoField rhoField
virtual bool read()
Read momentumTransport dictionary.
TypeName("generalizedNewtonian")
Runtime type information.
virtual tmp< volScalarField > strainRate() const
virtual ~generalizedNewtonian()
Destructor.
virtual tmp< volScalarField > nut() const
Return the turbulence viscosity,.
virtual tmp< volSymmTensorField > sigma() const
Return the stress tensor [m^2/s^2].
virtual tmp< volScalarField > nuEff() const
Return the effective viscosity.
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.
autoPtr< generalizedNewtonianViscosityModel > viscosityModel_
Run-time selectable non-Newtonian viscosity model.