35namespace blendingMethods
52 const dictionary&
dict,
53 const wordList& phaseNames
58 for (
const word& phaseName : phaseNames)
60 maxFullyDispersedAlpha_.insert
65 IOobject::groupName(
"maxFullyDispersedAlpha", phaseName),
71 maxPartlyDispersedAlpha_.insert
76 IOobject::groupName(
"maxPartlyDispersedAlpha", phaseName),
84 maxFullyDispersedAlpha_[phaseName]
85 > maxPartlyDispersedAlpha_[phaseName]
89 <<
"The supplied fully dispersed volume fraction for "
91 <<
" is greater than the partly dispersed value."
107 maxFullAlpha(maxFullyDispersedAlpha_[
phase1.
name()]);
109 maxPartAlpha(maxPartlyDispersedAlpha_[
phase1.
name()]);
117 /(maxPartAlpha - maxFullAlpha + SMALL),
132 maxFullAlpha(maxFullyDispersedAlpha_[
phase2.name()]);
134 maxPartAlpha(maxPartlyDispersedAlpha_[
phase2.name()]);
142 /(maxPartAlpha - maxFullAlpha + SMALL),
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
virtual tmp< volScalarField > f1(const phaseModel &phase1, const phaseModel &phase2) const
Factor for primary phase.
tmp< volScalarField > f2() const
Central-differencing interpolation scheme class.
const word & name() const
A class for managing temporary objects.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Ostream & endl(Ostream &os)
Add newline and flush stream.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
errorManipArg< error, int > exit(error &err, const int errNo=1)