30 #include "phasePair.H" 31 #include "surfaceInterpolate.H" 48 const dictionary&
dict,
49 const phasePair& pair,
50 const bool registerObject
57 IOobject::groupName(typeName, pair.
name()),
74 const dictionary&
dict,
78 const word modelType(
dict.
get<word>(
"type"));
80 Info<<
"Selecting virtualMassModel for " 81 << pair <<
": " << modelType <<
endl;
83 auto* ctorPtr = dictionaryConstructorTable(modelType);
92 *dictionaryConstructorTablePtr_
96 return ctorPtr(
dict, pair,
true);
104 return Cvm()*pair_.continuous().rho();
110 return pair_.dispersed()*Ki();
bool writeData(Ostream &os) const
Pure virtual writeData function.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtualMassModel(const dictionary &dict, const phasePair &pair, const bool registerObject)
Construct from a dictionary and a phase pair.
virtual tmp< volScalarField > K() const
Return the virtual mass coefficient K.
Ostream & endl(Ostream &os)
Add newline and flush stream.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
static const dimensionSet dimK
Coefficient dimensions.
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
virtual tmp< surfaceScalarField > Kf() const
Return the virtual mass coefficient Kf.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
OBJstream os(runTime.globalPath()/outputName)
defineTypeNameAndDebug(combustionModel, 0)
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.
const dimensionSet dimDensity
bool good() const noexcept
True if next operation might succeed.
messageStream Info
Information stream (stdout output on master, null elsewhere)
A class for managing temporary objects.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
static autoPtr< virtualMassModel > New(const dictionary &dict, const phasePair &pair)
virtual tmp< volScalarField > Ki() const
Return the phase-intensive virtual mass coefficient Ki.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...