26 #include "reactionDriven.H" 34 namespace phaseTransferModels
46 const dictionary&
dict,
47 const phaseInterface& interface
50 phaseTransferModel(dict, interface),
51 interface_(interface),
52 reactingName_(dict.
lookup(
"reactingPhase")),
55 reactingName_ == interface_.phase1().name()
59 otherPhase_(interface.otherPhase(reactingPhase_)),
60 sign_(reactingName_ == interface_.phase1().name() ? -1 : 1),
61 species_(dict.
lookup(
"species"))
83 HashPtrTable<volScalarField> result;
87 const word name = species_[i];
95 (sign_*reactingPhase_*reactingPhase_.R(Y) &
Y).ptr()
#define forAll(list, i)
Loop across all elements in list.
reactionDriven(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
A HashTable specialisation for hashing pointers.
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
stressControl lookup("compactNormalStress") >> compactNormalStress
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
virtual const hashedWordList & species() const
The list of individual species that are transferred.
virtual HashPtrTable< volScalarField > dmidtf() const
The mass transfer rate for individual species.
A wordList with hashed indices for faster lookup by name.
PtrList< volScalarField > & Y
virtual ~reactionDriven()
Destructor.