From 98028820f968a3b84cc8736a35516783011860ad Mon Sep 17 00:00:00 2001
From: henry <Henry Weller h.weller@opencfd.co.uk>
Date: Thu, 12 Mar 2009 22:19:46 +0000
Subject: [PATCH] Corrected 'hs'.

---
 .../specie/thermo/janaf/janafThermoI.H                     | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/thermophysicalModels/specie/thermo/janaf/janafThermoI.H b/src/thermophysicalModels/specie/thermo/janaf/janafThermoI.H
index 4af0fb4b071..ac91a3eef9b 100644
--- a/src/thermophysicalModels/specie/thermo/janaf/janafThermoI.H
+++ b/src/thermophysicalModels/specie/thermo/janaf/janafThermoI.H
@@ -145,12 +145,7 @@ inline Foam::scalar Foam::janafThermo<equationOfState>::hs
     const scalar T
 ) const
 {
-    const coeffArray& a = coeffs(T);
-    scalar Tr = T - specie::Tstd;
-    return this->RR*
-    (
-        ((((a[4]/5.0*Tr + a[3]/4.0)*Tr + a[2]/3.0)*Tr + a[1]/2.0)*Tr + a[0])*Tr
-    );
+    return h(T) - hc();
 }
 
 
-- 
GitLab