CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Bugs (
-   -   Bug in specieThermoI.H ? (

dohnie July 2, 2012 09:13

Bug in specieThermoI.H ?
Dear Foamers,
is it possible that the computation of the internal energy is wrong in OF 2.1.1?

specieThermoI.H, line 112, reads:


return this->h(T) - this->RR*(T - this->Tstd);
In my opinion, it should read

return this->h(T) - this->RR*T;
because e = h - p*v = h - R*T in ideal gases.

Same problem for sensible energy in the following lines.

UPDATE: The issue is now in the OF bug reporting system.

All times are GMT -4. The time now is 17:58.