Why Supercells?
Every DFT calculation we have discussed so far takes advantage of translational symmetry: because a crystal repeats infinitely, we only need to describe one unit cell, and Bloch's theorem handles the rest. But what happens when we want to study something that breaks translational symmetry — a point defect, a dopant atom, a vacancy, or a surface?
The answer is to build a supercell: a larger periodic cell that contains the defect surrounded by enough "bulk-like" material that the defect's periodic images do not interact with each other too strongly. The supercell approach is the cornerstone of defect physics in DFT and the essential first step toward simulating Mn-doped CdSe.
Intuition: Imagine tiling a floor with a single patterned tile. The smallest tile is the unit cell. If you want to place a unique stain on the floor, you need a bigger tile that includes the stain and enough surrounding clean area so the stain pattern doesn't repeat too often. That bigger tile is the supercell.
What Is a Supercell?
A supercell is constructed by repeating the primitive (or conventional) unit cell an integer number of times along each lattice direction. If the original unit cell has lattice vectors , the simplest supercell uses new lattice vectors:
where are positive integers. A supercell doubles the cell along all three directions, producing a cell with times the volume of the original.
Number of Atoms
If the primitive cell contains atoms, then an supercell contains:
For zinc blende CdSe with atoms per primitive cell (or atoms per conventional FCC cell), the total atom count grows rapidly.
Conventional vs. Primitive
For FCC-based structures like zinc blende, the conventional cell has 8 atoms (4 Cd + 4 Se), while the primitive cell has only 2 atoms (1 Cd + 1 Se). Supercells are most commonly built from the conventional cell because the resulting geometry is easier to visualize and manipulate.
Supercell Sizes and Doping Concentration
A critical practical question is: how large must the supercell be? For defect or doping studies, the supercell size directly determines the effective doping concentration, because the periodic boundary conditions replicate the defect in every supercell image.
Consider zinc blende CdSe with a conventional cell of 8 atoms (4 Cd + 4 Se). If we substitute one Cd atom with Mn, the doping concentration is:
| Supercell | Total Atoms | Cd Sites | 1 Mn Replaces 1 Cd | Mn Concentration | Computational Cost |
|---|---|---|---|---|---|
| 1x1x1 | 8 | 4 | 25.0% | Very high | Trivial |
| 2x2x2 | 64 | 32 | 3.125% | Moderate | Low |
| 3x3x3 | 216 | 108 | ~0.93% | Realistic | Moderate |
| 4x4x4 | 512 | 256 | ~0.39% | Dilute | High |
| 5x5x5 | 1000 | 500 | 0.20% | Very dilute | Very high |
Experimental Mn:CdSe dilute magnetic semiconductors typically have Mn concentrations of 1-5%. A supercell gives 3.125%, which is experimentally realistic. A supercell at ~0.93% is closer to the dilute limit. The cell with 512 atoms is at the frontier of standard DFT feasibility.
Computational Scaling
DFT computational cost scales roughly as with the number of atoms (due to diagonalization of the Kohn-Sham Hamiltonian). Doubling the supercell size from 64 to 512 atoms increases cost by a factor of roughly . In practice, clever algorithms and parallelization soften this, but the cost is still substantial.
The Supercell Transformation Matrix
The diagonal construction is the simplest approach, but it is not the most general. In general, a supercell is defined by a integer transformation matrix :
The volume ratio between the supercell and the original cell is given by the determinant:
Diagonal Supercells
For the common case of an supercell, the matrix is diagonal:
and , which equals the volume multiplier as expected.
Non-Diagonal Supercells
Non-diagonal matrices allow tilted supercells that can produce more isotropic shapes. For example, to build a supercell of an FCC lattice that is as close to cubic as possible with minimal atom count, one might use:
This produces a simple cubic supercell from the FCC primitive vectors with , containing 4 times as many atoms as the primitive cell.
Atomic Positions in the Supercell
When building the supercell, every atom in the original cell must be replicated. For each atom at fractional coordinate in the primitive cell, we generate copies at for all integer combinations , , , then convert to the new supercell fractional coordinates by dividing: .
k-Point Reduction in Supercells
One of the most important practical consequences of using a supercell is the relationship between supercell size and k-point sampling. In the primitive cell, we need a dense k-point mesh to sample the Brillouin zone accurately. When we enlarge the cell, the Brillouin zone shrinks by the same factor, and the band structure is "folded" into the smaller zone.
The Folding Relationship
If the primitive cell requires an k-point mesh, then an supercell needs only:
k-points to achieve equivalent sampling of reciprocal space. This means:
| Supercell | Primitive k-mesh | Equivalent Supercell k-mesh |
|---|---|---|
| 1x1x1 | 8x8x8 | 8x8x8 |
| 2x2x2 | 8x8x8 | 4x4x4 |
| 3x3x3 | 9x9x9 | 3x3x3 |
| 4x4x4 | 8x8x8 | 2x2x2 |
| 8x8x8 | 8x8x8 | 1x1x1 (Gamma only) |
For sufficiently large supercells, a single -point calculation can be adequate! This is a major simplification. However, the total computational effort is not reduced — the savings in k-points are exactly offset by the larger Hamiltonian matrix.
Gamma-Point Sampling
For supercells with more than about 100 atoms, many practitioners use only the -point. This simplifies the calculation and often provides sufficient accuracy. However, always test convergence: compare results with a k-mesh to verify that the -point is adequate.
Defect-Defect Interactions and Finite-Size Errors
The fundamental limitation of the supercell approach is that the defect interacts with its own periodic images. These spurious interactions introduce finite-size errors that must be understood and controlled.
Sources of Finite-Size Error
- Elastic interactions: A defect distorts the surrounding lattice. In a finite supercell, these strain fields overlap with neighboring images, leading to artificial energy contributions that decay as where is the supercell linear dimension.
- Electrostatic interactions: Charged defects produce long-range Coulomb fields. The interaction between a charged defect and its periodic images decays slowly as , making charged defect calculations particularly sensitive to supercell size.
- Electronic overlap: Defect states may have wave functions that extend into neighboring supercell images, causing artificial band dispersion of the defect level.
- Dispersion of defect bands: In a finite supercell, what should be a flat defect level in the band gap acquires dispersion due to image interactions, broadening it into a band.
Defect Separation Distance
For an supercell of a cubic crystal with lattice parameter , the nearest-neighbor distance between periodic images of the defect is:
For CdSe with Angstrom:
| Supercell | Image Distance (Angstrom) | Adequacy |
|---|---|---|
| 2x2x2 | 12.15 | Marginal for neutral defects |
| 3x3x3 | 18.23 | Good for neutral defects |
| 4x4x4 | 24.31 | Good for charged defects |
| 5x5x5 | 30.39 | Converged for most cases |
Charged Defect Corrections
For charged defects (like ionized Mn substitutionals), finite-size errors are severe. Correction schemes such as the Makov-Payne correction or the Freysoldt-Neugebauer-Van de Walle (FNV) method are essential. These add energy corrections of the form where is the defect charge, is the Madelung constant, and is the dielectric constant.
Convergence Testing with Supercell Size
Before trusting any supercell result, you must verify that the property of interest is converged with respect to supercell size. The standard approach:
- Choose a target property: defect formation energy, magnetic moment, band gap, relaxed geometry, etc.
- Calculate with increasing supercell sizes: , , (if affordable).
- Extrapolate to infinite size: Plot the property vs. or and extrapolate.
- Apply corrections: Use finite-size correction formulas where available.
Defect Formation Energy
The defect formation energy is the most common quantity to converge. It is defined as:
where and are total energies of the supercell with and without the defect, are the number of atoms added/removed, are chemical potentials, is the charge state, and is the Fermi energy.
Practical Guideline
For Mn:CdSe in the neutral charge state, a supercell (64 atoms) typically gives formation energies within ~0.1 eV of the converged value. A cell (216 atoms) is usually sufficient for publication-quality results of neutral substitutional defects.
VASP Connection: Building Supercells in Practice
Let us put theory into practice. Building a supercell for VASP involves constructing the POSCAR file with the enlarged lattice vectors and replicated atomic positions.
2x2x2 CdSe Zinc Blende POSCAR
Starting from the conventional zinc blende cell with Angstrom, a supercell doubles all lattice vectors and contains 64 atoms (32 Cd + 32 Se):
1CdSe 2x2x2 zinc blende supercell
21.0
3 12.154000 0.000000 0.000000
4 0.000000 12.154000 0.000000
5 0.000000 0.000000 12.154000
6Cd Se
732 32
8Direct
9 0.000 0.000 0.000 ! Cd 1
10 0.000 0.000 0.500 ! Cd 2
11 0.000 0.250 0.250 ! Cd 3
12 0.000 0.250 0.750 ! Cd 4
13 0.000 0.500 0.000 ! Cd 5
14 0.000 0.500 0.500 ! Cd 6
15 0.000 0.750 0.250 ! Cd 7
16 0.000 0.750 0.750 ! Cd 8
17 0.250 0.000 0.250 ! Cd 9
18 0.250 0.000 0.750 ! Cd 10
19 0.250 0.250 0.000 ! Cd 11
20 0.250 0.250 0.500 ! Cd 12
21 0.250 0.500 0.250 ! Cd 13
22 0.250 0.500 0.750 ! Cd 14
23 0.250 0.750 0.000 ! Cd 15
24 0.250 0.750 0.500 ! Cd 16
25 0.500 0.000 0.000 ! Cd 17
26 0.500 0.000 0.500 ! Cd 18
27 0.500 0.250 0.250 ! Cd 19
28 0.500 0.250 0.750 ! Cd 20
29 0.500 0.500 0.000 ! Cd 21
30 0.500 0.500 0.500 ! Cd 22
31 0.500 0.750 0.250 ! Cd 23
32 0.500 0.750 0.750 ! Cd 24
33 0.750 0.000 0.250 ! Cd 25
34 0.750 0.000 0.750 ! Cd 26
35 0.750 0.250 0.000 ! Cd 27
36 0.750 0.250 0.500 ! Cd 28
37 0.750 0.500 0.250 ! Cd 29
38 0.750 0.500 0.750 ! Cd 30
39 0.750 0.750 0.000 ! Cd 31
40 0.750 0.750 0.500 ! Cd 32
41 0.125 0.125 0.125 ! Se 1
42 0.125 0.125 0.625 ! Se 2
43 0.125 0.375 0.375 ! Se 3
44 0.125 0.375 0.875 ! Se 4
45 0.125 0.625 0.125 ! Se 5
46 0.125 0.625 0.625 ! Se 6
47 0.125 0.875 0.375 ! Se 7
48 0.125 0.875 0.875 ! Se 8
49 0.375 0.125 0.375 ! Se 9
50 0.375 0.125 0.875 ! Se 10
51 0.375 0.375 0.125 ! Se 11
52 0.375 0.375 0.625 ! Se 12
53 0.375 0.625 0.375 ! Se 13
54 0.375 0.625 0.875 ! Se 14
55 0.375 0.875 0.125 ! Se 15
56 0.375 0.875 0.625 ! Se 16
57 0.625 0.125 0.125 ! Se 17
58 0.625 0.125 0.625 ! Se 18
59 0.625 0.375 0.375 ! Se 19
60 0.625 0.375 0.875 ! Se 20
61 0.625 0.625 0.125 ! Se 21
62 0.625 0.625 0.625 ! Se 22
63 0.625 0.875 0.375 ! Se 23
64 0.625 0.875 0.875 ! Se 24
65 0.875 0.125 0.375 ! Se 25
66 0.875 0.125 0.875 ! Se 26
67 0.875 0.375 0.125 ! Se 27
68 0.875 0.375 0.625 ! Se 28
69 0.875 0.625 0.375 ! Se 29
70 0.875 0.625 0.875 ! Se 30
71 0.875 0.875 0.125 ! Se 31
72 0.875 0.875 0.625 ! Se 32To introduce one Mn dopant, simply replace the species label for one Cd atom. For example, change Cd 1 at (0, 0, 0) to Mn, and update the atom counts in the POSCAR header to Cd Mn Se with 31 1 32.
KPOINTS for Supercell Calculations
For the supercell, a reduced k-mesh is appropriate:
1Automatic mesh
20
3Gamma
4 4 4 4
5 0 0 0For the larger supercell (216 atoms), Gamma-point sampling is often sufficient:
1Gamma-point only
20
3Gamma
4 1 1 1
5 0 0 0ENCUT Considerations
The plane-wave cutoff energy (ENCUT) does not change with supercell size — it depends only on the elements present. A typical INCAR setting for CdSe:
1ENCUT = 400 ! Plane-wave cutoff in eV
2PREC = Accurate
3EDIFF = 1E-6 ! Energy convergence criterion
4ISMEAR = 0 ! Gaussian smearing
5SIGMA = 0.05 ! Small smearing width
6ISPIN = 2 ! Spin-polarized (needed for Mn)
7LORBIT = 11 ! Projected DOSMemory and Parallelization
A 64-atom supercell with spin polarization requires roughly 4-8 GB of RAM. A 216-atom cell can require 32-64 GB. Always check your VASP OUTCAR for the "maximum memory used" line and ensure your computational resources are adequate. Use NCORE and KPAR tags to parallelize efficiently:
1NCORE = 4 ! Cores per orbital band
2KPAR = 2 ! k-point parallelizationSummary
Supercells are the essential bridge between perfect crystal calculations and the real-world physics of defects, dopants, and disorder.
Key Takeaways
- Supercell construction: Repeat the unit cell times using a transformation matrix . The volume scales as .
- Doping concentration: Directly determined by supercell size. For Mn:CdSe, a cell gives 3.125% Mn, matching typical experimental concentrations.
- k-point folding: Larger supercells need fewer k-points. Very large supercells can use only the -point.
- Finite-size errors: Defect-image interactions (elastic, electrostatic, electronic) introduce systematic errors that must be tested and corrected.
- Convergence testing: Always compute your target property at multiple supercell sizes and extrapolate to the infinite-size limit.
- VASP practice: The POSCAR lattice vectors scale with the supercell, KPOINTS reduces, but ENCUT stays the same. Mind memory requirements for large cells.
Coming Next: In the final section of this chapter, Common Crystal Structures, we survey the most important crystal structures encountered in materials science — diamond, zinc blende, wurtzite, rock salt, and perovskite — and connect them directly to our Mn:CdSe project.