44 return &phase1_ == &
phase || & phase2_ == &
phase;
53 if (&phase1_ == &
phase)
57 else if (&phase2_ == &phase)
64 <<
"this phasePair does not contain phase " << phase.
name()
74 if (&phase1_ == &phase)
78 else if (&phase2_ == &phase)
85 <<
"this phasePair does not contain phase " << phase.name()
101 inline Foam::phasePair::const_iterator::const_iterator
103 const phasePair& pair,
112 inline Foam::phasePair::const_iterator::const_iterator(
const phasePair& pair)
124 inline bool Foam::phasePair::const_iterator::operator==
129 return (this->index_ == iter.index_);
133 inline bool Foam::phasePair::const_iterator::operator!=
147 return pair_.phase1_;
151 return pair_.phase2_;
168 return pair_.phase2_;
172 return pair_.phase1_;
const phaseModel & operator*() const
const multiphaseInter::phaseModel & phase2() const
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const multiphaseInter::phaseModel & phase1() const
const phaseModel & operator()() const
label index(const phaseModel &phase) const
Return the index of the given phase. Generates a FatalError if.
const_iterator cbegin() const
const_iterator set to the beginning of the pair
friend bool operator==(const phasePairKey &a, const phasePairKey &b)
Test for equality.
tmp< faMatrix< Type > > operator*(const areaScalarField::Internal &, const faMatrix< Type > &)
const word * const_iterator
Random access iterator for traversing FixedList.
const_iterator & operator++()
const uniformDimensionedVectorField & g() const
Return gravitation acceleration.
const_iterator cend() const
const_iterator set to beyond the end of the pair
label index() const
Return the current index.
const_iterator end() const
const_iterator set to beyond the end of the pair
const phaseModel & otherPhase(const phaseModel &phase) const
Return the other phase relative to the given phase.
const phaseModel & otherPhase() const
const_iterator begin() const
const_iterator set to the beginning of the pair
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
const word & name() const
bool contains(const phaseModel &phase) const
Return true if this phasePair contains the given phase.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Description for mass transfer between a pair of phases. The direction of the mass transfer is from th...