61 generalizedNewtonianViscosityModel(viscosityProperties),
64 viscosityProperties.optionalSubDict(
typeName +
"Coeffs")
67 k_(
"k",
dimTime, BirdCarreauCoeffs_),
68 n_(
"n",
dimless, BirdCarreauCoeffs_),
71 BirdCarreauCoeffs_.getOrDefault
93 BirdCarreauCoeffs_.
readEntry(
"nuInf", nuInf_);
94 BirdCarreauCoeffs_.readEntry(
"k", k_);
95 BirdCarreauCoeffs_.readEntry(
"n", n_);
97 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.
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, IOobjectOption::readOption readOpt=IOobjectOption::MUST_READ) const
Find entry and assign to T val. FatalIOError if it is found and the number of tokens is incorrect,...
An abstract base class for generalized Newtonian viscosity models.
generalizedNewtonianViscosityModel(const generalizedNewtonianViscosityModel &)=delete
No copy construct.
const dictionary & viscosityProperties() const
Return the phase transport properties dictionary.
virtual bool read(const dictionary &viscosityProperties)=0
Read transportProperties dictionary.
An incompressible Bird-Carreau non-Newtonian viscosity model.
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
BirdCarreau(const dictionary &viscosityProperties)
Construct from dictionary (components).
virtual tmp< volScalarField > nu(const volScalarField &nu0, const volScalarField &strainRate) const
Return the laminar viscosity.
A class for managing temporary objects.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
A namespace for various generalized Newtonian viscosity model implementations.
const dimensionSet dimViscosity
const dimensionSet dimless
Dimensionless.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.