Skip to content
Snippets Groups Projects
Commit 8bfafbd2 authored by Kilian Weishaupt's avatar Kilian Weishaupt Committed by Timo Koch
Browse files

[fluidsystems][h2oheavyoil] Use correct thermal conductivity

* Return water vapor conductivity for gas phase
parent 5d0ed3ed
No related branches found
No related tags found
5 merge requests!600[WIP][components][plotproperties] Add a source file to plot properties of some components,!501Freeflow/turbulenceproperties,!492Resolve "Inconsistent `index()` method of the different `SubControlVolume` classes",!362Cleanup/2pnc 2pncmin models,!261Cleanup/fs 338 3pwateroil
...@@ -433,11 +433,7 @@ public: ...@@ -433,11 +433,7 @@ public:
} }
else if (phaseIdx == gPhaseIdx) else if (phaseIdx == gPhaseIdx)
{ {
const Scalar lambdaH2O = H2O::liquidThermalConductivity(temperature, pressure); return H2O::gasThermalConductivity(temperature, pressure);
const Scalar lambdaHeavyOil = HeavyOil::liquidThermalConductivity(temperature, pressure);
const Scalar result = lambdaH2O * fluidState.massFraction(gPhaseIdx, H2OIdx)
+ lambdaHeavyOil * fluidState.massFraction(gPhaseIdx, NAPLIdx);
return result; //TODO: check if this is correct
} }
DUNE_THROW(Dune::InvalidStateException, "Invalid phase index " << phaseIdx); DUNE_THROW(Dune::InvalidStateException, "Invalid 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