mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-26 01:01:00 -06:00
Merge pull request #866 from totto82/fixSolventRs
BUGFIX allow for solvent flux when disgasw
This commit is contained in:
commit
d5d7ad2d20
@ -485,12 +485,12 @@ public:
|
||||
|
||||
if (isSolubleInWater()) {
|
||||
if (upIdx == inIdx)
|
||||
flux[contiSolventEqIdx] =
|
||||
flux[contiSolventEqIdx] +=
|
||||
extQuants.volumeFlux(waterPhaseIdx)
|
||||
* up.fluidState().invB(waterPhaseIdx)
|
||||
* up.rsSolw();
|
||||
else
|
||||
flux[contiSolventEqIdx] =
|
||||
flux[contiSolventEqIdx] +=
|
||||
extQuants.volumeFlux(waterPhaseIdx)
|
||||
*decay<Scalar>(up.fluidState().invB(waterPhaseIdx))
|
||||
*decay<Scalar>(up.rsSolw());
|
||||
@ -509,12 +509,12 @@ public:
|
||||
|
||||
if (isSolubleInWater()) {
|
||||
if (upIdx == inIdx)
|
||||
flux[contiSolventEqIdx] =
|
||||
flux[contiSolventEqIdx] +=
|
||||
extQuants.volumeFlux(waterPhaseIdx)
|
||||
* up.fluidState().density(waterPhaseIdx)
|
||||
* up.rsSolw();
|
||||
else
|
||||
flux[contiSolventEqIdx] =
|
||||
flux[contiSolventEqIdx] +=
|
||||
extQuants.volumeFlux(waterPhaseIdx)
|
||||
*decay<Scalar>(up.fluidState().density(waterPhaseIdx))
|
||||
*decay<Scalar>(up.rsSolw());
|
||||
|
Loading…
Reference in New Issue
Block a user