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

1D Shock Tube problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2018, 08:19
Default 1D Shock Tube problem
  #1
New Member
 
Ramachandra Kannan
Join Date: Jun 2018
Posts: 2
Rep Power: 0
RamShivam is on a distinguished road
Hello everyone,
I have created Python program code to solve 1D Shock tube problem numerically using Smoothed Particle Hydrodynamics Meshless Approach.
Here, I use Taylor's series expansion for finding spatial derivatives(first and second derivative) occuring in one dimensional Navier Stokes equation in Lagrangian form and then by minimizing the error in the series using Weighted Least squares approximation, the spatial derivatives are found out.
Then, the results are applied in Second order Runge-Kutta method to find the properties at various points. I have used 100 points from 0 to 1 in the problem.
But my results are not in accordance with the actual solution of the shock tube problem. I could not capture the shock wave and the expansion wave in the graph obtained. It is difficult for me to find where I went wrong. Can somebody help me find out the mistake in the procedure?
Thank you
RamShivam is offline   Reply With Quote

Old   June 13, 2018, 08:28
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by RamShivam View Post
Hello everyone,
I have created Python program code to solve 1D Shock tube problem numerically using Smoothed Particle Hydrodynamics Meshless Approach.
Here, I use Taylor's series expansion for finding spatial derivatives(first and second derivative) occuring in one dimensional Navier Stokes equation in Lagrangian form and then by minimizing the error in the series using Weighted Least squares approximation, the spatial derivatives are found out.
Then, the results are applied in Second order Runge-Kutta method to find the properties at various points. I have used 100 points from 0 to 1 in the problem.
But my results are not in accordance with the actual solution of the shock tube problem. I could not capture the shock wave and the expansion wave in the graph obtained. It is difficult for me to find where I went wrong. Can somebody help me find out the mistake in the procedure?
Thank you



I don't know the detail in your code but you must be aware not to use Taylor expansion across the shock.

Then, you should post the plot of the results
FMDenaro is offline   Reply With Quote

Old   June 13, 2018, 09:40
Default Results obtained and reference
  #3
New Member
 
Ramachandra Kannan
Join Date: Jun 2018
Posts: 2
Rep Power: 0
RamShivam is on a distinguished road
http://shodhganga.inflibnet.ac.in/bi...hapter%207.pdf
I followed the method which is described in Pageno.203 in this pdf.
I attach my current results here.
Thank you.
Attached Images
File Type: png Density, Velocity.png (23.5 KB, 9 views)
File Type: png Pressure.png (11.3 KB, 4 views)
RamShivam is offline   Reply With Quote

Old   June 13, 2018, 10:37
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by RamShivam View Post
http://shodhganga.inflibnet.ac.in/bi...hapter%207.pdf
I followed the method which is described in Pageno.203 in this pdf.
I attach my current results here.
Thank you.



I don't know the details of this method. However, derivatives are not defined across a shock but only in the regions of smooth solutions. For theis reason the weak form is adopted.

I strongly suggest to check your method before using simple test-cases, that is the scalar advection and the Burgers equation. If the results are good then you can think to solve Euler equations.
FMDenaro 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 01:42.