42 mixtureViscosityModel,
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"),
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(const dictionary &viscosityProperties)=0
Read transportProperties dictionary.
Viscosity correction model for a generic power-law plastic.
bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
plastic(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi, const word modelName=typeName)
Construct from components.
dimensionedScalar muMax_
Maximum viscosity.
tmp< volScalarField > mu(const volScalarField &muc) const
Return the mixture 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")
A namespace for incompressible mixtureViscosityModel implementations.
const dimensionSet dimless
Dimensionless.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
const dimensionSet dimDynamicViscosity