# fix orient/eco command fix ID group-ID orient/eco u0 eta cutoff orientationsFile - ID, group-ID are documented in fix command - u0 = energy added to each atom (energy units) - eta = cutoff value (usually 0.25) - cutoff = cutoff radius for orientation parameter calculation - orientationsFile = file that specifies orientation of each grain ## Examples ``` LAMMPS fix gb all orient/eco 0.08 0.25 3.524 sigma5.ori ``` ## Description The fix applies a synthetic driving force to a grain boundary which can be used for the investigation of grain boundary motion. The affiliation of atoms to either of the two grains forming the grain boundary is determined from an orientation-dependent order parameter as described in [(Ulomek)](Ulomek). The potential energy of atoms is either increased by an amount of 0.5\*\*u0\* or -0.5\*\*u0\* according to the orientation of the surrounding crystal. This creates a potential energy gradient which pushes atoms near the grain boundary to orient according to the energetically favorable grain orientation. This fix is designed for applications in bicrystal system with one grain boundary and open ends, or two opposite grain boundaries in a periodic system. In either case, the entire system can experience a displacement during the simulation which needs to be accounted for in the evaluation of the grain boundary velocity. While the basic method is described in [(Ulomek)](Ulomek), the implementation follows the efficient implementation from [(Schratt & Mohles)](Schratt). The synthetic potential energy added to an atom j is given by the following formulas $$\begin{aligned} w(|\vec{r}_{jk}|) = w_{jk} & = \left\{\begin{array}{lc} \frac{|\vec{r}_{jk}|^{4}}{r_{\mathrm{cut}}^{4}} -2\frac{|\vec{r}_{jk}|^{2}}{r_{\mathrm{cut}}^{2}}+1, & |\vec{r}_{jk}|