29#include "phaseModel.H"
36namespace multiphaseInter
49 { modelVariable::T,
"temperature" },
50 { modelVariable::P,
"pressure" },
51 { modelVariable::Y,
"massFraction" },
52 { modelVariable::alpha,
"alphaVolumeFraction" },
66 modelVariableNames_.getOrDefault
73 includeVolChange_(
dict.getOrDefault(
"includeVolChange", true)),
75 speciesName_(
dict.getOrDefault<
word>(
"species",
"none")),
76 mesh_(pair_.from().
mesh())
99 Info<<
"Selecting interfaceCompositionModel for "
100 << pair <<
": " << modelType <<
endl;
102 auto* ctorPtr = dictionaryConstructorTable(modelType);
109 "interfaceCompositionModel",
111 *dictionaryConstructorTablePtr_
115 return ctorPtr(
dict, pair);
121const Foam::word Foam::multiphaseInter::interfaceCompositionModel
122::transferSpecie()
const
136::interfaceCompositionModel::fluid()
const
138 return pair().to().fluid();
142const Foam::word& Foam::multiphaseInter::interfaceCompositionModel
145 return modelVariableNames_[modelVariable_];
158 return includeVolChange_;
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
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.
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.
modelVariable
Enumeration for variable based mass transfer models.
bool includeVolChange()
Add volume change in pEq.
virtual bool includeDivU() const noexcept
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.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.