mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-12 08:54:53 -05:00
Runs first iterations of two-phase case plausibly
This commit is contained in:
1 parent
2ac514a1ea
commit
a1504a2bff
5 files changed
+103
-67
No files matched your search
@@ -110,20 +110,25 @@ void computeMaxDp(std::map<std::pair<int, int>, double>& maxDp,
|
||||
// the inverse formation volume factors
|
||||
std::vector<PhasePresence> cond(numCells);
|
||||
for (int cellIdx = 0; cellIdx < numCells; ++cellIdx) {
|
||||
const double sw = initialState.saturation()[numPhases*cellIdx + pu.phase_pos[BlackoilPhases::Aqua]];
|
||||
const double so = initialState.saturation()[numPhases*cellIdx + pu.phase_pos[BlackoilPhases::Liquid]];
|
||||
const double sg = initialState.saturation()[numPhases*cellIdx + pu.phase_pos[BlackoilPhases::Vapour]];
|
||||
|
||||
if (pu.phase_used[BlackoilPhases::Aqua] && sw > 0.0) {
|
||||
cond[cellIdx].setFreeWater();
|
||||
if (pu.phase_used[BlackoilPhases::Aqua]) {
|
||||
const double sw = initialState.saturation()[numPhases*cellIdx + pu.phase_pos[BlackoilPhases::Aqua]];
|
||||
if (sw > 0.0) {
|
||||
cond[cellIdx].setFreeWater();
|
||||
}
|
||||
}
|
||||
|
||||
if (pu.phase_used[BlackoilPhases::Liquid] && so > 0.0) {
|
||||
cond[cellIdx].setFreeOil();
|
||||
if (pu.phase_used[BlackoilPhases::Liquid]) {
|
||||
const double so = initialState.saturation()[numPhases*cellIdx + pu.phase_pos[BlackoilPhases::Liquid]];
|
||||
if (so > 0.0) {
|
||||
cond[cellIdx].setFreeOil();
|
||||
}
|
||||
}
|
||||
|
||||
if (pu.phase_used[BlackoilPhases::Vapour] && sg > 0.0) {
|
||||
cond[cellIdx].setFreeGas();
|
||||
if (pu.phase_used[BlackoilPhases::Vapour]) {
|
||||
const double sg = initialState.saturation()[numPhases*cellIdx + pu.phase_pos[BlackoilPhases::Vapour]];
|
||||
if (sg > 0.0) {
|
||||
cond[cellIdx].setFreeGas();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user