Particle trajectory

The intermediate particle position and velocity during trajectory simulation are exported as following two series of files:

  • position.{$pid}

  • U.{$pid}

where pid denotes the identification number of a particle. Unique files, such as position.{$pid} and U.{$pid}, are generated for each particle, wherein position.0 and U.0 correspond to the first particle with pid=0. These files are stored in the result directory and the positions and velocities of the particles are recorded during trajectory calculation, at a specific output interval designated in the particle/condition file. Each column in these files represents various features: the first three columns contain the xyz coordinates, the fourth column specifies the cell ID at that time, and the fifth column indicates the time. To visualize the particle trajectories, the first three columns of the position file can be plotted in 3D or two of them can be used for a 2D plot as described in below igure. Additionally, by modulating the trajectory color according to the velocities mentioned in the U file, particle velocity distributions can be visualized in tandem. If smooth trajectories are required, a small output time interval must be designated in the particle/condition file.

Figure. 1000 nm particle trajectories injected from center line of the inlet.

Last updated