CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Energy equation for compressible flow

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 20, 2012, 09:40
Default Energy equation for compressible flow
  #1
New Member
 
Michal
Join Date: Apr 2012
Location: Czech Republic
Posts: 27
Rep Power: 14
majkl is on a distinguished road
Hello,

I have a question about the energy equation (compressible flow - subsonic) in OF v 1.6-ext and 2.1.0 (there are some posts but still without answer).

The conservation of energy has the form:
\rho  \frac{D}{Dt} \left[\frac{u_{i}u_{i}}{2} +  e\right]  - \rho k_{i}u_{i} - \frac{\partial}{\partial  x_{j}}[\tau_{ji}u_{i}]  + \frac{\partial  q_{i}}{\partial x_{i}} = 0,
where \tau is the stress tensor:

\tau_{ij} = -p\delta_{ij} + P_{ij}.

1) From the conservation of energy I can derive the energy equation (EE), which is used in OF v 2.1.0 but I can not reach the EE which is implemented in version 1.6-ext. Why is the difference between EE? The left hand sides of the energy equations are the same in both versions and similarly the enthalpy definitions.

Steady-state case without volume forces and viscous term (same EE implemented in OF 2.1.0):
\rho  u_{i}\frac{\partial h}{\partial  x_{i}} + \frac{\partial q_{i}}{\partial  x_{i}} = -\rho  u_{i}\frac{\partial }{\partial  x_{i}}\left[\frac{u_{i}u_{i}}{2}\right],

In OF 1.6-ext the EE:
\rho   u_{i}\frac{\partial h}{\partial x_{i}} + \frac{\partial  q_{i}}{\partial  x_{i}} = fvc::div[\frac{\phi}{fvc::interpolate \rho},   \frac{\rho}{\psi}] -   \frac{\rho}{\psi}*fvc::div[\frac{\phi}{fvc::interpolate \rho}].


2) I solved some simple case (diffuser), which can be "easy" described analytically. The OF 2.1.0 solver gives the best results.. BUT.. When I applied both version of OF solvers for same turbomachinery case, the version 2.1.0 gave unrealistic temperature field (convergent solution in both version, 6000it). If EE should be the same in both versions, why I have obtained so much different result for identically same case (velocity filed, temperature, pressure, thermoModel, turbulence, ...)?

Your answers would be very helpful for me.
Thank you.

Michal

Last edited by majkl; June 20, 2012 at 10:30.
majkl is offline   Reply With Quote

 


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Incompressible and compressible flow. Confused student. Main CFD Forum 27 March 18, 2017 12:25
Viscosity and the Energy Equation Rich Main CFD Forum 0 December 16, 2009 14:01
potential energy& static enthalpy in buoyant flow Atit CFX 0 May 3, 2006 10:05
Inviscid Drag at subsonic, subcritical Mach # Axel Rohde Main CFD Forum 1 November 19, 2001 12:19
Energy equation and Enthalpy Martin FLUENT 1 January 25, 2001 17:11


All times are GMT -4. The time now is 09:12.