Commit a35fb115 authored by Timo Koch's avatar Timo Koch
Browse files

[simpleh2o] Reuse same heat capacity for enthalpy

This slightly changes the heat capacity value as the values used for enthalpy didn't exactly match those returned by liquidHeatCapacity
parent 6f12eca9
......@@ -145,7 +145,7 @@ public:
static const Scalar liquidEnthalpy(Scalar temperature,
Scalar pressure)
{
return 4180*(temperature - 293.15);
return liquidHeatCapacity(temperature, pressure)*(temperature - 293.15);
}
/*!
......@@ -311,7 +311,7 @@ public:
*/
static Scalar liquidHeatCapacity(Scalar temperature, Scalar pressure)
{
return 4.2e3;
return 4180.0;
}
/*!
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment