CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] MPPICFoam in Paraview - Density of particles (https://www.cfd-online.com/Forums/paraview/216419-mppicfoam-paraview-density-particles.html)

Destouches April 6, 2019 15:46

MPPICFoam in Paraview - Density of particles
 
Hi all,


I'm enjoying some particle tracking with MPPICFoam, compiling it with foamToEnsight and visualizing it in salome/Paraview.



I'm doing everything I can, but there is no way to visualize a colored map of particule density, the only way is a monochrome particle cloud, which is not that useful. :confused:





http://www.cadene.net/Images/Profil_ATR.png

My work is based on the glorious "injectionChannel" tutorial (if you never ran it, do it, it is really nice to look at).


Is there a trick I am missing ? How to extract and visualize a particles/cm³ 2D map ?

Do I have to write a dedicated script ?



Cheers,


A.

piranha007 May 10, 2019 06:01

Hi Destouches, nice simulation. I also came across the same question, how to visualize the density of the particles, and my solution was:

1- Extract cloud position and save it in a .csv file (File -> Save Data)
2- Use a gaussian-KDE(Gaussian kernel density estimation), to visualize the cloud density https://python-graph-gallery.com/86-...th-2d-density/


All times are GMT -4. The time now is 10:40.