CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Bugs

Is e actually the Enthalpy in rhoCentralFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By rmoreno

LinkBack Thread Tools Display Modes
Old   November 11, 2012, 19:28
Default Is e actually the Enthalpy in rhoCentralFoam?
New Member
Ruben Moreno
Join Date: Nov 2011
Posts: 6
Rep Power: 5
rmoreno is on a distinguished road
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

Last edited by rmoreno; November 11, 2012 at 22:57.
rmoreno is offline   Reply With Quote

Old   November 18, 2012, 18:34
New Member
Ruben Moreno
Join Date: Nov 2011
Posts: 6
Rep Power: 5
rmoreno is on a distinguished road
It turns out that this is an already known bug (see

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.

mm.abdollahzadeh likes this.
rmoreno is offline   Reply With Quote


energy, enthalpy, rhocentralfoam

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sensible Enthalpy vs. Total enthalpy Sethi OpenFOAM Programming & Development 2 September 18, 2015 23:16
Defining Inlet Mixture Enthalpy Munggang FLUENT 0 March 2, 2012 17:50
Mismatch between H-Energy and massFlowInt(Static Enthalpy) Chander CFX 13 December 16, 2011 12:37
derivation enthalpy Tomik FLUENT 2 March 9, 2006 16:39
meaning static enthalpy and total enthalpy mspark CD-adapco 1 April 1, 2004 06:20

All times are GMT -4. The time now is 16:49.