
[Sponsors] 
October 31, 2011, 13:10 
Is OpenFoam really reliable? It is Urgent!!!

#1 
New Member

Hi Dear Foamers!!
I've found some strange behaviors of OpenFoam simulation. I'm now very confused. Is OpenFoam really reliable? Well I will tell what I found out. When I run the tutorial case "Wedge15M5"in the rhoCentralFoam, the result of pressure, temperature and velocity seems very satisfactory. You can look details in the master thesis dissertation "Simulation and validation of compressible ﬂow in nozzle geometries and validation of OpenFOAM for this application" by Benjamin Wuthrich. But these results are only static parameters. We must check the total (stagnation) parameters. According to the normal shock wave and oblique shock wave theory, the stagnation pressure must drop after shock. But OpenFoam gives the fault result. You can see them in the attachments. I made no modification to the tutorial. So the result should be reliable. As u can see in the attachment, stagnation pressure rises dramatically after shock. Even there are slight total temperature rises. T*=T+U^2/(2*Cp); So Dear Foamers, if I made mistake, please tell me what should I do. I want to hear your advices or discussions or any suggestion. Please!! I think that it is important for all of the foamers. PS: I can't calculate the total pressure and temperature according to compressible equation due to very high value of lambda (velocity/critical speed). P/P*=(1(k1)/(k+1)*lambda^2)^(k/k1)  k= gamma = 1.4 U can also check other solver, rhopSonicFoam static_p.jpg vel.jpg ptot.jpg Ma.jpg Stag_T.jpg REF: Normal Shock Wave by NASA " For compressible flows with little or small flow turning, the flow process is reversible and the entropy is constant. The change in flow properties are then given by the isentropic relations (isentropic means "constant entropy"). But when an object moves faster than the speed of sound, and there is an abrupt decrease in the flow area, the flow process is irreversible and the entropy increases. Shock waves are generated which are very small regions in the gas where the gas properties change by a large amount. Across a shock wave, the static pressure, temperature, and gas density increases almost instantaneously. Because a shock wave does no work, and there is no heat addition, the total enthalpy and the total temperature are constant. But because the flow is nonisentropic, the total pressure downstream of the shock is always less than the total pressure upstream of the shock; there is a loss of total pressure associated with a shock wave. The ratio of the total pressure is shown on the slide. Because total pressure changes across the shock, we can not use the usual (incompressible) form of Bernoulli's equation across the shock. The Mach number and speed of the flow also decrease across a shock wave. " Last edited by Technoyoungman; October 31, 2011 at 13:29. 

November 2, 2011, 06:13 

#2 
Senior Member

Dear Min Thaw Tun,
I have seen a similar behavior when investigating a convergingdiverging channel. Either in an expansion fan or across a shock the total temperature varied. Also the total pressure behavior was incorrect although the static pressure and temperature, velocity, density and Mach number showed correct behavior (qualitatively at least). I have tried many different schemes, meshes, turbulence models. So unfortunately I can not help you, just confirm that I have spotted the same behavior and still interested if someone has performed a correct simulation. Kind regards, Tom 

November 2, 2011, 06:26 

#3  
New Member

Quote:
Dear Tom, Thanks you for ur reply. I've been longing for a response. Actually I'm going to submit a term paper with OpenFoam. I would like to check the total pressure loss from shock wave and compare with theory. Because of this reult I don't know what to do. It shouldn't be like this because this is the very basic of supersonic flow. OpenCFD should take responsibility for these. I'm just thinking. 

November 3, 2011, 02:14 

#4 
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 
Did you take a look at the literature (Kurganov and Tadmor schemes) and at the paper where the solver was described?
Also, if you can provide a small case reproducing the problem, you can report the problem to the developers, if you believe it is a bug and it does not depend on your setup. P.S. Adding "Urgent" to a title of a post is an invitation *not* to read it. ;)
__________________
Alberto Passalacqua GeekoCFD  A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM  An opensource implementation of quadraturebased moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. 

November 3, 2011, 06:56 

#5 
New Member
Join Date: Aug 2009
Location: Stuttgart, Germany
Posts: 20
Rep Power: 17 
Hi,
as posted already within the other thread at http://www.cfdonline.com/Forums/ope...tml#post329361: I don't know how you calculated your total pressure, but when I use the isentropic equation I obtain different results. A contour plot is attached to this post and when compared to the analytical solution it looks quite reasonable. I did a quick calculation and if I didn't miss something the analytical solution gives a Mach number behind the shock of around 3.65 (approx. 3.6 in the OF solution). The total pressure ratio should be slightly above 0.6 and OF delivers approx. 0.66. So unless I miscalculated the analytical part maybe you could check your total pressure calculation, I'm not sure if this is really an issue of OpenFoam. Regards Nils Last edited by ndr; November 3, 2011 at 09:43. 

November 5, 2011, 04:24 
sonicFoam

#6 
Member
Join Date: May 2009
Posts: 32
Rep Power: 17 
The tutorial case
compressible/sonicFoam/laminar/shockTube also give erroneous results (at least up to 1.6). Speed of shock is wrong. Maybe scheme is not conservative? IF it has not been fixed in later versions it would be better to remove that particular tutorial case. To my experience rhoCentralFoam gives the expected results. 

November 5, 2011, 13:31 

#7 
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 
Hi,
1) The validation of the procedure is published: C. J. Greenshields, H. G. Weller, L. Gasparini, J. M. Reese, Implementation of semidiscrete, nonstaggered central schemes in a colocated, polyhedral, ﬁnite volume framework, for highspeed viscous ﬂows, Int. J. Numer. Meth. Fluids 2010; 63:1–21, 2009, DOI: 10.1002/ﬂd.2069. 2) The original description of the schemes can be fouind here: A. Kurganov, E. Tadmor, New HighResolution Central Schemes for Nonlinear Conservation Laws and ConvectionDiffusion Equations, J. Comp. Phys., 160, 214–282, 2000. 3) If you think it is a bug, report it in detail on mantis, describing stepbystep how you perform your calculation. Best,
__________________
Alberto Passalacqua GeekoCFD  A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM  An opensource implementation of quadraturebased moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. 

November 9, 2011, 15:00 
Thanks u all

#8 
New Member

Hi Dear Foamers!!
Thank u for all ur discussion. I've checked the stagnation pressure. Now I didn't use ptot postprocessor utility. I used the stagnation pressure equation p_stag1.jpg
rhoCentralFoam (tutorial) p_stag2.jpg rhoPsonicFoam (tutorial) p_stag.jpg rhoPsonicFoam (with 100 kPa, 1735m/c (M=5), 300K) Tutorial are normal. Do me a favor . Well I will post my problem in next thread. 

November 9, 2011, 23:41 

#9 
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 
What next thread?
__________________
Alberto Passalacqua GeekoCFD  A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM  An opensource implementation of quadraturebased moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. 

Tags 
openfoam, shock wave, total pressure 
Thread Tools  Search this Thread 
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Superlinear speedup in OpenFOAM 13  msrinath80  OpenFOAM Running, Solving & CFD  18  March 3, 2015 06:36 
New OpenFOAM Forum Structure  jola  OpenFOAM  2  October 19, 2011 07:55 
Crosscompiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingww64  wyldckat  OpenFOAM Announcements from Other Sources  3  September 8, 2010 07:25 
Modified OpenFOAM Forum Structure and New MailingList  pete  Site News & Announcements  0  June 29, 2009 06:56 
Adventure of fisrst openfoam installation on Ubuntu 710  jussi  OpenFOAM Installation  0  April 24, 2008 15:25 