I am doing a Lagrangian Particle tracking run and would like to compute the average residence time of particles
exiting a boundary as well as compute some statistics on the distribution of residence times for the particles.
How can I do this?




The easiest starting point for this analysis would be to have a file which lists all the particles exiting the boundary of
interest and their residence or traveling time at the exit.

This file can be created in an automated fashion in CFX-Post using a session file which employs scripting.

The following approach can be used:

1. Create a particle track containing all possible tracks from the simulation. Filter this particle track
using the named boundary of interest as the end location.

2. Loop over all the tracks in this filtered list one at a time. Write the particle number and the maximum value
of the particle traveling time for this track to a comma delimited text file which can be opened in Excel for
further post-processing.

This approach could be modified to include say the particle number rate if more sophisticated averaging were required.

A sample Post session file which illustrates this approach is attached,





Show Form
No comments yet. Be the first to add a comment!