43 mixtureViscosityModel,
57 const volVectorField&
U,
58 const surfaceScalarField&
phi
61 plastic(
name, viscosityProperties,
U,
phi, typeName),
65 dimensionSet(1, -1, -2, 0, 0),
89 const volScalarField& muc
119 + 1.0e-4*(tauy + tauySmall)/mup
134 plasticCoeffs_.readEntry(
"BinghamCoeff", yieldStressCoeff_);
135 plasticCoeffs_.readEntry(
"BinghamExponent", yieldStressExponent_);
136 plasticCoeffs_.readEntry(
"BinghamOffset", yieldStressOffset_);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Viscosity correction model for Bingham plastics.
bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
dimensionedScalar yieldStressExponent_
Yield stress exponent.
dimensionedScalar yieldStressCoeff_
Yield stress coefficient.
const volVectorField & U_
Velocity.
tmp< volScalarField > mu(const volScalarField &muc) const
Return the mixture viscosity.
BinghamPlastic(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
dimensionedScalar yieldStressOffset_
Yield stress offset.
bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
dimensionedScalar muMax_
Maximum viscosity.
tmp< volScalarField > mu(const volScalarField &muc) const
Return the mixture viscosity.
const volScalarField & alpha_
Plastic phase fraction.
A class for managing temporary objects.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Calculate the gradient of the given field.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
A namespace for incompressible mixtureViscosityModel implementations.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
const dimensionSet dimless
Dimensionless.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.