38 #ifndef generalizedNewtonian_H 39 #define generalizedNewtonian_H 49 namespace laminarModels
56 template<
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
volScalarField nu_
The non-Newtonian viscosity field.
BasicMomentumTransportModel::transportModel transportModel
BasicMomentumTransportModel::alphaField alphaField
virtual void correct()
Correct the generalizedNewtonian viscosity.
generalizedNewtonian(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName)
Construct from components.
Linear viscous stress turbulence model base class.
Turbulence model for shear-dependent Non-Newtonian flow.
BasicMomentumTransportModel::rhoField rhoField
A class for handling words, derived from Foam::string.
virtual bool read()
Read turbulence (momentumTransport) dictionary.
TypeName("generalizedNewtonian")
Runtime type information.
virtual tmp< volScalarField > strainRate() const
virtual tmp< volScalarField > nut() const
Return the turbulence viscosity,.
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.
virtual tmp< volScalarField > nuEff() const
Return the effective viscosity.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
A class for managing temporary objects.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
autoPtr< generalizedNewtonianViscosityModel > viscosityModel_
Run-time selectable non-Newtonian viscosity model.
virtual ~generalizedNewtonian()=default
Destructor.