44 return phase1().fluidThermo();
50 return phase2().fluidThermo();
56 return phase1().rho();
62 return phase2().rho();
80 return &phase1_ == &phase || &phase2_ == &phase;
84 inline bool Foam::phaseInterface::operator==
89 return same(interface,
true);
93 inline bool Foam::phaseInterface::operator!=
98 return !same(interface,
true);
107 if (&phase1_ == &phase)
111 else if (&phase2_ == &phase)
118 <<
"this phaseInterface does not contain phase " << phase.
name()
128 if (&phase1_ == &phase)
132 else if (&phase2_ == &phase)
139 <<
"this phaseInterface does not contain phase " << phase.
name()
161 return NullObjectRef<phaseModel>();
168 return phase1().fluid();
174 return phase1().
mesh();
180 inline Foam::phaseInterface::const_iterator::const_iterator
186 interface_(interface),
191 inline Foam::phaseInterface::const_iterator::const_iterator
206 inline bool Foam::phaseInterface::const_iterator::operator==
211 return (this->index_ == iter.index_);
215 inline bool Foam::phaseInterface::const_iterator::operator!=
229 return interface_.phase1_;
233 return interface_.phase2_;
250 return interface_.phase2_;
254 return interface_.phase1_;
Generic GeometricField class.
Mesh data needed to do the Finite Volume discretisation.
const polyMesh & mesh() const
Return reference to polyMesh.
const phaseModel & operator*() const
const_iterator & operator++()
const phaseModel & otherPhase() const
const phaseModel & operator()() const
label index() const
Return the current index.
Class to represent an interface between phases. Derivations can further specify the configuration of ...
const_iterator end() const
const_iterator set to beyond the end of the interface
const phaseSystem & fluid() const
Return the phase system.
const phaseModel & otherPhase(const phaseModel &phase) const
Return the other phase relative to the given phase.
virtual const rhoFluidThermo & thermo2() const
Return the thermo for phase 2.
const_iterator begin() const
const_iterator set to the beginning of the interface
virtual const rhoFluidThermo & thermo1() const
Return the thermo for phase 1.
const_iterator cend() const
const_iterator set to beyond the end of the interface
bool operator==(const phaseInterface &interface) const
Return true if the phase interfaces are the same.
virtual const volScalarField & rho2() const
Return the density of phase 2.
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 interface
const fvMesh & mesh() const
Return the mesh.
bool contains(const phaseModel &phase) const
Return true if this phaseInterface contains the given phase.
virtual const volScalarField & rho1() const
Return the density of phase 1.
virtual const volScalarField & alpha2() const
Return the volume fraction of phase 2.
const phaseModel & phase1() const
Return phase 1.
const phaseModel & phase2() const
Return phase 2.
virtual const volScalarField & alpha1() const
Return the volume fraction of phase 1.
const word & name() const
Return the name of this phase.
Class to represent a system of phases.
Base-class for fluid thermodynamic properties based on density.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< fvMatrix< Type > > operator*(const volScalarField::Internal &, const fvMatrix< Type > &)