Substitutional Impurities: Introduction and Exploration
A substitutional impurity is when one of the atoms in the crystal is not of the same type as the others. It "substitutes" for one of them, occupying the same lattice site as the main atoms of the crystal.
NetLogo model 6.5.1 below is a molecular dynamics model of a crystal with a single substitutional impurity atom. Note, in this model, temperature (and therefore kinetic energy) is held constant at the value of the temp
slider. This means that the velocities of the atoms are scaled each time step so that the average kinetic energy of the atoms results in the set temperature.