Figure 9. Lennard-Jones particles flowing around obstacles. The paths of red marker particles are visualized using trajectory lines.
OVITO can visualize trajectory lines of individual particles as shown in the example movie on the right. A trajectory object is created using the Create trajectory lines utility as described in the following.
Figure 10. The Create trajectory lines utility.
The user interface of the utility (Figure 10) lets you select the set of particles for which to create trajectory lines (all or selected ones) and the time span over which the trajectory lines should be generated. The Unwrap trajectories option is useful when particles cross the boundaries of a periodic simulation cell.
Once you have made all settings, press the Particle trajectories object by OVITO, which is a new object added to the scene. The new trajectories object is automatically selected in the modification panel.button. OVITO will now load each simulation frame one after another, sample the particle positions, and generate the trajectory lines. They are stored in a
Figure 11. The trajectory display settings.
You can switch back and forth between the Trajectories and the Particles object using the scene object selector box (marked by a red circle in Figure 11). Alternatively, you can simpy click on a particle or on a trajectory line in the viewports to select the corresponding object.
The trajectory object is linked to the particles object it was created from. You may use thebutton to update the trajectories if necessary, e.g., if the input simulation data has changed.
Procedure summary: You first use the Create trajectory lines utility to create a new trajectory object from the currently loaded simulation time series. You may then adjust the display settings for the newly created trajectory object as shown in Figure 11. Finally, you can switch back to the Particles object to continue working with the particles data, apply modifiers etc. The trajectory object is not affected by any changes made to the particles data unless you press the button of the trajectory object.
You can create several trajectory objects by invoking the Create trajectory lines utility multiple times. This allows you, for example, to assign different colors to the trajectories of different particle subsets.
You can delete the selected trajectory object from the scene again by choosing→ from the menu.
Trajectories are always generated from the output of the particle modification pipeline. Thus, they reflect the effect of any modifiers applied to the particle data. This also means that you have to be careful when deleting particles using modifiers. The creation of trajectory lines will fail if a particle, for which a trajectory is to be generated, gets deleted during the course of the simulation sequence. To avoid this, it may be necessary to temporarily deactivate certain modifiers before generating the trajectory lines. Afterwards, they can be safely switched on again.