mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fix combination of vapwat and disgas
This commit is contained in:
parent
be55de8176
commit
6c60bad193
@ -305,9 +305,15 @@ namespace Opm
|
|||||||
perf_dis_gas_rate = getValue(dis_gas);
|
perf_dis_gas_rate = getValue(dis_gas);
|
||||||
perf_vap_oil_rate = getValue(vap_oil);
|
perf_vap_oil_rate = getValue(vap_oil);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (FluidSystem::phaseIsActive(FluidSystem::waterPhaseIdx) && FluidSystem::phaseIsActive(FluidSystem::gasPhaseIdx)) {
|
if (FluidSystem::phaseIsActive(FluidSystem::waterPhaseIdx)) {
|
||||||
|
const unsigned waterCompIdx = Indices::canonicalToActiveComponentIndex(FluidSystem::waterCompIdx);
|
||||||
|
const Value vap_wat = rvw * cq_sGas;
|
||||||
|
cq_s[waterCompIdx] += vap_wat;
|
||||||
|
if (this->isProducer())
|
||||||
|
perf_vap_wat_rate = getValue(vap_wat);
|
||||||
|
}
|
||||||
|
} else if (FluidSystem::phaseIsActive(FluidSystem::waterPhaseIdx) && FluidSystem::phaseIsActive(FluidSystem::gasPhaseIdx)) {
|
||||||
const unsigned waterCompIdx = Indices::canonicalToActiveComponentIndex(FluidSystem::waterCompIdx);
|
const unsigned waterCompIdx = Indices::canonicalToActiveComponentIndex(FluidSystem::waterCompIdx);
|
||||||
const unsigned gasCompIdx = Indices::canonicalToActiveComponentIndex(FluidSystem::gasCompIdx);
|
const unsigned gasCompIdx = Indices::canonicalToActiveComponentIndex(FluidSystem::gasCompIdx);
|
||||||
const Value cq_sWat = cq_s[waterCompIdx];
|
const Value cq_sWat = cq_s[waterCompIdx];
|
||||||
|
Loading…
Reference in New Issue
Block a user