Skip to content
Snippets Groups Projects
Commit 6862817f authored by Thomas Fetzer's avatar Thomas Fetzer Committed by Timo Koch
Browse files

[h2oheavyoil] Fix return values of the Henry coefficients (was the fugacitycoefficient before)

However, the results are unaffected.
parent 4a817aa6
No related branches found
No related tags found
1 merge request!488Doc Henry coefficient and rename fluidsystems
......@@ -326,13 +326,12 @@ public:
assert(0 <= compIdx && compIdx < numComponents);
const Scalar T = fluidState.temperature(phaseIdx);
const Scalar p = fluidState.pressure(phaseIdx);
if (compIdx == NAPLIdx && phaseIdx == wPhaseIdx)
return Dumux::BinaryCoeff::H2O_HeavyOil::henryOilInWater(T)/p;
return Dumux::BinaryCoeff::H2O_HeavyOil::henryOilInWater(T);
else if (phaseIdx == nPhaseIdx && compIdx == H2OIdx)
return Dumux::BinaryCoeff::H2O_HeavyOil::henryWaterInOil(T)/p;
return Dumux::BinaryCoeff::H2O_HeavyOil::henryWaterInOil(T);
else
DUNE_THROW(Dune::InvalidStateException, "non-existent henry coefficient for phase index " << phaseIdx
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment