44 return phase1().fluidThermo();
50 return phase2().fluidThermo();
56 return phase1().rho();
62 return phase2().rho();
80 return &phase1_ == &phase || &phase2_ == &phase;
89 if (&phase1_ == &phase)
93 else if (&phase2_ == &phase)
100 <<
"this phaseInterface does not contain phase " << phase.
name()
110 if (&phase1_ == &phase)
114 else if (&phase2_ == &phase)
121 <<
"this phaseInterface does not contain phase " << phase.
name()
131 return phase1().fluid();
137 return phase1().
mesh();
150 inline Foam::phaseInterface::const_iterator::const_iterator
161 inline Foam::phaseInterface::const_iterator::const_iterator
176 inline bool Foam::phaseInterface::const_iterator::operator==
181 return (this->index_ == iter.index_);
185 inline bool Foam::phaseInterface::const_iterator::operator!=
199 return pair_.phase1_;
203 return pair_.phase2_;
220 return pair_.phase2_;
224 return pair_.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 uniformDimensionedVectorField & g() const
Return gravitational acceleration.
const_iterator end() const
const_iterator set to beyond the end of the pair
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 pair
virtual const rhoFluidThermo & thermo1() const
Return the thermo for phase 1.
const_iterator cend() const
const_iterator set to beyond the end of the pair
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 pair
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 and model interfacial transfers between them.
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 fvMatrix< Type > &, const fvMatrix< Type > &)
tmp< fvMatrix< Type > > operator*(const volScalarField::Internal &, const fvMatrix< Type > &)