29 #include "phaseModel.H" 30 #include "phasePair.H" 36 namespace multiphaseInter
50 { modelVariable::P,
"pressure" },
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_
145 return modelVariableNames_[modelVariable_];
158 return includeVolChange_;
static const Enum< modelVariable > modelVariableNames_
Selection names for the modelVariable.
virtual const rhoThermo & thermo() const =0
Access const to phase thermo.
const multiphaseInter::phaseModel & phase2() const
errorManipArg< error, int > exit(error &err, const int errNo=1)
modelVariable
Enumeration for variable based mass transfer models.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const multiphaseInter::phaseModel & phase1() const
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 word & variable() const
Returns the variable on which the model is based.
bool includeVolChange()
Add volume change in pEq.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual const multiphaseInter::phaseModel & to() const
To phase.
const word transferSpecie() const
Return the transferring species name.
A class for handling words, derived from Foam::string.
interfaceCompositionModel(const dictionary &dict, const phasePair &pair)
Construct from a dictionary and a phase pair.
defineTypeNameAndDebug(interfaceCompositionModel, 0)
const phasePair & pair() const
The phase pair.
const multiphaseInterSystem & fluid() const
Return the system to which this phase belongs.
static autoPtr< interfaceCompositionModel > New(const dictionary &dict, const phasePair &pair)
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
PtrList< volScalarField > & Y
messageStream Info
Information stream (stdout output on master, null elsewhere)
defineRunTimeSelectionTable(interfaceCompositionModel, dictionary)
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
Description for mass transfer between a pair of phases. The direction of the mass transfer is from th...
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...