37namespace viscosityModels
75 viscosityProperties.optionalSubDict(typeName +
"Coeffs")
79 k_(
"k",
dimTime, BirdCarreauCoeffs_),
80 n_(
"n",
dimless, BirdCarreauCoeffs_),
83 BirdCarreauCoeffs_.getOrDefault
116 BirdCarreauCoeffs_.
readEntry(
"nu0", nu0_);
117 BirdCarreauCoeffs_.readEntry(
"nuInf", nuInf_);
118 BirdCarreauCoeffs_.readEntry(
"k", k_);
119 BirdCarreauCoeffs_.readEntry(
"n", n_);
120 a_ = BirdCarreauCoeffs_.getOrDefault
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
virtual bool read()
Re-read model coefficients if they have changed.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary, otherwise return this dictionary.
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
A class for managing temporary objects.
An abstract base class for incompressible viscosityModels.
tmp< volScalarField > strainRate() const
Return the strain rate.
An incompressible Bird-Carreau non-Newtonian viscosity model.
tmp< volScalarField > calcNu() const
Calculate and return the laminar viscosity.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
const dimensionSet dimViscosity
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimless
Dimensionless.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.