37 namespace viscosityModels
62 strainRateFunctionCoeffs_
64 viscosityProperties.optionalSubDict(typeName +
"Coeffs")
71 strainRateFunctionCoeffs_,
105 return nu_.boundaryField()[patchi];
114 nu_.primitiveFieldRef() = strainRateFunction_->value(
sigma());
121 nuBf[patchi] = strainRateFunction_->value(sigmaBf[patchi]);
138 strainRateFunction_.
clear();
142 strainRateFunctionCoeffs_,
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual tmp< volScalarField > nu() const
Return the laminar viscosity.
const dimensionSet dimViscosity
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
dimensionedScalar sigma("sigma", dimMass/sqr(dimTime), transportProperties)
An abstract base class for incompressible viscosityModels.
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
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 INVALID.
addToRunTimeSelectionTable(viscosityModel, BirdCarreau, dictionary)
virtual bool read(const dictionary &viscosityProperties)=0
Read transportProperties dictionary.
A class for handling words, derived from Foam::string.
defineTypeNameAndDebug(BirdCarreau, 0)
strainRateFunction(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
A class for managing temporary objects.
void clear()
Clear the dictionary.
virtual void correct()
Correct the laminar viscosity.
Defines the attributes of an object for which implicit objectRegistry management is supported...
static constexpr const zero Zero
Global zero (0)