mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-07-29 21:17:55 -05:00
Expose PhaseUsage to clients
This is likely to be a hack, but it does facilitate creating the fully implicit solver for arbitrary two- and three-phase fluid systems.
This commit is contained in:
@@ -69,13 +69,17 @@ namespace Opm
|
||||
typedef ADB::M M;
|
||||
typedef std::vector<int> Cells;
|
||||
|
||||
/// \return Number of active phases (also the number of components).
|
||||
virtual int numPhases() const = 0;
|
||||
|
||||
/// \return Object describing the active phases.
|
||||
virtual PhaseUsage phaseUsage() const = 0;
|
||||
|
||||
// ------ Canonical named indices for each phase ------
|
||||
|
||||
/// Canonical named indices for each phase.
|
||||
enum PhaseIndex { Water = 0, Oil = 1, Gas = 2 };
|
||||
|
||||
|
||||
// ------ Density ------
|
||||
|
||||
/// Densities of stock components at surface conditions.
|
||||
|
||||
Reference in New Issue
Block a user