I wonder can Lammps measure the oxidation layer created during
oxidation? is there any example file to get start with?
The fix ave/chunk command can tally the
density profile of different types of atoms
across spatial bins. You could likely infer
the thickness of an oxide layer that way.