🔩 Crystal Lattice Defects — Vacancies, Interstitials & Dislocations
Click to place vacancies, interstitials and impurities in a 2D crystal lattice, or insert an edge dislocation, and watch thermal defects appear spontaneously as temperature rises per n_v/N = exp(-Ev/kT).
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.
About this simulation
This simulator lets you sculpt a 2D crystal lattice by hand: click to knock out a vacancy, wedge in an interstitial, swap in a substitutional impurity, or drop an entire edge dislocation line into the grid. Every defect visibly bends the bonds around it, and with the strain overlay on you can watch that distortion fade from red at the defect core to blue in the undisturbed lattice beyond. Meanwhile, independent of your clicks, the simulation keeps rolling dice for spontaneous thermal vacancy–interstitial pairs at a rate set by the Arrhenius-like formula n_v/N = exp(-Ev/kT) — push the temperature slider up and watch orange-ringed thermal defects flicker into existence on their own.
🔬 What it shows
A live 2D lattice where point defects (vacancies, interstitials, substitutional impurities) and a line defect (edge dislocation) each distort their neighbors in a distinct, color-coded way, alongside a continuously running thermal-defect generator governed by the vacancy formation energy and temperature.
🎮 How to use
Pick a defect type from the dropdown and click the lattice to place it — atoms for vacancy/substitutional, gaps for interstitial, a row for edge dislocation. Drag the temperature and formation-energy sliders to watch the theoretical and actual vacancy fractions in the stats panel respond, and toggle the strain overlay to compare plain versus color-coded views.
💡 Did you know?
No crystal is ever perfectly defect-free above absolute zero: because scattering a handful of vacancies through the lattice increases configurational entropy by more than it costs in formation energy, thermodynamics always favors some small nonzero equilibrium vacancy concentration, even in the most carefully purified materials.
Frequently asked questions
Why does the interstitial push its neighbors outward more than a substitutional impurity does?
An interstitial occupies a gap that was never meant to hold an atom, so it has to squeeze in among four (or more) existing neighbors, straining all of them at once. A substitutional impurity simply takes over an existing site, so it only strains the lattice by however much its size differs from the atom it replaced.
Why is dislocation glide easier than sliding whole crystal planes?
When a dislocation glides, only the atoms right along its narrow core need to break and reform bonds at any instant; the line simply sweeps through the crystal one row at a time. Sliding two entire planes past each other rigidly, by contrast, would require breaking every bond across the whole plane simultaneously, which needs a stress orders of magnitude higher than real metals show.
How is semiconductor doping related to this simulation?
Doping a semiconductor like silicon deliberately introduces substitutional impurities (phosphorus, boron, and similar elements) to donate or accept electrons, precisely engineering the material's electrical conductivity — the same substitutional mechanism you can place with a click here, just used for electronic rather than mechanical purposes.
What is work hardening, and how does it relate to dislocations?
Work hardening (cold working) deforms a metal at low temperature, which generates and tangles enormous numbers of new dislocations. These tangled dislocations block each other's motion, so the metal resists further deformation and becomes harder — but also more brittle, since the very mechanism that enabled ductility has been jammed up.
Why do vacancies matter for diffusion and high-temperature creep?
Atoms move through a solid mainly by hopping into adjacent vacancies, so the rate of diffusion is directly proportional to the equilibrium vacancy concentration. At high temperature, where n_v/N is largest, this vacancy-mediated hopping also drives creep — the slow, permanent deformation of materials held for a long time under stress near their melting point.
How does radiation damage relate to the defects modeled here?
High-energy particles in a nuclear reactor knock atoms clean out of their lattice sites, creating displacement cascades of many vacancy–interstitial (Frenkel) pairs almost instantly — essentially the same pair-creation event this simulator animates thermally, but triggered by radiation instead of temperature, and at far higher density.
Click to place vacancies, interstitials and impurities in a 2D crystal lattice, or insert an edge dislocation, and watch thermal defects appear spontaneously as temperature rises per n_v/N = exp(-Ev/kT).
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install