Skip to content
Snippets Groups Projects
Unverified Commit 1611167b authored by Lars Kaiser's avatar Lars Kaiser
Browse files

[SimpleH2O] Fix vaporizationEnthalpy: kJ/kg to J/kg

The vaporizationEnthalpy has the wrong unit (kJ/kg) leading
to wrong results for this function and for the gasEnthalpy
which uses vaporizationEnthalpy.
This fix returns the result in the correct unit: J/kg
parent f8fda16a
No related branches found
No related tags found
1 merge request!3724[SimpleH2O] Fix vaporizationEnthalpy: kJ/kg to J/kg
Pipeline #38689 waiting for manual action
...@@ -155,7 +155,7 @@ public: ...@@ -155,7 +155,7 @@ public:
using std::pow; using std::pow;
static const Scalar vaporizationEnthalpy = A + B*tRef + C*(pow(tRef, 1.5)) + D*(pow(tRef, 2.5)) + E*(pow(tRef, 3)); static const Scalar vaporizationEnthalpy = A + B*tRef + C*(pow(tRef, 1.5)) + D*(pow(tRef, 2.5)) + E*(pow(tRef, 3));
return vaporizationEnthalpy; return vaporizationEnthalpy * 1e3; // kJ/kg to J/kg
} }
......
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