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 good() const noexcept
True if next operation might succeed.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
A class for managing temporary objects.
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.
virtual tmp< volScalarField > Ki() const
Return the phase-intensive virtual mass coefficient Ki.
virtual tmp< volScalarField > K() const
Return the virtual mass coefficient K.
#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.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.