CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] How to plot particle trajectory in paraview (https://www.cfd-online.com/Forums/paraview/177676-how-plot-particle-trajectory-paraview.html)

Behzad60 September 18, 2016 17:07

How to plot particle trajectory in paraview
 
Hello all,

I have Lagrangian data (particle id, diameter, and velocity) came from particulate flow simulation with OpenFOAM and I wanted to plot the particle trajectories inside the paraview. I have created the VTK files through the time.

Thank you very much for your help.

Behzad

ktron September 29, 2021 08:05

Hi,
this is an old question, but maybe someone still needs this.


Please look here: https://openfoamwiki.net/index.php/H..._based_methods


You probably already did


Code:

foamToVTK

Next, you need the particleTracksProperties dict:


Code:

cp $FOAM_UTILITIES/postProcessing/lagrangian/particleTracks/particleTracksProperties <CASE>/constant/

Next, you need to create the particle positions in VTK format:



Code:

particleTracks

Then, in paraview, open the vtk files from VTK/lagrangian/kinematicCloud, apply glyph filter, and apply temporalParticlesToPathlines filter. Klick the play button, and trajectories should start to be displayed with the particle movement.


All times are GMT -4. The time now is 12:37.