37 namespace laminarModels
39 namespace generalizedNewtonianViscosityModels
45 generalizedNewtonianViscosityModel,
63 strainRateFunctionCoeffs_
65 viscosityProperties.optionalSubDict(typeName +
"Coeffs")
69 Function1<scalar>::
New(
"function", strainRateFunctionCoeffs_)
84 strainRateFunctionCoeffs_ =
87 strainRateFunction_.reset();
91 strainRateFunctionCoeffs_
119 tnu.ref().primitiveFieldRef() = strainRateFunction_->value(strainRate);
126 nuBf[patchi] = strainRateFunction_->value(sigmaBf[patchi]);
static word group(const word &name)
Return group (extension part of name)
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...
An abstract base class for generalized Newtonian viscosity models.
virtual tmp< volScalarField > nu(const volScalarField &nu0, const volScalarField &strainRate) const
Return the laminar viscosity.
const dimensionSet dimViscosity
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
strainRateFunction(const dictionary &viscosityProperties)
Construct from dictionary (components)
Macros for easy insertion into run-time selection tables.
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
#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.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
static word scopedName(const std::string &scope, const word &name)
Create scope:name or scope_name string.
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=fvPatchField< scalar >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions and patch type. [Takes current timeN...
const Mesh & mesh() const noexcept
Return mesh.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
addToRunTimeSelectionTable(generalizedNewtonianViscosityModel, BirdCarreau, dictionary)
A class for managing temporary objects.
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
defineTypeNameAndDebug(BirdCarreau, 0)
static constexpr const zero Zero
Global zero (0)