Applies an external potential to a group of atoms to mimic confinement in a quartic/double well potential.
where \(\mathbf{k}_i=(k_{ix},k_{iy},k_{iz}) \text{for} i = 1,\dots,4, \Delta \mathbf{r} = (\mathbf{r} - \mathbf{r}_0)\) for \(\mathbf{r}_0=(r_{x0},r_{y0},r_{z0})\). Here, each of the \(\mathbf{k}_i\) and \(\mathbf{r}_0\) are Vector parameters that must be set to define the external potential. As the parameters are vectors, one- and two-dimensional potentials may be created by setting some of the spring coefficients to zero.
Quartic potentials are defined directly within the python input script as a Fix using its constructor.
FixExternalQuartic(state,handle,groupHandle,k1,k2,k3,k4,r0)
Arguments
Adding and activating the fix
#Add Fix for external quartic potential
UextDblWell = FixExternalQuartic(state,handle='Udbl',groupHandle='all',
k1 = Vector(0.0,0.0,0.0),
k2 = Vector(-1.,-1.,-1.),
k3 = Vector(0.0,0.0,0.0),
k4 = Vector(0.015,0.015,0.015),
r0 = Vector(0.0,0.0,1.0))
#Activate fix
state.activateFix(UextDblWell)