Add gaswater solvent

Fix some places that assumed 3p + solvent
This commit is contained in:
Tor Harald Sandve
2023-03-29 08:21:54 +02:00
parent 675ce03e52
commit 7cf3f69cf9
16 changed files with 208 additions and 47 deletions

View File

@@ -1926,14 +1926,10 @@ namespace Opm {
// in the well equations. As a result, for an oil-water-polymer system, this function will return 2.
// In some way, it makes this function appear to be confusing from its name, and we need
// to revisit/revise this function again when extending the variants of system that flow can simulate.
if (numPhases() < 3) {
return numPhases();
}
int numComp = FluidSystem::numComponents;
int numComp = numPhases() < 3? numPhases(): FluidSystem::numComponents;
if constexpr (has_solvent_) {
numComp ++;
numComp++;
}
return numComp;
}