37namespace laminarModels
39namespace generalizedNewtonianViscosityModels
62 powerLawCoeffs_(viscosityProperties.optionalSubDict(typeName +
"Coeffs")),
63 n_(
"n",
dimless, powerLawCoeffs_),
78 powerLawCoeffs_ = viscosityProperties.
optionalSubDict(typeName +
"Coeffs");
81 powerLawCoeffs_.readEntry(
"nuMin", nuMin_);
82 powerLawCoeffs_.readEntry(
"nuMax", nuMax_);
109 n_.value() - scalar(1)
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
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
An abstract base class for generalized Newtonian viscosity models.
Standard power-law generalized Newtonian viscosity model.
Power law porosity model, given by:
A class for managing temporary objects.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
const dimensionSet dimViscosity
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
const dimensionSet dimless
Dimensionless.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.