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 return phase1_.
mesh();
105 inline Foam::phasePair::const_iterator::const_iterator
116 inline Foam::phasePair::const_iterator::const_iterator(
const phasePair& pair)
128 inline bool Foam::phasePair::const_iterator::operator==
133 return (this->index_ == iter.index_);
137 inline bool Foam::phasePair::const_iterator::operator!=
151 return pair_.phase1_;
155 return pair_.phase2_;
172 return pair_.phase2_;
176 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
const Mesh & mesh() const
Return mesh.
label index() const
Return the current index.
const_iterator end() const
const_iterator set to beyond the end of the pair
const fvMesh & mesh() const
Return the mesh.
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
Mesh data needed to do the Finite Volume discretisation.
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...