Good morning/whatever time it may be for you all
I’m working with a LAMMPS script that creates alternating solid/liquid regions, and am trying to plot the variation of the interfaces using a custom order function.
Is it possible to modify compute centro/atom
(or a different /atom
compute) so that it calculates an output value phi given by the formula
phi = 1/12 * (sum over nearest 12 neighbours):(|position of neighbour - idealised position of neighbour in fcc lattice|^2)
For atoms in an fcc lattice this would give phi = 0, and phi > 0 for atoms deviating from their ideal position.
If anyone’s able to help I’d be very grateful for your time, and if you need clarifications on any details please ask
I appreciate that this is badly formatted and apologise: if someone could correct me then feel free to as well