CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > System Analysis

1D solution of shock tube

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By immortality

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 30, 2013, 10:08
Default 1D solution of shock tube
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
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.
immortality is offline   Reply With Quote

Old   June 18, 2013, 06:24
Default reducing CFL no.
  #2
New Member
 
Kaushik Roy
Join Date: Jun 2013
Posts: 2
Rep Power: 0
kaushik.kiit is on a distinguished road
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
File Type: txt analytical.txt (3.2 KB, 173 views)
kaushik.kiit is offline   Reply With Quote

Old   June 18, 2013, 06:36
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
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.
immortality is offline   Reply With Quote

Old   June 18, 2013, 06:45
Default
  #4
New Member
 
Kaushik Roy
Join Date: Jun 2013
Posts: 2
Rep Power: 0
kaushik.kiit is on a distinguished road
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....
kaushik.kiit is offline   Reply With Quote

Old   June 18, 2013, 06:57
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
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.
immortality is offline   Reply With Quote

Old   June 27, 2013, 09:01
Default ShockTube program execution error
  #6
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
what does errors mean?and how to resolve?
can anyone help?
Attached Files
File Type: c ShockTube.c (12.6 KB, 77 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.
immortality is offline   Reply With Quote

Old   June 27, 2013, 09:47
Default
  #7
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
Added the stdlib.h header and compiled it correctly with

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

Code:
./output
Attached Files
File Type: zip ShockTube.CPP.zip (2.5 KB, 58 views)
chegdan is offline   Reply With Quote

Old   June 27, 2013, 11:25
Default
  #8
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
Thanks and whats the problem with this file?could you have a look into it?
Attached Files
File Type: c shockTube2.C (3.2 KB, 33 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.
immortality is offline   Reply With Quote

Old   June 27, 2013, 12:25
Default
  #9
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
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.
chegdan is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Error with rhoCentralFoam in Shock tube himanshu28 OpenFOAM 16 February 23, 2018 00:20
Two solutions of Sod's shock tube problem orxan.shibli Main CFD Forum 14 May 20, 2016 21:41
Shock tube post #1000 Belgio ANSYS Meshing & Geometry 2 November 2, 2009 18:51
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58
Shock tube problem AB Siemens 1 November 9, 2004 00:25


All times are GMT -4. The time now is 00:35.