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;
82 const alphaField&
alpha,
96 const alphaField&
alpha,
virtual bool read()
Read momentumTransport dictionary.
Momentum transport model for shear-dependent Non-Newtonian flow.
virtual tmp< volScalarField > nuEff() const
Return the effective viscosity.
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.
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.
BasicMomentumTransportModel::rhoField rhoField
virtual void correct()
Correct the generalisedNewtonian viscosity.
BasicMomentumTransportModel::alphaField alphaField
TypeName("generalisedNewtonian")
Runtime type information.
virtual ~generalisedNewtonian()
Destructor.
Abstract base class for all fluid physical properties.
generalisedNewtonian(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)
Construct from components.
autoPtr< generalisedNewtonianViscosityModel > viscosityModel_
Run-time selectable generalised Newtonian viscosity model.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A class for managing temporary objects.