34 namespace viscosityModels
51 Foam::viscosityModels::CrossPowerLaw::calcNu()
const 53 return (nu0_ - nuInf_)/(scalar(1) +
pow(m_*strainRate(), n_)) + nuInf_;
74 m_(
"m",
dimTime, CrossPowerLawCoeffs_),
75 n_(
"n",
dimless, CrossPowerLawCoeffs_),
100 CrossPowerLawCoeffs_ =
103 CrossPowerLawCoeffs_.
lookup(
"nu0") >> nu0_;
104 CrossPowerLawCoeffs_.lookup(
"nuInf") >> nuInf_;
105 CrossPowerLawCoeffs_.lookup(
"m") >> m_;
106 CrossPowerLawCoeffs_.lookup(
"n") >> n_;
const dimensionSet dimViscosity
A list of keyword definitions, which are a keyword followed by any number of values (e...
const dimensionSet dimless
An abstract base class for incompressible viscosityModels.
Macros for easy insertion into run-time selection tables.
const dimensionSet dimTime
addToRunTimeSelectionTable(viscosityModel, BirdCarreau, dictionary)
const dictionary & optionalSubDict(const word &) const
Find and return a sub-dictionary if found.
virtual bool read(const dictionary &viscosityProperties)=0
Read transportProperties dictionary.
A class for handling words, derived from string.
defineTypeNameAndDebug(BirdCarreau, 0)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
A class for managing temporary objects.
CrossPowerLaw(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.