# Shock Tube

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 June 7, 2005, 04:03 Shock Tube #1 Pooria Sattari Guest   Posts: n/a Dear Friends, I have written a code for 1D-Shock Tube Problem (using Lax Method),butI get wrong results. Has anybody written a code in C for this problem using Lax Method? If yes,Could you send that for me? Thanks, Sincerely, Pooria Sattari

 June 7, 2005, 10:30 Re: Shock Tube #2 Nick Guest   Posts: n/a What is wrong with your results? Isn't the Lax method 1st order? What are your boundary conditions? Have you discretized conservatively? Just some things to think about... Nick

 June 7, 2005, 12:31 Re: Shock Tube #3 Pooria Sattari Guest   Posts: n/a Thanks for your response, Initial Conditios are: P1=1 rau1=1 P2=0.1 rau2=0.1 gamma=1.4 My Problems are : after t=0.01 my results get diverged and I have unphysical results for u(velocity) and pressure.This happens with deltat greater than 0.0001. Other Problem is that I can not set deltat less than 1e-7,because of memory shortage. It would be very nice to hear from you. Sincerely, Pooria.

 June 7, 2005, 12:52 Re: Shock Tube #4 Nick Guest   Posts: n/a Are you sure that those initial conditions are appropriate? I mean, have you checked all these values from the compressible flow tables? As far as your DT is concerned: How many nodes do you have and what is your stability criteria? Most of the time non-physical results come from a non-stable situation.

 June 8, 2005, 02:52 Re: Shock Tube #5 upwind Guest   Posts: n/a You should be able to set any value of deltat : it appears you are storing values of dependent variables at all time levels. You need to store values of dependent variables only for two time levels and keep swapping values at the end of each time step.

 June 14, 2005, 00:55 Re: Shock Tube #6 Ritesh Guest   Posts: n/a Apart from the initial condition, you just use reflecting boundary conditions, you can look into a book by R. J. Levaque (chapter 7) for boundary conditions. let me know, for any further details

 Thread Tools Search this Thread Search this Thread: Advanced Search Display Modes Linear Mode

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

 Similar Threads Thread Thread Starter Forum Replies Last Post Luke F Main CFD Forum 2 May 20, 2016 02:10 harish FLUENT 5 January 25, 2014 02:20 AB Main CFD Forum 3 December 10, 2004 07:31 AB Siemens 0 November 21, 2004 18:43 AB Siemens 1 November 9, 2004 00:25

All times are GMT -4. The time now is 06:14.

 Contact Us - CFD Online - Privacy Statement - Top