Theory
Cubic d-spacing:
$$d_{hkl}= \frac{a}{\sqrt{h^2+k^2+l^2}}$$Bragg's Law:
$$n\lambda = 2d\sin\theta \quad (\lambda_{\text{CuK}\alpha}=1.54\,\text{Å})$$Visualize SC, BCC, FCC, HCP, and NaCl unit cells in isometric view. Calculate d-spacing, Bragg angle, and X-ray powder diffraction patterns from Miller indices (hkl) in real time.
Cubic d-spacing:
$$d_{hkl}= \frac{a}{\sqrt{h^2+k^2+l^2}}$$Bragg's Law:
$$n\lambda = 2d\sin\theta \quad (\lambda_{\text{CuK}\alpha}=1.54\,\text{Å})$$The fundamental geometric relationship for cubic crystals defines the spacing between crystal planes, known as the d-spacing. This is purely based on the crystal's geometry.
$$d_{hkl}= \frac{a}{\sqrt{h^2 + k^2 + l^2}}$$$d_{hkl}$: Interplanar spacing (Å). $a$: Lattice constant (Å). $h, k, l$: Miller indices of the crystal plane (integers).
Bragg's Law connects this geometric spacing to the experimental observation of X-ray diffraction. It is the condition for constructive interference of X-rays scattered from parallel crystal planes.
$$n\lambda = 2d\sin\theta$$$n$: Order of diffraction (usually 1). $\lambda$: X-ray wavelength (1.54 Å for CuKα). $d$: Interplanar spacing. $\theta$: Bragg angle (half of the common 2θ diffraction angle). The equation shows that larger d-spacings diffract at smaller angles.
Material Identification & Phase Analysis: Every crystalline material has a unique "fingerprint" diffraction pattern. By measuring the angles and intensities of diffraction peaks, engineers can identify unknown materials or determine what phases (e.g., austenite vs. ferrite in steel) are present in a sample, which is critical for quality control.
Determining Lattice Parameters & Strain: Precise measurement of peak positions allows calculation of the exact lattice parameter 'a'. Shifts in these peak positions indicate residual stress or strain within the material, a vital consideration for predicting fatigue life and structural integrity in CAE simulations.
Thin Film & Coating Characterization: XRD is used to analyze the crystal structure, orientation (texture), and thickness of thin films used in semiconductors, solar cells, and protective coatings. The simulator's visualization helps understand how oriented grains affect the diffraction pattern.
Input for CAE Material Models: Fundamental properties like elastic modulus, thermal expansion coefficient, and yield strength are anisotropic—they depend on the crystal structure and direction. XRD-derived data feeds into advanced CAE material models to accurately simulate how components behave under load in different orientations.
First, while you might think this tool shows that "Miller indices only represent the orientation of a plane," it's crucial to grasp that they actually determine the interplanar spacing as well. For example, in an FCC structure, the (200) and (100) planes are parallel, right? However, using this tool, you'll see that atoms are packed much more densely in the (200) plane (its interplanar spacing is half) compared to the (100) plane. In X-ray diffraction, (200) appears as a separate peak. Confusing this point can lead to mistakes in indexing peaks.
Next, note that the "Packing Fraction" does not change even if you alter the atomic size. When you move the atomic radius slider in the tool, the atoms may appear to overlap, but the displayed packing fraction value remains unchanged because its formula is based on the theoretical value for "rigid spheres in closest packing." Since the concept of atomic radius itself is ambiguous in real materials, this discussion pertains to an ideal model.
Finally, a pitfall when examining XRD patterns in practical work. The graph from this simulator is for an ideal, perfect crystal. Real materials contain lattice defects, fine crystallites, and residual stress, which cause peak broadening or shifting. For instance, peaks broaden significantly after quenching tool steel due to martensite phase formation. Don't take the tool's sharp peaks at face value.
The "interplanar spacing d" and "Bragg angle θ" calculated by this tool are used as fundamental data in various engineering fields, including CAE.
First, consider Semiconductor Device Engineering. The crystal orientation of silicon wafers directly affects device characteristics. If you use the tool to compare the atomic arrangements of the (100) and (111) planes, you'll see the (111) plane has a higher atomic density (narrower interplanar spacing). This density difference influences etching and oxidation rates, forming the basis for microfabrication process design.
Next is Metal Fatigue and Fracture Analysis. Slip in crystal grains tends to occur on the densest planes with the widest spacing (e.g., {111} planes in FCC). By comparing the spacing of various planes with the tool, you can visualize why deformation progresses on specific planes. When using crystal plasticity models in Finite Element Method (FEM), such crystallographic information is input as material parameters.
Another interesting application is Battery Material Development. In lithium-ion battery cathode materials (e.g., layered rock-salt types), lithium ions move through specific interplanar spaces in the crystal (e.g., between (003) planes). This diffusion path strongly correlates with interplanar spacing, influencing charge/discharge characteristics. Monitoring lattice parameter changes via XRD allows you to track the material's state during charging.
Once you're comfortable with this tool, try delving deeper into "why does a specific peak appear (or disappear)?" at the mathematical level. For instance, why does the diffraction peak for the (100) plane vanish in a BCC structure? You can understand this by revisiting the calculation of the structure factor. In BCC, the phase difference between scattered waves from atoms at the unit cell center and corners results in destructive interference by half a wavelength. Mathematically, the scattering intensity becomes zero when the sum of the Miller indices (h+k+l) is odd. Grasping this principle enables you to derive the peak appearance rules for FCC or NaCl-type structures yourself.
Mathematically, learning the concept of reciprocal space connects everything. The real-space interplanar spacing $$d_{hkl}$$ corresponds to the inverse of the length of the reciprocal space vector $$\vec{g}_{hkl}$$ ($$d = 2\pi / |\vec{g}|$$). In this tool, increasing the lattice constant 'a' makes the real-space unit cell larger, but in reciprocal space, the reciprocal lattice vector becomes shorter, and the interplanar spacing d increases. Understanding this dual relationship makes analyzing patterns like Selected Area Electron Diffraction (SAED) significantly easier.
The recommended next step is to move into the world where "the lattice constant is not constant." Real alloys are solid solutions, so their lattice constants change continuously with composition (Vegard's law). Also, for multi-phase materials, try superimposing two simulation patterns from the tool with different structures and lattice constants to practice interpreting real XRD patterns. This will rapidly boost your practical skills.