Display only particles with specific property from trajectory file

Hello,

From lammps I output a trajectory file including a column header ‘vx’ - after processing with a python script this column is used to show whether a specific particle forms part of a crystal structure, if this is true, vx is set to 4.

Is it possible to view only particles where vx=4 throughout the trajectory? This would allow me to easily view crystal growth without other particles obscuring things.

This is possible in VMD simply by tying vx=4 in selected atoms but I am interested in using OVITO due to the ability to easily combine lammps trajectories with data files and many other useful features.

Any help would be greatly appreciated.
Thanks

Yes, the corresponding OVITO workflow would look like this:

  1. Use an Expression Selection Modifier with the following settings:
    Boolean Expression: vx != 4
    to select all particles that are not associated with the specified per-particle value.
  2. Now you can add a Delete Selected Modifier to delete the selected particles from the scene.
1 Like

That works perfectly, thank you for your help!

1 Like