Merge pull request #866 from totto82/fixSolventRs

BUGFIX allow for solvent flux when disgasw
This commit is contained in:
Tor Harald Sandve 2024-01-26 12:08:08 +01:00 committed by GitHub
commit d5d7ad2d20

View File

@ -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());