35 #ifndef generalisedNewtonian_H
36 #define generalisedNewtonian_H
46 namespace laminarModels
53 template<
class BasicMomentumTransportModel>
69 typedef typename BasicMomentumTransportModel::alphaField
alphaField;
70 typedef typename BasicMomentumTransportModel::rhoField
rhoField;
Generic GeometricField class.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Momentum transport model for shear-dependent Non-Newtonian flow.
BasicMomentumTransportModel::alphaField alphaField
autoPtr< generalisedNewtonianViscosityModel > viscosityModel_
Run-time selectable generalised Newtonian viscosity model.
virtual void predict()
Predict the generalisedNewtonian viscosity.
virtual tmp< volScalarField > nuEff() const
Return the effective viscosity.
generalisedNewtonian(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)
Construct from components.
virtual void correct()
The generalisedNewtonian viscosity is not corrected.
virtual ~generalisedNewtonian()
Destructor.
static autoPtr< generalisedNewtonian > New(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)
Return a reference to the selected turbulence model.
TypeName("generalisedNewtonian")
Runtime type information.
virtual bool read()
Read momentumTransport dictionary.
BasicMomentumTransportModel::rhoField rhoField
Linear viscous stress turbulence model base class.
A class for managing temporary objects.
Abstract base class for all fluid physical properties.
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.