42 return &phase1_ == &phase || & phase2_ == &phase;
51 if (&phase1_ == &phase)
55 else if (&phase2_ == &phase)
62 <<
"this phasePair does not contain phase " << phase.
name()
72 if (&phase1_ == &phase)
76 else if (&phase2_ == &phase)
83 <<
"this phasePair does not contain phase " << phase.
name()
99 inline Foam::phasePair::const_iterator::const_iterator
110 inline Foam::phasePair::const_iterator::const_iterator(
const phasePair& pair)
122 inline bool Foam::phasePair::const_iterator::operator==
127 return (this->index_ == iter.index_);
131 inline bool Foam::phasePair::const_iterator::operator!=
145 return pair_.phase1_;
149 return pair_.phase2_;
166 return pair_.phase2_;
170 return pair_.phase1_;
const phaseModel & operator*() const
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const phaseModel & phase2() const
Return phase 2.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const phaseModel & phase1() const
Return phase 1.
bool operator==(const const_iterator &) const
const word & name() 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
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
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...