How to map and visualize force components (Fx, Fy, Fz) from LAMMPS pairwise interaction result

Hello,

I have two different files from my LAMMPS simulations:
File 1: Per-particle results (positions, diameters, etc.). (All particles are the same, and the pair style granular is used).
File 2: Pairwise interactions results, which I computed using compute pair/local command. It contains information including force components (Fx, Fy, Fz) between particles. (They are not force components per particle, but rather the forces acting between pairs of particles.)

I successfully loaded the first file into OVITO and then added the second one using Load Trajectory, and now OVITO displays particles and shows pairwise interactions as bonds.
My question is:
How can I map and visualize the force components (Fx, Fy, Fz) between particles in OVITO?

Any suggestions or a brief walkthrough would be much appreciated.

You have two options to visualize the force associated to each of your bonds:

You can write a Python Script Modifier that creates Vectors based on the forces associated with each bond. This modifier is only available in OVITO Pro.

In OVITO Basic, the best option is to use the Color Coding Modifier to color the bonds based on the individual force components.