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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 20, 2012, 10: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 11:30.
majkl is offline   Reply With Quote

Old   February 1, 2013, 02:51
Default
  #2
Member
 
prasant
Join Date: Jan 2013
Posts: 33
Rep Power: 13
prasant is on a distinguished road
Hello Michal,

I am solving one Impeller case. For me also, Temperature values are not coming properly at outlet. Did you recieve any information from people? If so, Could you please share that information?

Regards
Prasant.
prasant is offline   Reply With Quote

Old   February 1, 2013, 04:02
Default
  #3
New Member
 
Michal
Join Date: Apr 2012
Location: Czech Republic
Posts: 27
Rep Power: 14
majkl is on a distinguished road
Quote:
Originally Posted by prasant View Post
Hello Michal,

I am solving one Impeller case. For me also, Temperature values are not coming properly at outlet. Did you recieve any information from people? If so, Could you please share that information?

Regards
Prasant.
Hi,

no answer today.

M
majkl is offline   Reply With Quote

Old   February 1, 2013, 06:31
Default
  #4
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
hi dear michal.i have had doubt about energy equation ever.but i didn't understand what you have done.did diffuser problems were solved properly at both versions but another problem didn't?both versions gave incorrect results in second experiment or just one did so?
immortality is offline   Reply With Quote

Old   February 10, 2021, 13:13
Default
  #5
New Member
 
Join Date: Oct 2019
Posts: 13
Rep Power: 7
anthony761 is on a distinguished road
Hello foamers,

Did you succeed to perform any compressible flow simulation for turbomachinery application? What is you feedback? I have also encoutered some problems you were talking about. This is my case:

OpenFOAM-v2006
Geometry: Centrifugal compressor, only one blade passage with cyclic/cyclicAMI (with diffuser vanedless and without volute)
BCs: flowRateInletVelocity with fixedValue temperature inlet and fixedValue pressure outlet
MRF model
Turbulence: kOmegaSST
Thermophysical: hePsiThermo, pureMixture, transport const, hConst, perfectGas, sensibleInternalEnergy

Tried Solvers: rhoSimpleFoam, rhoCentralFoam, sonicFoam

Results are strange, the pressure increased as expected at the exit but not the temperature which seems remain almost constant. Do you have any idea of the problem?
anthony761 is offline   Reply With Quote

Old   February 10, 2021, 16:17
Default
  #6
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
I kindly suggest you to review the understanding of yours for the problem at hand: I don't see any application that you can subsequently test {rhoSimpleFoam, rhoCentralFoam, sonicFoam} for modelling of the same physical phenomena. Yet note that compressible flow simulations in general are far more sensitive to the numerical settings than its incompressible counterparts.

If the concern of yours is the numerical stability: I suggest you to test these fvOptions: limitTemperature, (if the case is unsteady) limitVelocity, (if the case is steady) velocityDampingConstraint.
HPE is offline   Reply With Quote

Reply


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 13:25
Viscosity and the Energy Equation Rich Main CFD Forum 0 December 16, 2009 15:01
potential energy& static enthalpy in buoyant flow Atit CFX 0 May 3, 2006 11:05
Inviscid Drag at subsonic, subcritical Mach # Axel Rohde Main CFD Forum 1 November 19, 2001 13:19
Energy equation and Enthalpy Martin FLUENT 1 January 25, 2001 18:11


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