# Sod shock tube using dsmcFoam - Help

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

 December 5, 2021, 12:23 Sod shock tube using dsmcFoam - Help #1 New Member   Melania Join Date: Nov 2021 Posts: 4 Rep Power: 4 Hi everyone! I'm trying to simulate the Sod shock tube using the particle-based method called dmscFoam. I'm new with OpenFOAM and C++ language, so I'm having some trouble using it. I've set the initial conditions of pressure,density and temperature but the results are not the expected ones. Did anyone try to do this simulation? if someone can help me, I would appreciate it. Thank you so much!

 December 15, 2021, 22:38 #2 New Member   XJ YANG Join Date: Dec 2021 Posts: 1 Rep Power: 0 In sod shock tube problem, the density, velocity, and temperature is macroscopic variables, and the reference solution is calculated by Riemann solver; while DSMC is a particle method, which is mainly used in rarefied flow. If the DSMC method is used for the problems in continuum flow, a lot of particles is needed. So, why use DSMC solver for the sod shock tube problem?

December 17, 2021, 11:13
#3
New Member

Melania
Join Date: Nov 2021
Posts: 4
Rep Power: 4
Quote:
 Originally Posted by xjyang In sod shock tube problem, the density, velocity, and temperature is macroscopic variables, and the reference solution is calculated by Riemann solver; while DSMC is a particle method, which is mainly used in rarefied flow. If the DSMC method is used for the problems in continuum flow, a lot of particles is needed. So, why use DSMC solver for the sod shock tube problem?

Hi xjyang, thank you for answering!

This is actually a work for my master thesis: I'm trying to simulate basically a continuum flow with this discrete method. I know about the amount of particles that have to be used for the simulation. Do you have any tip?
You would be really helpful, since I'm having some trouble with the solver and I'm new with OpenFOAM.

 December 18, 2021, 09:47 #4 Senior Member     Herpes Free Engineer Join Date: Sep 2019 Location: The Home Under The Ground with the Lost Boys Posts: 932 Rep Power: 12 A validation tutorial of Sod's shock tube using rhoPimpleFoam: http://www.wolfdynamics.com/tutorials.html?id=150 Hope this helps a bit (though not direct answer to your questions) __________________ The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror