29#include "phaseModel.H"
49 { modelVariable::T,
"temperature" },
50 { modelVariable::P,
"pressure" },
52 { modelVariable::alpha,
"alphaVolumeFraction" },
66 modelVariableNames_.getOrDefault
73 includeVolChange_(
dict.getOrDefault(
"includeVolChange", true)),
75 speciesName_(
dict.getOrDefault<word>(
"species",
"none")),
99 Info<<
"Selecting interfaceCompositionModel for "
100 <<
pair <<
": " << modelType <<
endl;
102 auto* ctorPtr = dictionaryConstructorTable(modelType);
109 "interfaceCompositionModel",
111 *dictionaryConstructorTablePtr_
121const Foam::word Foam::multiphaseInter::interfaceCompositionModel
122::transferSpecie()
const
136::interfaceCompositionModel::fluid()
const
138 return pair().to().fluid();
142const Foam::word& Foam::multiphaseInter::interfaceCompositionModel
158 return includeVolChange_;
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
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,...
static const Enum< modelVariable > modelVariableNames_
Selection names for the modelVariable.
const fvMesh & mesh_
Reference to mesh.
interfaceCompositionModel(const dictionary &dict, const phasePair &pair)
Construct from a dictionary and a phase pair.
const phasePair & pair() const
The phase pair.
bool includeVolChange_
Add volume change in pEq.
static autoPtr< interfaceCompositionModel > New(const dictionary &dict, const phasePair &pair)
modelVariable
Enumeration for variable based mass transfer models.
word speciesName_
Names of the transferring specie.
bool includeVolChange()
Add volume change in pEq.
modelVariable modelVariable_
Enumeration for the model variable.
virtual bool includeDivU() const noexcept
Add/subtract alpha*div(U) as a source term for alpha, substituting div(U) = mDot(1/rho1 - 1/rho2).
const phasePair & pair_
Phase pair.
virtual const rhoThermo & thermo() const =0
Access const to phase thermo.
Description for mass transfer between a pair of phases. The direction of the mass transfer is from th...
const multiphaseInter::phaseModel & phase1() const
const multiphaseInter::phaseModel & phase2() const
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
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.