Difference between revisions of "HowTo use particle tracer in paraFoam"

From OpenFOAMWiki
m (References)
Line 1: Line 1:
 
The '''particle tracer''' filter in paraview creates massless particle tracking with pathlines that animates over time without lagrangian data.  
 
The '''particle tracer''' filter in paraview creates massless particle tracking with pathlines that animates over time without lagrangian data.  
  
[[File:ParaviewParticleTracerExample.png|right|400px|Visualization pipeline]]
+
[[File:ParaviewParticleTracerExample.png|right|500px|Visualization pipeline]]
[[File:ParticlePathlinesScreenshot.png|right|400px|Visualization pipeline with Temporal Interpolator]]
+
[[File:ParticlePathlinesScreenshot.png|right|500px|Visualization pipeline with Temporal Interpolator]]
  
 
==Example: icoFoam/cavity==
 
==Example: icoFoam/cavity==

Revision as of 12:14, 22 July 2015

The particle tracer filter in paraview creates massless particle tracking with pathlines that animates over time without lagrangian data.

Visualization pipeline
Visualization pipeline with Temporal Interpolator

1 Example: icoFoam/cavity

We will use the $FOAM_TUTORIALS/incompressible/icoFoam/cavity tutorial case to exemplify the pipeline.

2 Visualization pipeline

  1. Load your velocity fields (U) in paraview.
    • If you have a large dataset you should apply the Temporal Interpolator filter in order to decrease the time data, and so decrease the chance of segmentation fault. This filter can also be used to interpolate saved time steps that are typically too sparse to create a smooth particle tracking animation by themselves.
  2. Generate the seed points from a source object (Point Source, Line, Plane, etc.) in the Sources menu. It must intersect your mesh and you can regulate the number of seed points (resolution) on your Source object.
  3. Apply the Particle Tracer filter taking your data as input and your source object (Point Source, Line, Plane, etc.) as source. The option Force Reinjection Every NSteps gives the injection rate per time step (0: injects only at the beginning; 1: injects every time step).

3 References

This tutorial is based on this post on cfd-online.com.