62 generalizedNewtonianViscosityModel(viscosityProperties),
63 strainRateFunctionCoeffs_
65 viscosityProperties.optionalSubDict(
typeName +
"Coeffs")
84 strainRateFunctionCoeffs_ =
87 strainRateFunction_.reset();
88 strainRateFunction_ = Function1<scalar>::New
91 strainRateFunctionCoeffs_
119 tnu.ref().primitiveFieldRef() = strainRateFunction_->value(strainRate);
126 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 noexcept
Return const reference to mesh.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
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())
GeometricBoundaryField< scalar, fvPatchField, volMesh > Boundary
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
static word scopedName(const std::string &scope, const word &name)
Create scope:name or scope_name string.
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.
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.
generalizedNewtonianViscosityModel(const generalizedNewtonianViscosityModel &)=delete
No copy construct.
static autoPtr< generalizedNewtonianViscosityModel > New(const dictionary &dict)
Select a viscosity model.
const dictionary & viscosityProperties() const
Return the phase transport properties dictionary.
virtual bool read(const dictionary &viscosityProperties)=0
Read transportProperties dictionary.
Run-time selected strain-rate function generalized Newtonian viscosity model.
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
virtual tmp< volScalarField > nu(const volScalarField &nu0, const volScalarField &strainRate) const
Return the laminar viscosity.
strainRateFunction(const dictionary &viscosityProperties)
Construct from dictionary (components).
A class for managing temporary objects.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
A namespace for various generalized Newtonian viscosity model implementations.
const dimensionSet dimViscosity
GeometricField< scalar, fvPatchField, volMesh > volScalarField
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
static constexpr const zero Zero
Global zero (0).
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
#define forAll(list, i)
Loop across all elements in list.