38#ifndef generalizedNewtonian_H
39#define generalizedNewtonian_H
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.
Foam::fluidThermoCompressibleTurbulenceModel::alphaField alphaField
virtual ~generalizedNewtonian()=default
Destructor.
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.
autoPtr< generalizedNewtonianViscosityModel > viscosityModel_
virtual void correct()
Correct the generalizedNewtonian viscosity.
virtual tmp< scalarField > nut(const label patchi) const
Return the turbulence viscosity on patch.
virtual tmp< volScalarField > strainRate() const
TypeName("generalizedNewtonian")
Runtime type information.
virtual tmp< volScalarField > nuEff() const
Return the effective viscosity.
Foam::fluidThermoCompressibleTurbulenceModel::transportModel transportModel
virtual tmp< scalarField > nuEff(const label patchi) const
Return the effective viscosity on patch.
virtual tmp< volScalarField > nut() const
Return the turbulence viscosity,.
virtual bool read()
Read turbulence (momentumTransport) dictionary.
Foam::fluidThermoCompressibleTurbulenceModel::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.
linearViscousStress(const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName)
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.