# 1D solution of shock tube

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

 May 30, 2013, 10:08 1D solution of shock tube #1 Senior Member     Ehsan Join Date: Oct 2012 Location: Iran Posts: 2,209 Rep Power: 18 Hi shock tube is a basic CFD problem for testing systems with discontinuities. its valuable that provide a analytic program for 1D inviscid shock tube that gives flow properties at each sections whenever the user wants,in any form like a Matlab program or what form that anyone interested thinks its good is worthy. Saikat_FM likes this. __________________ Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked.

June 18, 2013, 06:24
reducing CFL no.
#2
New Member

Kaushik Roy
Join Date: Jun 2013
Posts: 2
Rep Power: 0
I have run the shock tube problem for various schemes and I found that when the CFL number is reduced, the error increases...can you explain why??

BTW the analytical solution of shock tube is attached here
Attached Files
 analytical.txt (3.2 KB, 122 views)

 June 18, 2013, 06:36 #3 Senior Member     Ehsan Join Date: Oct 2012 Location: Iran Posts: 2,209 Rep Power: 18 thats a valuable work.could you add some explanations in different parts? you compare error with what? __________________ Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked.

 June 18, 2013, 06:45 #4 New Member   Kaushik Roy Join Date: Jun 2013 Posts: 2 Rep Power: 0 I have found the error in pressure and density by evaluating the diiference between the numerical solution and the exact solution and I have carried out the process for two values of CFL no, 0.5 and 0.1. The errors associated with CFL 0.1 are larger than CFL 0.5 and I would like to know why....

 June 18, 2013, 06:57 #5 Senior Member     Ehsan Join Date: Oct 2012 Location: Iran Posts: 2,209 Rep Power: 18 why this error occurs? Code: ```ehsan@Ehsan-com:~/Desktop\$ gcc analytical_WR.c -o WR analytical_WR.c:4:18: fatal error: conio.h: No such file or directory compilation terminated.``` __________________ Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked.

June 27, 2013, 09:01
ShockTube program execution error
#6
Senior Member

Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,209
Rep Power: 18
what does errors mean?and how to resolve?
can anyone help?
Attached Files
 ShockTube.c (12.6 KB, 54 views)
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.

June 27, 2013, 09:47
#7
Senior Member

Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 581
Rep Power: 20
Added the stdlib.h header and compiled it correctly with

Code:
`gcc -o output ShockTube.CPP -lm`
Run code with

Code:
`./output`
Attached Files
 ShockTube.CPP.zip (2.5 KB, 36 views)
__________________
Dan

Find me on twitter @dancombest and LinkedIn

June 27, 2013, 11:25
#8
Senior Member

Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,209
Rep Power: 18
Thanks and whats the problem with this file?could you have a look into it?
Attached Files
 shockTube2.C (3.2 KB, 19 views)
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.

 June 27, 2013, 12:25 #9 Senior Member     Daniel P. Combest Join Date: Mar 2009 Location: St. Louis, USA Posts: 581 Rep Power: 20 Did you try to Google the error? Code: ```gcc -o output shockTube2.CPP -lm shockTube2.CPP:4:18: fatal error: conio.h: No such file or directory compilation terminated.``` here is a link to what i found. __________________ Dan Find me on twitter @dancombest and LinkedIn

 Thread Tools 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 On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post orxan.shibli Main CFD Forum 14 May 20, 2016 21:41 himanshu28 OpenFOAM 15 December 4, 2013 14:06 Belgio ANSYS Meshing & Geometry 2 November 2, 2009 19:51 msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58 AB CD-adapco 1 November 9, 2004 01:25

All times are GMT -4. The time now is 07:38.

 Contact Us - CFD Online - Top