37namespace laminarModels
39namespace generalizedNewtonianViscosityModels
56Foam::laminarModels::generalizedNewtonianViscosityModels::strainRateFunction::
63 strainRateFunctionCoeffs_
65 viscosityProperties.optionalSubDict(typeName +
"Coeffs")
69 Function1<scalar>::
New(
"function", strainRateFunctionCoeffs_)
84 strainRateFunctionCoeffs_ =
87 strainRateFunction_.reset();
91 strainRateFunctionCoeffs_
114 tnu.ref().primitiveFieldRef() = strainRateFunction_->value(strainRate);
121 nuBf[patchi] = strainRateFunction_->value(sigmaBf[patchi]);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
const Mesh & mesh() const
Return mesh.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
const Boundary & boundaryField() const
Return const-reference to the boundary field.
static word group(const word &name)
Return group (extension part of name)
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
virtual bool read()
Re-read model coefficients if they have changed.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
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.
An abstract base class for generalized Newtonian viscosity models.
Run-time selected strain-rate function generalized Newtonian viscosity model.
A class for managing temporary objects.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
const dimensionSet dimViscosity
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
static constexpr const zero Zero
Global zero (0)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
#define forAll(list, i)
Loop across all elements in list.