Crystal Structure Simulator Back
Materials Science Simulator

Crystal Structure Simulator — SC / BCC / FCC / HCP / Diamond

Visualize unit cells and calculate packing fraction, coordination number and lattice constant for five crystal structures. Enter Miller indices to find interplanar spacing and Bragg diffraction angle.

Select Structure
Atomic radius r (Å) 1.28
Results
Lattice const. a (Å)
Atoms / unit cell Z
Packing fraction (%)
Coordination no.
Bragg Condition (Cubic)
hkl:
X-ray wavelength λ (Å) 1.54
Calculating...

Bragg's Law

$$2d\sin\theta = n\lambda$$

Cubic interplanar spacing: $d_{hkl}= a/\sqrt{h^2+k^2+l^2}$

What is Crystal Structure & X-ray Diffraction?

🧑‍🎓
What exactly is a "packing fraction" that the simulator calculates? And why is it different for each structure?
🎓
Basically, it's the fraction of space inside the unit cell that's actually occupied by atoms. Think of it as how efficiently the atoms are stacked. In the simulator, when you change the atomic radius slider, you'll see the spheres grow or shrink, but the cell size adjusts to keep the atoms touching, which directly changes the calculated fraction.
🧑‍🎓
Wait, really? So the FCC structure is the most "efficient" at 74%? What's happening in the voids of a BCC structure that makes it less packed?
🎓
Exactly. In practice, FCC and HCP are the two closest-packed arrangements. In BCC, the central atom is surrounded by 8 neighbors, but the geometry creates larger empty spaces along the cube diagonals. Try switching between FCC and BCC in the simulator—you can visually see the tighter packing in FCC compared to the more open center in BCC.
🧑‍🎓
Okay, and the "hkl" and "d-spacing" part? How does that connect to the 3D model I'm looking at?
🎓
Great question. The Miller indices (hkl) describe a specific set of parallel planes cutting through the crystal lattice. The d-spacing is the distance between those planes. For instance, enter (1 1 0) for an FCC crystal. The simulator will highlight those planes and calculate the spacing. This is crucial for X-ray diffraction, which uses Bragg's Law to probe the crystal.

Physical Model & Key Equations

The packing fraction (or atomic packing factor) is the volume occupied by atoms in a unit cell divided by the total volume of the unit cell. For a structure with `n` atoms per cell, each of radius `r`:

$$APF = \frac{n \cdot \frac{4}{3}\pi r^3}{a^3}$$

Where `a` is the lattice constant. The relationship between `a` and `r` depends on the structure (e.g., in FCC, atoms touch along the face diagonal, so $a = 2\sqrt{2}r$).

To determine crystal structure experimentally, X-ray diffraction is used. Constructive interference occurs only when Bragg's Law is satisfied, linking the wavelength, plane spacing, and diffraction angle.

$$2d_{hkl}\sin\theta = n\lambda$$

For cubic crystals, the interplanar spacing `d` for planes (hkl) is calculated from the lattice constant `a`. This is the formula the simulator uses when you input hkl indices.

$$d_{hkl}= \frac{a}{\sqrt{h^2 + k^2 + l^2}}$$

Real-World Applications

Metallurgy & Material Selection: The packing fraction directly influences material properties. FCC metals like copper and aluminum are generally more ductile, which is desirable for forming wires and sheets. BCC metals like tungsten and room-temperature iron are often stronger but less ductile.

X-ray Crystallography: This is the primary method for determining the atomic structure of new materials. By measuring the angles (`θ`) where diffraction peaks occur (satisfying Bragg's Law), scientists can work backwards to find the `d`-spacings and ultimately solve the entire crystal structure.

Semiconductor Manufacturing: The diamond cubic structure, with its relatively low packing fraction of ~34%, is the crystal structure of silicon and germanium. The specific arrangement of atoms and the resulting voids are critical for how electrons move, forming the basis of all computer chips.

Alloy Design: Understanding where voids are in a crystal structure (like the octahedral and tetrahedral sites in FCC) is key for designing alloys. For instance, carbon atoms in steel fit into the interstitial sites of iron's BCC lattice, dramatically strengthening the material.

Common Misunderstandings and Points to Note

First, regarding the relationship between "atomic radius r" and "lattice constant a" when using this tool. When you adjust r in the simulator, a changes accordingly. However, this calculation assumes an ideal state where atoms are rigid spheres and are in close contact without gaps. In real materials, this relationship breaks down depending on the nature of the atomic bonding (metallic, covalent, etc.). For example, the "atomic radius" back-calculated from the actual lattice constant of iron (BCC) does not perfectly match the value obtained from this geometric formula $a = 4r / \sqrt{3}$. Keep in mind that the tool is an "ideal model" for understanding the basic principles.

Next, regarding the angle displayed as the "diffraction angle θ" in the Bragg condition calculation. This is the angle between the incident X-ray and the crystal planes (the Bragg angle). A common misunderstanding is confusing this with the "detector position (2θ)". In an actual X-ray diffractometer, the incident angle relative to the sample is θ, and the detector moves to a position of 2θ for measurement. If you set λ=0.154 nm (CuKα radiation), FCC a=0.3615 nm (Al), and hkl=(111) in the tool, it calculates θ≈19.3°. However, in an experimental protocol, you would set this angle as the sample tilt angle and search for the peak with the detector at approximately 38.6°.

Finally, the reason why the "packing fraction" of HCP (hexagonal close-packed structure) is nearly the same as that of FCC, at about 74%. Looking at the 3D models, the atomic arrangements seem completely different, right? The key point to understand here is that the state of "close packing" inherently has the same spatial packing efficiency. The only difference is the stacking sequence: FCC is ABCABC..., while HCP is ABAB... Global properties like packing fraction and coordination number (both 12) remain the same. Try rotating both structures in the tool and observe how the close-packed planes (the {111} planes for FCC, the basal plane for HCP) are connected; you'll get a tangible sense of this "difference in stacking".

Related Engineering Fields

The calculations handled by this tool are directly connected to the gateway of "multiscale simulation" within CAE. Information about the atomic-level crystal structure (nanoscale) forms the foundational data that determines material behavior at the higher mesoscale (aggregates of crystal grains) and macroscale (the entire component). For instance, in molecular dynamics (MD) simulation, the FCC or BCC structures you learn here are set as the initial atomic configuration to calculate processes like deformation and fracture. The interplanar spacing $d_{hkl}$ you confirm with the tool is also related to the reference length used when setting up the potential functions in MD.

Another major application is residual stress measurement. The peak positions obtained from X-ray diffraction shift if the crystal lattice itself expands or contracts. This principle allows for the non-destructive evaluation of stress remaining inside components, such as weldments or surface-treated parts. Try slightly increasing or decreasing the "lattice constant a" in the tool. For example, you can calculate that increasing a by just 0.5% from 0.360 nm to 0.362 nm causes a clear shift in the diffraction angle θ, right? This is precisely the "measurement of lattice strain" at the core of actual stress measurement technology.

Furthermore, this knowledge is also vital in additive manufacturing (3D printing). In processes where metal powder is melted and solidified by a laser, rapid cooling produces a fine crystalline microstructure. Whether the resulting phase is FCC, BCC, or a non-equilibrium phase determines the mechanical properties of the product. Applying X-ray diffraction to post-manufacture components to identify the crystal phase and optimize process conditions absolutely requires knowledge of Bragg's law and crystal structures.

For Further Learning

Once you're comfortable with this tool, as a next step, try incorporating the concept of "reciprocal lattice space". Consider the reciprocal of the interplanar spacing $d_{hkl}$ calculated by the tool, $1/d_{hkl}$. This actually becomes the distance to a point (a reciprocal lattice point) in reciprocal space. An X-ray diffraction pattern can be interpreted as a mapping of this reciprocal space. Gaining this perspective transforms the diffraction condition from a mere angle calculation into a geometric and intuitive operation. A good starting exercise is to reinterpret the cubic crystal formula $1/d_{hkl} = \sqrt{h^2+k^2+l^2} / a$ as a relationship between the real-space lattice constant a and reciprocal space.

Mathematically, a foundation in vectors and linear algebra is helpful. The Miller indices (hkl) of a crystal plane are deeply related to the component representation of the normal vector perpendicular to that plane. Also, understanding why the "i" in the 4-index notation (hkil) for HCP structures becomes $i = -(h+k)$ requires an understanding of the basis vectors in the hexagonal system. Try displaying the HCP structure in the tool and thinking about the axes of the hexagonal basal plane (a1, a2) and their sum direction; you should start to see this symmetry.

As a next topic closer to practical work, I recommend focusing on "diffraction peak width". The tool calculates only the sharp diffraction conditions for a perfect single crystal, but in real materials, peaks broaden if the crystal grains are small (microcrystals) or if there is lattice strain. Analysis of this broadening (using the Scherrer equation or Williamson-Hall plots) is widely used to quantitatively evaluate a material's microstructure. First, try comparing schematic diagrams of diffraction profiles from perfect and imperfect crystals; it will deepen your understanding.