mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Support Aliases for Block Level Quantities
In particular, treat BSOIL, BSGAS, BSWAT, and BPRESSUR as aliases for BOSAT, BGSAT, BWSAT, and BPR respectively.
This commit is contained in:
parent
0238a80b02
commit
03a616e08a
@ -799,13 +799,13 @@ public:
|
|||||||
const auto& key = val.first;
|
const auto& key = val.first;
|
||||||
int cartesianIdxBlock = key.second - 1;
|
int cartesianIdxBlock = key.second - 1;
|
||||||
if (cartesianIdx == cartesianIdxBlock) {
|
if (cartesianIdx == cartesianIdxBlock) {
|
||||||
if (key.first == "BWSAT")
|
if ((key.first == "BWSAT") || (key.first == "BSWAT"))
|
||||||
val.second = Opm::getValue(fs.saturation(waterPhaseIdx));
|
val.second = Opm::getValue(fs.saturation(waterPhaseIdx));
|
||||||
else if (key.first == "BGSAT")
|
else if ((key.first == "BGSAT") || (key.first == "BSGAS"))
|
||||||
val.second = Opm::getValue(fs.saturation(gasPhaseIdx));
|
val.second = Opm::getValue(fs.saturation(gasPhaseIdx));
|
||||||
else if (key.first == "BOSAT")
|
else if ((key.first == "BOSAT") || (key.first == "BSOIL"))
|
||||||
val.second = Opm::getValue(fs.saturation(oilPhaseIdx));
|
val.second = Opm::getValue(fs.saturation(oilPhaseIdx));
|
||||||
else if (key.first == "BPR")
|
else if ((key.first == "BPR") || (key.first == "BPRESSUR"))
|
||||||
val.second = Opm::getValue(fs.pressure(oilPhaseIdx));
|
val.second = Opm::getValue(fs.pressure(oilPhaseIdx));
|
||||||
else if (key.first == "BWKR" || key.first == "BKRW")
|
else if (key.first == "BWKR" || key.first == "BKRW")
|
||||||
val.second = Opm::getValue(intQuants.relativePermeability(waterPhaseIdx));
|
val.second = Opm::getValue(intQuants.relativePermeability(waterPhaseIdx));
|
||||||
|
Loading…
Reference in New Issue
Block a user