CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Sod shock tube using dsmcFoam - Help (https://www.cfd-online.com/Forums/openfoam/239974-sod-shock-tube-using-dsmcfoam-help.html)

mely December 5, 2021 12:23

Sod shock tube using dsmcFoam - Help
 
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!

xjyang December 15, 2021 22:38

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?

mely December 17, 2021 11:13

Quote:

Originally Posted by xjyang (Post 818694)
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.

HPE December 18, 2021 09:47

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)


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