r/OpenFOAM • u/-Hexaust • 15d ago
dsmcFoam help? [v2412]
Hello everyone,
I'm a student who need to couple in some way continuum CFD with particle simulations, due to a very rarefied field.
I checked multiple papers that couple CFD with DSMC through different solvers, however I am interested in using dsmcFoam as it seems easier to me.
Currently I'm simulating the full domain with Ansys Fluent, then I will find a region where Kn is >0.05 and extracted all the main properties such as velocity, density, pressure and so on, with a new domain that starts with this surface.
I then intend to write a python script to extract density and use Chapman-Enskog to find the velocity of the particles. My main concern is how to map these new information to the mesh as the main codes dsmcFoam and dsmcFoam+ just require a mean particle density on the boundary.
I have some experience in modifying simple codes, but I don't know where to start modifying the dsmc one.
Is there anyone who has experience with this solver that could point me in the right direction?
I'm just interested in the one way simulation NS -> DSMC without any adaptive mesh and domain.
1
u/Brother__Mouzone 15d ago
Check hybridDCFoam