Smooth collective variables#
Overview#
Soft ring counts, hexagon-pair counts, gyration and states, with gradients. More…
Detailed Documentation#
Soft ring counts, hexagon-pair counts, gyration and states, with gradients.
Every bond within d_max carries the weight s(r) of seams_switch_rational(). A candidate ring is any simple cycle of at most max_ring members in the graph at d_max + skin. Its weight is the product of its bond weights times (1 - W_P) for every shortcut path P between two of its members, W_P the product of the path’s bond weights. With bond weights 0 and 1 the rings of weight one are the primitive rings of seams_rings_find(). The ring counts, ring-atom counts and hexagon pairs are fixed polynomials in the pair weights, so they are as smooth as s(r) also where a bond crosses the list cutoff or a ring gains or loses a shortcut. The weights are twice continuously differentiable in the coordinates for n >= 3, and for n = 2 with d0 = 0. At d0 > 0 the weight is only C^(n-1) at r = d0; with d0 = 0 and n = 1 it has a cone, s = 1 - r / r0 to first order, where two atoms coincide.
The gyration values are not polynomials in the weights. They are as smooth as the weights for a compact selection, one whose atoms are all closer to each other than half the narrowest cell width in some periodic image, while the total weight is positive. Otherwise the unwrapped positions can jump by a cell vector, and with ring weights the value drops to 0 where the total weight reaches 0. The volume is a square root of det G: continuous where G is, but in general not differentiable where the cluster becomes flat, det G = 0. It has a kink there, like the distance of one atom from the plane of the others.
Gradients are d value / d x, 3 * natoms doubles in frame order, x0 y0 z0 x1 …, zero for atoms outside the selection. The force of a bias V(value) on atom i is -dV/dvalue times its three entries.