31#include "surfaceInterpolate.H"
49 const phasePair& pair,
50 const bool registerObject
57 IOobject::groupName(typeName, pair.
name()),
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 good() const noexcept
True if next operation might succeed.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
virtual tmp< surfaceScalarField > Kf() const
Return the virtual mass coefficient Kf.
static const dimensionSet dimK
Coefficient dimensions.
bool writeData(Ostream &os) const
Pure virtual writeData function.
static autoPtr< virtualMassModel > New(const dictionary &dict, const phasePair &pair)
virtual tmp< volScalarField > Ki() const
Return the phase-intensive virtual mass coefficient Ki.
virtual tmp< volScalarField > K() const
Return the virtual mass coefficient K.
virtualMassModel(const dictionary &dict, const phasePair &pair, const bool registerObject)
Construct from a dictionary and a phase pair.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
OBJstream os(runTime.globalPath()/outputName)
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.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.