mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
for the cells having zero thickness
we use the cell center depth to do the equilibration
This commit is contained in:
parent
7b5ef36cd1
commit
3bed5f41c1
@ -1864,8 +1864,18 @@ equilibrateHorizontal(const CellRange& cells,
|
|||||||
totfrac += frac;
|
totfrac += frac;
|
||||||
}
|
}
|
||||||
|
|
||||||
saturations /= totfrac;
|
if (totfrac > 0.) {
|
||||||
pressures /= totfrac;
|
saturations /= totfrac;
|
||||||
|
pressures /= totfrac;
|
||||||
|
} else {
|
||||||
|
// Fall back to centre point method for zero-thickness cells.
|
||||||
|
const auto pos = CellPos {
|
||||||
|
cell, cellCenterDepth_[cell]
|
||||||
|
};
|
||||||
|
|
||||||
|
saturations = psat.deriveSaturations(pos, eqreg, ptable);
|
||||||
|
pressures = psat.correctedPhasePressures();
|
||||||
|
}
|
||||||
|
|
||||||
const auto temp = this->temperature_[cell];
|
const auto temp = this->temperature_[cell];
|
||||||
const auto cz = cellCenterDepth_[cell];
|
const auto cz = cellCenterDepth_[cell];
|
||||||
|
Loading…
Reference in New Issue
Block a user