Go to the documentation of this file.
30 #include "phasePair.H"
31 #include "swarmCorrection.H"
32 #include "surfaceInterpolate.H"
33 #include "BlendedInterfacialModel.H"
52 const bool registerObject
59 IOobject::groupName(typeName, pair.
name()),
60 pair.
phase1().mesh().time().timeName(),
75 const bool registerObject
82 IOobject::groupName(typeName, pair.
name()),
83 pair.
phase1().mesh().time().timeName(),
95 dict.subDict(
"swarmCorrection"),
113 Info<<
"Selecting dragModel for "
114 << pair <<
": " << modelType <<
endl;
116 auto* ctorPtr = dictionaryConstructorTable(modelType);
125 *dictionaryConstructorTablePtr_
129 return ctorPtr(
dict, pair,
true);
146 *swarmCorrection_->Cs()
147 *pair_.continuous().rho()
148 *pair_.continuous().nu()
149 /
sqr(pair_.dispersed().d());
155 return max(pair_.dispersed(), pair_.dispersed().residualAlpha())*Ki();
165 pair_.dispersed().residualAlpha()
virtual tmp< surfaceScalarField > Kf() const
Return the drag coefficient Kf.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Description for mass transfer between a pair of phases. The direction of the mass transfer is from th...
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
virtual tmp< volScalarField > K() const
Return the drag coefficient K.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
virtual tmp< volScalarField > Ki() const
Return the phase-intensive drag coefficient Ki.
bool good() const noexcept
True if next operation might succeed.
defineBlendedInterfacialModelTypeNameAndDebug(massTransferModel, 0)
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
virtual ~dragModel()=default
Destructor.
messageStream Info
Information stream (stdout output on master, null elsewhere)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
static autoPtr< dragModel > New(const dictionary &dict, const phaseModel &phase1, const phaseModel &phase2)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
errorManip< error > abort(error &err)
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
bool writeData(Ostream &os) const
Dummy write for regIOobject.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
dimensionedSymmTensor sqr(const dimensionedVector &dv)
virtual word name() const
Pair name.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const phaseModel & phase1() const
static const dimensionSet dimK
Coefficient dimensions.
defineTypeNameAndDebug(combustionModel, 0)
dragModel(const dictionary &dict, const phaseModel &phase1, const phaseModel &phase2)