34 namespace phaseTransferModels
45 Foam::word Foam::phaseTransferModels::reactionDriven::speciesKey()
const
51 (!Index ? interface_.
phase1() : interface_.
phase2()).name()
65 interface_(interface),
70 if (!
dict.found(speciesKey<0>()) && !
dict.found(speciesKey<1>()))
73 <<
"No transferring species specified. Specify either "
74 << speciesKey<0>() <<
" or " << speciesKey<1>() <<
" or both."
104 const phaseModel& phase1 = interface_.phase1();
105 const phaseModel& phase2 = interface_.phase2();
111 result.
set(species1_[i], (- phase1*phase1.
R(Y1) & Y1).ptr());
118 result.
set(species2_[i], (phase2*phase2.
R(Y2) & Y2).ptr());
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
A HashTable specialisation for hashing pointers.
bool set(const Key &, const T &newElmt)
Set a new hashedEntry, overwriting existing entries.
static word groupName(Name name, const word &group)
A list of keyword definitions, which are a keyword followed by any number of values (e....
A wordList with hashed indices for faster lookup by name.
void append(const word &)
Append an element at the end of the list.
void transfer(List< word > &)
Transfer the contents of the argument List into this list.
Class to represent an interface between phases. Derivations can further specify the configuration of ...
const phaseModel & phase1() const
Return phase 1.
const phaseModel & phase2() const
Return phase 2.
virtual const PtrList< volScalarField > & Y() const =0
Return the species mass fractions.
virtual tmp< fvScalarMatrix > R(volScalarField &Yi) const =0
Return the fuel consumption rate matrix.
Phase transfer model representing change from one phase to another due to reactions....
reactionDriven(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
virtual ~reactionDriven()
Destructor.
virtual HashPtrTable< volScalarField > dmidtf() const
The mass transfer rate for individual species.
virtual const hashedWordList & species() const
The list of individual species that are transferred.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
defineTypeNameAndDebug(cavitation, 0)
addToRunTimeSelectionTable(phaseTransferModel, cavitation, dictionary)
errorManipArg< error, int > exit(error &err, const int errNo=1)