mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
ECL problem: make the code which converts gas to oil saturations a bit easier to read
This code is required in the first place because opm-material always specifies all parameters in terms of the wetting saturations while the gas is the non-wetting phase in a gas-oil system.
This commit is contained in:
parent
2fb0b4a7e5
commit
3c3d3208eb
@ -631,11 +631,11 @@ private:
|
|||||||
owParams.setKrnSamples(SwColumn, swofTable.getKrowColumn());
|
owParams.setKrnSamples(SwColumn, swofTable.getKrowColumn());
|
||||||
owParams.setPcnwSamples(SwColumn, swofTable.getPcowColumn());
|
owParams.setPcnwSamples(SwColumn, swofTable.getPcowColumn());
|
||||||
|
|
||||||
// convert the saturations from gas to oil saturations
|
// convert the saturations of the SGOF keyword from gas to oil saturations
|
||||||
auto SoSamples = sgofTable.getSgColumn();
|
std::vector<double> SoSamples(sgofTable.numRows());
|
||||||
for (size_t sampleIdx = 0; sampleIdx < SoSamples.size(); ++ sampleIdx) {
|
for (size_t sampleIdx = 0; sampleIdx < sgofTable.numRows(); ++ sampleIdx)
|
||||||
SoSamples[sampleIdx] = 1 - SoSamples[sampleIdx];
|
SoSamples[sampleIdx] = 1 - sgofTable.getSgColumn()[sampleIdx];
|
||||||
}
|
|
||||||
goParams.setKrwSamples(SoSamples, sgofTable.getKrogColumn());
|
goParams.setKrwSamples(SoSamples, sgofTable.getKrogColumn());
|
||||||
goParams.setKrnSamples(SoSamples, sgofTable.getKrgColumn());
|
goParams.setKrnSamples(SoSamples, sgofTable.getKrgColumn());
|
||||||
goParams.setPcnwSamples(SoSamples, sgofTable.getPcogColumn());
|
goParams.setPcnwSamples(SoSamples, sgofTable.getPcogColumn());
|
||||||
|
Loading…
Reference in New Issue
Block a user