CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Bug in specieThermoI.H ? (http://www.cfd-online.com/Forums/openfoam-bugs/104044-bug-speciethermoi-h.html)

dohnie July 2, 2012 10: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:

Code:

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

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 08:10.