56 return (nu0_ - nuInf_)/(scalar(1) +
pow(m_*
strainRate(), n_)) + nuInf_;
73 viscosityProperties.optionalSubDict(
typeName +
"Coeffs")
77 m_(
"m",
dimTime, CrossPowerLawCoeffs_),
78 n_(
"n",
dimless, CrossPowerLawCoeffs_),
103 CrossPowerLawCoeffs_ =
106 CrossPowerLawCoeffs_.
readEntry(
"nu0", nu0_);
107 CrossPowerLawCoeffs_.readEntry(
"nuInf", nuInf_);
108 CrossPowerLawCoeffs_.readEntry(
"m", m_);
109 CrossPowerLawCoeffs_.readEntry(
"n", n_);
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,...
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,...
A class for managing temporary objects.
An abstract base class for incompressible viscosityModels.
const volVectorField & U_
tmp< volScalarField > strainRate() const
Return the strain rate.
viscosityModel(const viscosityModel &)=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 Cross-Power law non-Newtonian viscosity model.
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
tmp< volScalarField > calcNu() const
Calculate and return the laminar viscosity.
CrossPowerLaw(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
A namespace for various incompressible viscosityModel implementations.
const dimensionSet dimViscosity
GeometricField< vector, fvPatchField, volMesh > volVectorField
const dimensionSet dimless
Dimensionless.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.