38#ifndef generalizedNewtonian_H
39#define generalizedNewtonian_H
49namespace laminarModels
56template<
class BasicMomentumTransportModel>
79 typedef typename BasicMomentumTransportModel::alphaField
alphaField;
80 typedef typename BasicMomentumTransportModel::rhoField
rhoField;
81 typedef typename BasicMomentumTransportModel::transportModel
transportModel;
99 const word& propertiesName
114 const word& propertiesName
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Turbulence model for shear-dependent Non-Newtonian flow.
BasicMomentumTransportModel::alphaField alphaField
virtual ~generalizedNewtonian()=default
Destructor.
autoPtr< generalizedNewtonianViscosityModel > viscosityModel_
Run-time selectable non-Newtonian viscosity model.
virtual void correct()
Correct the generalizedNewtonian viscosity.
volScalarField nu_
The non-Newtonian viscosity field.
virtual tmp< volScalarField > strainRate() const
TypeName("generalizedNewtonian")
Runtime type information.
virtual tmp< volScalarField > nuEff() const
Return the effective viscosity.
BasicMomentumTransportModel::transportModel transportModel
virtual tmp< volScalarField > nut() const
Return the turbulence viscosity,.
virtual bool read()
Read turbulence (momentumTransport) dictionary.
BasicMomentumTransportModel::rhoField rhoField
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)
Return a reference to the selected turbulence model.
Linear viscous stress turbulence model base class.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.