Disorder parameter#
The disorder parameter of Kawasaki and Onuki [1] measures how much the orientation of the neighbor shell of an atom differs from those of its neighbors. It is zero in a perfect crystal and large in a liquid. It is computed from the vectors \(q_{lm}\) of the Steinhardt parameters, and it is used to map ordered and disordered regions, for example in glasses and polycrystals [1]. The same comparison of neighboring atoms underlies the solid–liquid classification.
Definition#
For each atom \(i\), the vector \(q_{lm}(i)\), \(m = -l, \dots, l\), is the average of the spherical harmonics over the bonds to its neighbors, as defined in Steinhardt parameters. The overlap of the vectors of two atoms \(i\) and \(j\) is
where the asterisk denotes the complex conjugate. pyscal normalises the overlap, so \(S_{ii} = 1\) and \(S_{ij}\) lies between \(-1\) and 1. The disorder parameter of atom \(i\) with \(N(i)\) neighbors is
\(D(i)\) lies between 0, when all neighbors have the same orientation as atom \(i\), and 4. Kawasaki and Onuki used \(l = 6\) [1].
The averaged disorder parameter averages \(D\) over the atom and its neighbors:
where \(k = 0\) is the atom \(i\) itself and \(k = 1, \dots, N(i)\) are its neighbors.
Usage#
Find the neighbors first, then compute the disorder parameter:
import pyscal
from ase.io import read
atoms = read("conf.fcc.dump", format="lammps-dump-text")
pyscal.find_neighbors(atoms, method="cutoff", cutoff="sann")
D = pyscal.disorder(atoms, q=6)
D_averaged = pyscal.disorder(atoms, q=6, averaged=True)
q sets the order \(l\) (default 6).
disorder returns \(D\), or \(\bar{D}\) with averaged=True, with one value per atom.
It also stores the results on atoms:
Key |
Shape |
Content |
|---|---|---|
|
\((N,)\) |
\(D\) |
|
\((N,)\) |
\(\bar{D}\), with |
|
\((N,)\), \((N, 13)\) |
\(q_6\) and the parts of \(q_{6m}\), as in Steinhardt parameters |
disorder computes the \(q_{lm}\) from the current neighbors and stores them as steinhardt_parameter does.
The sum over \(S_{ij}\) in the definition is the average bond correlation \(\langle s_{ij} \rangle\) of the solid–liquid classification, so \(D(i) = 2 (1 - \langle s_{ij} \rangle)\) for the same neighbors and \(l\).
Crystal and liquid#
We compute \(D\) and \(\bar{D}\) with \(l = 6\) for three MD snapshots from the examples folder: an fcc crystal and a bcc crystal at finite temperature, and a liquid.
The neighbors are found with SANN, which gives the full first shell in both crystals (see Finding neighbors).
import numpy as np
snapshots = {
"fcc": read("conf.fcc.dump", format="lammps-dump-text"),
"bcc": read("conf.bcc.dump", format="lammps-dump-text"),
"liquid": read("conf.lqd.Al.dump", format="lammps-dump-text"),
}
values = {}
for name, snapshot in snapshots.items():
pyscal.find_neighbors(snapshot, method="cutoff", cutoff="sann")
averaged = pyscal.disorder(snapshot, q=6, averaged=True)
values[name] = (snapshot.arrays["pyscal_disorder"], averaged)
In panel (a), the largest value of \(D\) in the two crystals is np.float64(0.97), and the smallest value in the liquid is np.float64(0.8). The two distributions overlap only in their tails, which contain 3 atoms. In panel (b), the averaged parameter \(\bar{D}\) is at most np.float64(0.38) in the crystals and at least np.float64(1.25) in the liquid, and the distributions are well separated. With \(l = 6\), the fcc and the bcc crystal have almost the same distribution, so \(D\) measures disorder but does not tell the crystal structures apart.
Thermal vibrations and the choice of \(l\)#
How does the disorder parameter grow with thermal motion, and does the choice of \(l\) matter? We give perfect fcc, bcc and hcp crystals random displacements with a standard deviation of up to 12 % of the nearest neighbor distance in each direction, a rough model of thermal vibrations, and compute the mean of \(\bar{D}\) for \(l = 4\) and \(l = 6\).
from ase.build import bulk
crystals = {
"fcc": (bulk("Cu", "fcc", a=3.61, cubic=True).repeat(6), 3.61 / np.sqrt(2)),
"bcc": (bulk("Fe", "bcc", a=2.87, cubic=True).repeat(7), 2.87 * np.sqrt(3) / 2),
"hcp": (bulk("Cu", "hcp", a=2.55).repeat((8, 8, 5)), 2.55),
}
noises = np.linspace(0, 0.12, 13)
ls = [4, 6]
scan = {}
for name, (perfect, nearest) in crystals.items():
for noise in noises:
crystal = perfect.copy()
crystal.rattle(noise * nearest, seed=1)
pyscal.find_neighbors(crystal, method="cutoff", cutoff="sann")
for l in ls:
scan[name, l, noise] = pyscal.disorder(crystal, q=l, averaged=True).mean()
liquid = snapshots["liquid"]
liquid_mean = {l: pyscal.disorder(liquid, q=l, averaged=True).mean() for l in ls}
The standard deviation of the displacements is given in percent of the nearest neighbor distance \(d_1\). The dashed lines mark the mean of \(\bar{D}\) in the liquid snapshot. In all three crystals, \(\bar{D}\) is zero without displacements. With \(l = 6\) (b), it increases steadily with the displacements and stays below the value of the liquid over the whole range. With \(l = 4\) (a), the bcc crystal reaches np.float64(1.78) already at a standard deviation of 4 %, close to the value of the liquid, np.float64(1.91). The reason is that \(q_4\) of a perfect bcc crystal with its full first shell is close to zero (see Steinhardt parameters). The vectors \(q_{4m}\) are then short, and small displacements change their direction completely. Use \(l = 6\) unless there is a reason for another choice.
Things to watch#
The choice of \(l\). With \(l = 4\), bcc crystals at finite temperature look as disordered as a liquid, as shown above.
The neighbor method changes the values. \(D\) depends on which atoms are counted as neighbors, through \(q_{lm}\) and through the sum over neighbors. Compare values only when they were computed with the same neighbor method.
References#
T. Kawasaki and A. Onuki, Construction of a disorder variable from Steinhardt order parameters in binary mixtures at high densities in three dimensions, J. Chem. Phys. 135, 174109 (2011). doi:10.1063/1.3656762