36namespace mixtureViscosityModels
42 mixtureViscosityModel,
55 const dictionary& viscosityProperties,
56 const volVectorField&
U,
57 const surfaceScalarField&
phi,
61 mixtureViscosityModel(
name, viscosityProperties,
U,
phi),
62 plasticCoeffs_(viscosityProperties.optionalSubDict(modelName +
"Coeffs")),
64 plasticViscosityExponent_(
"exponent",
dimless, plasticCoeffs_),
72 viscosityProperties.getOrDefault<word>(
"alpha",
"alpha"),
103 const dictionary& viscosityProperties
108 plasticCoeffs_ = viscosityProperties.optionalSubDict(typeName +
"Coeffs");
110 plasticCoeffs_.readEntry(
"k", plasticViscosityCoeff_);
111 plasticCoeffs_.readEntry(
"n", plasticViscosityExponent_);
112 plasticCoeffs_.readEntry(
"muMax", muMax_);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
virtual bool read()
Re-read model coefficients if they have changed.
Viscosity correction model for a generic power-law plastic.
dimensionedScalar muMax_
Maximum viscosity.
const volScalarField & alpha_
Plastic phase fraction.
dimensionedScalar plasticViscosityCoeff_
Plastic viscosity coefficient.
dimensionedScalar plasticViscosityExponent_
Plastic viscosity exponent.
A class for managing temporary objects.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
const word dictName("faMeshDefinition")
const dimensionedScalar mu
Atomic mass unit.
const dimensionSet dimless
Dimensionless.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
const dimensionSet dimDynamicViscosity
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.