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

Shock Tube Problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 11, 2016, 08:42
Default Shock Tube Problem
  #1
New Member
 
ogulcan gocmen
Join Date: Feb 2016
Posts: 7
Rep Power: 10
oglcngcmn is on a distinguished road
Hey experts,

I have to write a code for shock tube problem with one of the finite element method. However, I do not have much knowledge about shock tube problem. So, I do not know what to write. Where can I find anything about that topic?

Thank you,
oglcngcmn is offline   Reply With Quote

Old   May 11, 2016, 15:27
Default
  #2
agd
Senior Member
 
Join Date: Jul 2009
Posts: 357
Rep Power: 19
agd is on a distinguished road
Perhaps

https://en.wikipedia.org/wiki/Sod_shock_tube
agd is offline   Reply With Quote

Old   May 11, 2016, 15:42
Default
  #3
New Member
 
ogulcan gocmen
Join Date: Feb 2016
Posts: 7
Rep Power: 10
oglcngcmn is on a distinguished road
Quote:
Originally Posted by agd View Post
How can I combine those equations with numerical methods?
oglcngcmn is offline   Reply With Quote

Old   May 11, 2016, 17:26
Default
  #4
agd
Senior Member
 
Join Date: Jul 2009
Posts: 357
Rep Power: 19
agd is on a distinguished road
If you want to numerically simulate a shock tube using CFD then you will need to read up on schemes for solving the compressible Euler equations or Navier-Stokes equations. I understood your original post to mean that you had a solver and were seeking information on the shock tube problem.
agd is offline   Reply With Quote

Old   May 11, 2016, 17:30
Default
  #5
New Member
 
ogulcan gocmen
Join Date: Feb 2016
Posts: 7
Rep Power: 10
oglcngcmn is on a distinguished road
Thank you very much,

Actually I found a sample code in here:
http://www3.nd.edu/~gtryggva/CFD-Cou...Lecture-14.pdf

There are some equations they are used. However, I could not understand which equations are used in numerical solution. I could not understand the code.
oglcngcmn is offline   Reply With Quote

Old   May 11, 2016, 18:23
Default
  #6
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
see here:

http://oai.cwi.nl/oai/asset/10964/10964D.pdf
FMDenaro is offline   Reply With Quote

Old   May 15, 2016, 10:51
Default
  #7
New Member
 
ogulcan gocmen
Join Date: Feb 2016
Posts: 7
Rep Power: 10
oglcngcmn is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
I will have one more question. I solved with numerically and wrote the code. However, I cannot decide dt value ?

How should I calculate that value ?
oglcngcmn is offline   Reply With Quote

Old   May 16, 2016, 05:17
Default
  #8
Senior Member
 
Join Date: Oct 2011
Posts: 242
Rep Power: 17
naffrancois is on a distinguished road
you can find the answer to your question about dt in section 3.3.2. of the above document FMDenaro sent you. I strongly advise you reading CFD text books before taking available codes as black boxes. These include for example:

- Leveque: Finite volume methods for hyperbolic problems
- Toro: Riemann solvers and numerical methods for fluid dynamics
- Blazek: Computational fluid dynamics, principles and applications

All the above books treat the Euler equations, analysis and discretization techniques with applications to 1d shock tubes
naffrancois is offline   Reply With Quote

Old   May 20, 2016, 03:00
Default
  #9
Member
 
LUQILIN
Join Date: May 2016
Location: Harbin, China
Posts: 35
Rep Power: 10
LUQILIN is on a distinguished road
You can refer to the text books of Anderson.J.D.'s: Fundamentals of aerodynamics. For 1D shock nozzle problem, there exists a unique exact solution. You can find the exact solution first and compare it with your numerical solution. It is a good practice for beginners.
For numerically solving shock tube problem, my suggestion is to begin with finite difference or finite volume scheme. It is much easier to implement than finite element method.
Any language is suitable, C, C++, python or matlab, etc.
LUQILIN is offline   Reply With Quote

Old   May 20, 2016, 08:12
Default
  #10
New Member
 
ogulcan gocmen
Join Date: Feb 2016
Posts: 7
Rep Power: 10
oglcngcmn is on a distinguished road
Quote:
Originally Posted by LUQILIN View Post
You can refer to the text books of Anderson.J.D.'s: Fundamentals of aerodynamics. For 1D shock nozzle problem, there exists a unique exact solution. You can find the exact solution first and compare it with your numerical solution. It is a good practice for beginners.
For numerically solving shock tube problem, my suggestion is to begin with finite difference or finite volume scheme. It is much easier to implement than finite element method.
Any language is suitable, C, C++, python or matlab, etc.
I have solved FTCS, FTBS and lax-wendroff method. Now, I will try to add artificial viscosity if I can..

Thank you for helping.. I will look at it.
oglcngcmn is offline   Reply With Quote

Old   September 17, 2022, 04:12
Default
  #11
New Member
 
javeria
Join Date: Aug 2022
Posts: 21
Rep Power: 4
javeria is on a distinguished road
can u share your codes please
javeria is offline   Reply With Quote

Reply


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
HLL Riemann Shock Tube Matlab Problem Luke F Main CFD Forum 2 May 20, 2016 03:10
analytical solution of 1D shock tube problem ma Main CFD Forum 10 May 11, 2015 06:20
the shock tube problem and its artifacts with sonicFoam emjay OpenFOAM Running, Solving & CFD 0 December 16, 2011 08:58
Lax-wendroff scheme for Shock tube problem. manukamin Main CFD Forum 1 November 26, 2011 15:10
using ghost fluid method in shock tube problem Amir Main CFD Forum 4 February 24, 2011 11:09


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