Displacement vectors

This modifier calculates the displacement vectors of particles based on two configurations of the simulated system.

The current particle set (the one you apply the modifier to) is used as the current (or deformed) configuration of the system. The reference (or initial) particle coordinates are loaded from a separate input file by the modifier.

The modifier calculates the displacement vector of each particle by subtracting its position in the reference configuration from the particle's position in the current configuration. The calculated vectors are stored in the Displacement particle property and may be visualized as arrows. Alternatively, you can use the Color coding modifier to visualize the displacement magnitude of each particle.

Use the "Reference: External file" panel to select the file containing the initial particle positions. If particles do not possess identifiers, then the reference file must contain the same number of particles as the current configuration and they must be stored in the exact same order. If particles have IDs, then the modifier uses these unique IDs to map particles from the current configuration to the reference configuration. The storage orders in the simulation files do not have to be the same in this case.

The vectors computed by the modifier are stored in the Displacement particle property. In addition, the magnitude of each displacement vector is stored in the Displacement Magnitude particle property.

The visual appearance of the computed vectors is controlled by the attached vector display object. Note that this display object is disabled by default and you have to explicitly enable it in the pipeline editor to see the displacement arrows in the viewports.

Parameters

Eliminate homogeneous cell deformation

This option lets the modifier first rescale the current simulation cell including all particle coordinates to match the cell shape in the reference configuration before calculating the displacement vectors. This effectively eliminates any macroscopic, homogeneous deformation of the simulation cell, and the calculated vectors will reflect only the internal, microscopic displacements of particles.

Assume unwrapped coordinates

This only affects the treatment of simulation cells with periodic boundary conditions. If activated, the particle coordinates in the reference and the current configuration are taken as is. If this option is not checked, the minimum image convention is used to deal with particles that have crossed a periodic boundary.

Fixed reference configuration

If this option is active, the selected animation frame from the reference simulation sequence is used as a fixed reference to calculate the displacement vectors. This is the default mode.

Relative to current frame

If this option is active, then a changing reference configuration is used to calculate the displacement vectors. This allows computing incremental displacement vectors (similar to discrete velocity vectors). The frame offset controls the distance between reference and current frame and can be negative or positive. If it is negative, then the reference frame precedes the current frame in the simulation sequence. Note that the displacement vectors will not be computed for simulation frames for which the resulting reference frame is negative or out of range.