How it Works
This simulation renders a 2D crystal lattice as a regular grid of atoms connected by bonds. Selecting a defect type and clicking the canvas lets you place a vacancy (remove an atom), an interstitial (squeeze an extra atom into a gap), a substitutional impurity (swap an atom for a foreign one), or an edge dislocation (insert an extra half-plane of atoms partway into the lattice). Each defect locally displaces its neighbors — vacancies pull neighbors inward, interstitials and impurities push them outward, and the dislocation line compresses bonds on one side while stretching them on the other.
With the strain overlay on, every atom is shaded by a simple heuristic strain measure: how far it has been displaced from its ideal lattice position, from blue (low strain) through amber to red (high strain). Independent of anything you click, the simulation also continuously "rolls the dice" for spontaneous thermal vacancy–interstitial (Frenkel) pairs at a rate set by the Arrhenius-like equilibrium formula below — raise the temperature slider and you'll see more orange-ringed thermal defects flicker into existence and occasionally recombine.
Boltzmann constant: k_B = 8.617×10⁻⁵ eV/K
Dislocation glide: moves one row of bonds at a time (not a whole plane at once)
Higher T or lower E_v → more thermal defects at equilibrium
Frequently Asked Questions
What is a point defect in a crystal lattice?
A point defect is a localized imperfection at or near a single lattice site. The three main types are vacancies (a missing atom, with neighbors relaxing inward), interstitials (an extra atom squeezed into a gap, pushing neighbors outward), and substitutional impurities (a foreign atom occupying a regular site in place of the host atom, straining the surrounding bonds if it differs in size).
What is a vacancy and how does it distort the lattice?
A vacancy is an empty lattice site where an atom is missing. Neighboring atoms lose a bonding partner and relax slightly inward toward the gap, creating a small local strain field that decays with distance from the vacancy.
What is an interstitial atom?
An interstitial is an extra atom wedged into a gap between regular lattice sites. Because that gap is smaller than an atom, the interstitial pushes its neighbors outward, creating compressive strain that is usually stronger and more localized than the strain around a vacancy.
What is a substitutional impurity?
A substitutional impurity is a foreign atom that replaces a host atom at a regular lattice site rather than squeezing in between sites. A larger or smaller impurity locally compresses or stretches the surrounding bonds, but the distortion is generally milder than an interstitial's since it still occupies a proper lattice position.
What is a dislocation, and what is an edge dislocation specifically?
A dislocation is a line defect running through the crystal rather than a single-point flaw. An edge dislocation is formed by inserting an extra half-plane of atoms partway into the lattice; the row where that half-plane terminates is the dislocation line, with compressed bonds on one side and stretched bonds on the other.
Why are edge dislocations essential for plastic deformation in metals?
Metals deform plastically by dislocation glide: the dislocation line moves through the crystal one row of bonds at a time, requiring only a small number of bonds to break and reform at each step. Without dislocations, permanent deformation would require sliding entire crystal planes past each other rigidly, breaking vastly more bonds simultaneously — needing far higher stress than metals actually exhibit.
What does the equilibrium vacancy concentration formula n_v/N = exp(-Ev/kT) mean?
This Arrhenius-like relation gives the fraction of lattice sites vacant at thermal equilibrium, where Ev is the vacancy formation energy, k is Boltzmann's constant, and T is absolute temperature. It comes from balancing the energy cost of creating vacancies against the configurational entropy gained by distributing them randomly among the sites.
Are defects always present at any temperature above absolute zero?
Yes. The formula predicts a nonzero n_v/N for any T > 0, so some equilibrium vacancy concentration is thermodynamically favored no matter how small. Introducing a few defects increases configurational entropy by more than it costs in formation energy, so a perfectly defect-free crystal is never the true free-energy minimum at finite temperature.
Why does higher temperature increase defect concentration?
Raising T makes more thermal energy available to pay the fixed formation energy cost Ev, and increases kT relative to Ev so the entropy term dominates the free-energy balance more strongly. Both effects push the equilibrium vacancy fraction up exponentially as temperature rises.
How do defects affect a material's mechanical properties?
Dislocations are essential for ductility, but tangled or pinned dislocations (as produced by work hardening) impede further dislocation motion and increase strength at the cost of ductility. Vacancies enable diffusion and high-temperature creep. Impurities can strengthen a material via solid-solution strengthening by obstructing dislocation glide.