CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Is e actually the Enthalpy in rhoCentralFoam (http://www.cfd-online.com/Forums/openfoam-bugs/109184-e-actually-enthalpy-rhocentralfoam.html)

rmoreno November 11, 2012 19:28

Is e actually the Enthalpy in rhoCentralFoam?
 
Dear all,

I have been struggling for some time comparing the equations and the flux calculations in Openfoam, but I guess I know more or less now what it is all about.

However, checking the relationship between psi and the energy I have found a discrepancy that I would like to confirm if it is real or not.

I am using OpenFoam 2.1, the ShockTube tutorial.

If I output directly to a file e and T, it happens that e is not Cv*T, as one would expect, but Cp*T (i.e. the Enthalpy). However, the Energy equation, at least to my knowledge, is treating e as the energy and adding the pressure to it.

Am I missing something or this is an actual bug?

Thanks a lot and best regards

rmoreno November 18, 2012 18:34

It turns out that this is an already known bug (see http://www.openfoam.org/mantisbt/view.php?id=571#c1445).

In fact it only returns the enthalpy when T=Tstd, which was the case.

Anyway, it was its inconsistency with the standard perfect gas formulation what was giving me headaches.

Regards!


All times are GMT -4. The time now is 00:07.