Go to the documentation of this file.
37 namespace laminarModels
39 namespace generalizedNewtonianViscosityModels
45 generalizedNewtonianViscosityModel,
63 strainRateFunctionCoeffs_
84 strainRateFunctionCoeffs_ =
87 strainRateFunction_.reset();
91 strainRateFunctionCoeffs_
109 IOobject::groupName(
type() +
":nu", nu0.group()),
114 tnu.ref().primitiveFieldRef() = strainRateFunction_->value(strainRate);
116 volScalarField::Boundary& nuBf = tnu.ref().boundaryFieldRef();
117 const volScalarField::Boundary& sigmaBf = strainRate.
boundaryField();
121 nuBf[patchi] = strainRateFunction_->value(sigmaBf[patchi]);
addToRunTimeSelectionTable(generalizedNewtonianViscosityModel, BirdCarreau, dictionary)
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
virtual tmp< volScalarField > nu(const volScalarField &nu0, const volScalarField &strainRate) const
Return the laminar viscosity.
strainRateFunction(const dictionary &viscosityProperties)
Construct from dictionary (components)
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
#define forAll(list, i)
Loop across all elements in list.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimViscosity
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
An abstract base class for generalized Newtonian viscosity models.
defineTypeNameAndDebug(BirdCarreau, 0)
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary, otherwise return this dictionary.
const Boundary & boundaryField() const
Return const-reference to the boundary field.