37 namespace viscosityModels
89 CassonCoeffs_(viscosityProperties.optionalSubDict(typeName +
"Coeffs")),
118 CassonCoeffs_ = viscosityProperties.
optionalSubDict(typeName +
"Coeffs");
121 CassonCoeffs_.readEntry(
"tau0", tau0_);
122 CassonCoeffs_.readEntry(
"nuMin", nuMin_);
123 CassonCoeffs_.readEntry(
"nuMax", nuMax_);
tmp< volScalarField > calcNu() const
Calculate and return the laminar viscosity.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionSet dimViscosity
dimensionedScalar sqrt(const dimensionedScalar &ds)
tmp< volScalarField > strainRate() const
Return the strain rate.
const dimensionSet dimless
Dimensionless.
An abstract base class for incompressible viscosityModels.
Macros for easy insertion into run-time selection tables.
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...
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary, otherwise return this dictionary.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
addToRunTimeSelectionTable(viscosityModel, BirdCarreau, dictionary)
virtual bool read(const dictionary &viscosityProperties)=0
Read transportProperties dictionary.
A class for handling words, derived from Foam::string.
Casson(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
defineTypeNameAndDebug(BirdCarreau, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
A class for managing temporary objects.
Defines the attributes of an object for which implicit objectRegistry management is supported...