Skip to content
Snippets Groups Projects
Commit 51121c0e authored by Thomas Fetzer's avatar Thomas Fetzer
Browse files

[2p2c] Add convenience function for phase presence

parent c23dcd00
No related branches found
No related tags found
1 merge request!83[2p2c] Add convenience function for phase presence
......@@ -122,6 +122,9 @@ public:
scvIdx,
isOldSol);
int dofIdxGlobal = problem.model().dofMapper().subIndex(element, scvIdx, dofCodim);
phasePresence_ = problem.model().phasePresence(dofIdxGlobal, isOldSol);
completeFluidState(priVars, problem, element, fvGeometry, scvIdx, fluidState_, isOldSol);
/////////////
......@@ -455,6 +458,12 @@ public:
const FluidState &fluidState() const
{ return fluidState_; }
/*!
* \brief Returns the phase presence within the control volume.
*/
const int phasePresence() const
{ return phasePresence_; }
/*!
* \brief Returns the saturation of a given phase within
* the control volume in \f$[-]\f$.
......@@ -605,6 +614,7 @@ protected:
Scalar relativePermeability_[numPhases]; //!< Relative permeability within the control volume
Scalar diffCoeff_[numPhases]; //!< Binary diffusion coefficients for the phases
FluidState fluidState_;
int phasePresence_;
private:
Implementation &asImp_()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment