
[Sponsors] 
June 8, 2008, 13:41 
Hello
I am trying to simulk

#1 
New Member
Varun Vikas
Join Date: Mar 2009
Posts: 17
Rep Power: 9 
Hello
I am trying to simulkate some validat cases at: http://www.lerc.nasa.gov/WWW/wind/valid/cdv/cdv.html using OpenFOAM. I successfully simulated cases 1 and 3. But I could not simulate case 2. (I used pressureInlet and pressureOutlet BCs.) If I initializef with a subsonic flow, the flow remains subsonic all the time. I also tried intilaizing the flow field with the results of case 3, but it did not help. How can I capture shock in case 2? Also, can I use mass flow outlet for supersonic flowa! Does openFOAM has such BC? Thanks in advance Varun 

June 8, 2008, 19:30 
Hi Varun
Which of the compr

#2 
Member
srinath
Join Date: Mar 2009
Location: Champaign, USA
Posts: 90
Rep Power: 9 
Hi Varun
Which of the compressible flow solvers are you using? I notice that cases 1 and 3 deal with isoentropic flow. Regds Srinath 

June 8, 2008, 22:28 
Hi Srinath
I am using sonic

#3 
New Member
Varun Vikas
Join Date: Mar 2009
Posts: 17
Rep Power: 9 
Hi Srinath
I am using sonicFoam. I hope I am doing the right thing! Varun 

June 9, 2008, 00:49 
Varun
Your solver seems to

#4 
Member
srinath
Join Date: Mar 2009
Location: Champaign, USA
Posts: 90
Rep Power: 9 
Varun
Your solver seems to be correct So questions are 1)Did you create geometry in blockmesh using splines? Are you running a 2d case or an axisymmetric one? 2)Can u post the bc's you are using for U,T? 3)Are you running it for sufficient time? Regards Srinath 

June 9, 2008, 07:13 
Hi Varun
I have only 1 conc

#5 
Member
srinath
Join Date: Mar 2009
Location: Champaign, USA
Posts: 90
Rep Power: 9 
Hi Varun
I have only 1 concern with the bc. At the inlet, should you be specifying p,T and U?, since the ua characteristic points outside the domain. Hirsch recommends not using the combo (p,U) at a subsonic inlet. So just specifying (p,T) should do, U should come from the internal flow. Now i don't know which of the choices in FoamX, implement a bc like this. At the outlet, i beleive only pressue should be set, so i guess setting U,T at zeroGradient is ok Srinath 

June 9, 2008, 23:22 
Hi Srinath
"Hirsch recommen

#6 
New Member
Varun Vikas
Join Date: Mar 2009
Posts: 17
Rep Power: 9 
Hi Srinath
"Hirsch recommends not using the combo (p,U) at a subsonic inlet. So just specifying (p,T) should do, U should come from the internal flow." I think this is exactly the bc that I am using currently. In OpenFOAM, a pressureInlet boundary type uses following consitions: p : fixedValue U : pressureInletVelocity T : fixedValue For "pressureInletVelocity", OpenFOAM documentation says that "When p is known at inlet, U is evaluated from the flux, normal to the patch" The U "value" that is specified for "pressureInletVelocity" bc is just used for initialization : it has no other usage. Varun 

June 10, 2008, 01:14 
Hi Srinath
I am extremely s

#7 
New Member
Varun Vikas
Join Date: Mar 2009
Posts: 17
Rep Power: 9 
Hi Srinath
I am extremely sorry. The validation case on the URL concers completely inviscid flow. I found out that I was trying solutions for viscous cases as I started reducing the viscosity towards zero, I got the normal shock in case 2. Thanks a lot for help. Varun 

June 10, 2008, 02:01 
Hi Srinath
Another observat

#8 
New Member
Varun Vikas
Join Date: Mar 2009
Posts: 17
Rep Power: 9 
Hi Srinath
Another observation: Although initially the normal shock starts from approximately the position shown on URL, it slows moves towards right and as I solve for a longer time, the shock stations itself just near outlet. Any ideas on this? Varun 

June 10, 2008, 03:48 
Vikas
Here is a good link f

#9 
Member
srinath
Join Date: Mar 2009
Location: Champaign, USA
Posts: 90
Rep Power: 9 
Vikas
Here is a good link for converging, diverging nozzles. As you change the pressure ratio, you could observe if you get similar trends(Does the shock position change as it should) http://www.engapplets.vt.edu/fluids/...le/cdinfo.html Also you could place a probe at the outlet and inlet to see if pressure is being maintained at BC values. You can do this as per the following post. http://www.cfdonline.com/cgibin/Op...3520#POST23520 Srinath 

June 10, 2008, 06:08 
Hi Varun
In your previous p

#10 
Member
srinath
Join Date: Mar 2009
Location: Champaign, USA
Posts: 90
Rep Power: 9 
Hi Varun
In your previous post, you say For "pressureInletVelocity", OpenFOAM documentation says that "When p is known at inlet, U is evaluated from the flux, normal to the patch" Which document are you referring to? Thanks Srinath 

June 10, 2008, 06:16 
Hi Srinath
I was referring

#11 
New Member
Varun Vikas
Join Date: Mar 2009
Posts: 17
Rep Power: 9 
Hi Srinath
I was referring to the description given here: http://www.opencfd.co.uk/openfoam/doc/userse22.html Varun 

June 11, 2008, 07:37 
Hi Varun
Did you find the p

#12 
Member
srinath
Join Date: Mar 2009
Location: Champaign, USA
Posts: 90
Rep Power: 9 
Hi Varun
Did you find the problem? Can you send the case directory, without the log files and time directories? You can email it to the id obtained by clicking on my name in the newsgroup posts. You can include the time=0 directory, as it may be useful as an initial condition. I can run it and see what happens. Srinath 

June 11, 2008, 14:54 
Hi Srinath
Sorry for this l

#13 
New Member
Varun Vikas
Join Date: Mar 2009
Posts: 17
Rep Power: 9 
Hi Srinath
Sorry for this late reply. I was out for a day ;). Your link helped me a lot. If I set Pexit = 0.75 (case 2), the shock stands just near outlet, but as I start increasing this more the shock moves inward towards the throat and keeps oscillating (only a little) around this position. So the problem is solved. If you are still interested in the case file, please let me know, I will mail you the files. Thanks a lot for help. But I think, I will be needing more help from you ;). I have several other problems related to supersonic flow in openFOAM. Varun 

June 11, 2008, 20:34 
Hi Varun
Good that you solv

#14 
Member
srinath
Join Date: Mar 2009
Location: Champaign, USA
Posts: 90
Rep Power: 9 
Hi Varun
Good that you solved the cd nozzle problem. Could you send me the case file anyway. It would be nice to play with the problem parameters. No problem regarding further problems in supersonic flow. Regards Srinath 

June 11, 2008, 20:57 
Hi Srinath
I just mailed yo

#15 
New Member
Varun Vikas
Join Date: Mar 2009
Posts: 17
Rep Power: 9 
Hi Srinath
I just mailed you the files. Varun 

June 12, 2008, 03:35 
Hi there,
you should know t

#16 
New Member
Jon Tegner
Join Date: Mar 2009
Posts: 7
Rep Power: 9 
Hi there,
you should know that sonicFoam gives erroneous results  at least on 1.3. Did some tests on the case supplied in the tutorials, and for that case the speed of the shock (as well as the jump over the shock) is wrong (when compared to the exact solution or other solvers). /jon 

June 12, 2008, 09:13 
Hi Jon
Could you give me a

#17 
Member
srinath
Join Date: Mar 2009
Location: Champaign, USA
Posts: 90
Rep Power: 9 
Hi Jon
Could you give me a reference for the exact solution? Have you tested the other solvers(compressible/incompressible) Regds Srinath 

June 12, 2008, 09:27 
Hi Jon
It would be great if

#18 
New Member
Varun Vikas
Join Date: Mar 2009
Posts: 17
Rep Power: 9 
Hi Jon
It would be great if could give the reference too. Actually I tried some simple validation cases, like oblique shocks, normal shocks, that have analytical solutions and the OpenFOAM results come quite close to these analytical ones. Also is this the case only with sonicFoam or with other compressible solvers (rhoSonicFoam, rhopsonicFoam) also. Regards Varun 

June 12, 2008, 14:46 
As for exact solution, I used

#19 
New Member
Jon Tegner
Join Date: Mar 2009
Posts: 7
Rep Power: 9 
As for exact solution, I used the one in
www.num.math.unigoettingen.de/knopp/teaching_vorl_num_meth_ind_aero_ss2006.html (a program in c, which was very easy to adopt to the case in the tutorial). Also, you may want to check http://openfoamwiki.net/index.php/TestLucaG I tried sonicFoam, but judging from what I saw, that solver does not give the correct jump conditions. Just run the tutorial case on 1.3, but hopefully the solver in the later versions of OF is better. Apart from the exact solution, I also used Edge /www.foi.se/FOI/Templates/ProjectPage____4690.aspx which, apart from an obvious "smearing" of the shock, gave the right speed of the shock. It would be nice if you could test a later version of OF against the exact solution. Regards, Jon 

June 15, 2008, 19:32 
Thanks Jon
Could you give m

#20 
Member
srinath
Join Date: Mar 2009
Location: Champaign, USA
Posts: 90
Rep Power: 9 
Thanks Jon
Could you give me a link for downloading centralFoam I can't seem to find it even in the dev version. Cheers Srinath 

Thread Tools  
Display Modes  

