Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

0. Units, crystal densities and the element table

School of Engineering, Nazarbayev University

Materials science bridges twelve orders of magnitude, from X-ray lattice spacings measured in Ångströms (1 A˚=10−10 m1\ \mathrm{\AA} = 10^{-10}\ \mathrm{m}) and bond energies in electron-volts (1 eV≈1.602×10−19 J1\ \mathrm{eV} \approx 1.602\times 10^{-19}\ \mathrm{J}) to continuum structural densities in g/cm3\mathrm{g/cm^3} and elastic moduli in GPa\mathrm{GPa}. A single misplaced power-of-ten when converting A˚3\mathrm{\AA^3} to cm3\mathrm{cm^3} (10-24) versus m3\mathrm{m^3} (10-30) corrupts predicted alloy densities by a factor of a million. In this opening lecture, we establish strict atomic-to-continuum unit discipline, audit the 14-element crystallographic benchmark database constants.ELEMENTS_DB, and predict macroscopic X-ray crystal densities directly from unit-cell geometry.

Learning objectives

  1. Convert between atomic and continuum units (A˚3→cm3\mathrm{\AA^3 \to cm^3}, eV/atom→kJ/mol\mathrm{eV/atom \to kJ/mol}, and R=kBNAR = k_B N_A) with explicit unit-suffixed Python variables.

  2. Query and classify all 14 crystalline elements in constants.ELEMENTS_DB across FCC, BCC, Diamond, and HCP crystal classes.

  3. Compute theoretical X-ray crystal densities and molar volumes using lattices.theoretical_density_g_cm3 and lattices.element_crystal_summary.

  4. Visualize periodic trends of crystal density ρ\rho and molar volume VmV_m versus atomic number ZZ, and quantify thermal-expansion sensitivity.

Time: about 60 min

1. Principles and governing equations

1.1 Atomic-to-Continuum Unit Conversions

Crystallographic unit cells are naturally measured in Ångströms (1 A˚=10−10 m=10−8 cm1\ \mathrm{\AA} = 10^{-10}\ \mathrm{m} = 10^{-8}\ \mathrm{cm}), while atomistic defect and cohesive energies are reported in electron-volts (eV\mathrm{eV}). Bridging to macroscopic continuum thermodynamics requires three identities between constants whose values are fixed by the 2019 definition of the SI:

1 A˚3=(10−8 cm)3=10−24 cm3=10−30 m3(1.1)1\ \mathrm{\AA^3} = \left(10^{-8}\ \mathrm{cm}\right)^3 = 10^{-24}\ \mathrm{cm^3} = 10^{-30}\ \mathrm{m^3} \tag{1.1}
1 eV/atom=eNA=(1.602176634×10−19 J)(6.02214076×1023 mol−1)=96 485.3321 J/mol(1.2)1\ \mathrm{eV/atom} = e N_A = \left(1.602176634\times 10^{-19}\ \mathrm{J}\right)\left(6.02214076\times 10^{23}\ \mathrm{mol^{-1}}\right) = 96\,485.3321\ \mathrm{J/mol} \tag{1.2}
R=kBNA=(1.380649×10−23 J/K)(6.02214076×1023 mol−1)=8.314462618 J/(mol⋅K)(1.3)R = k_B N_A = \left(1.380649\times 10^{-23}\ \mathrm{J/K}\right)\left(6.02214076\times 10^{23}\ \mathrm{mol^{-1}}\right) = 8.314462618\ \mathrm{J/(mol\cdot K)} \tag{1.3}

1.2 Theoretical X-Ray Crystal Density & Molar Volume

Given a crystal unit cell of volume Vcell [A˚3]V_{\mathrm{cell}}\ [\mathrm{\AA^3}] containing ncelln_{\mathrm{cell}} basis atoms of molar mass Mw [g/mol]M_w\ [\mathrm{g/mol}], the theoretical X-ray density ρ [g/cm3]\rho\ [\mathrm{g/cm^3}] and molar volume Vm [cm3/mol]V_m\ [\mathrm{cm^3/mol}] are:

ρ=ncellMwNA Vcell×10−24[g/cm3],Vm=Mwρ=NA Vcell×10−24ncell[cm3/mol](1.4)\rho = \frac{n_{\mathrm{cell}} M_w}{N_A \, V_{\mathrm{cell}} \times 10^{-24}} \quad [\mathrm{g/cm^3}], \qquad V_m = \frac{M_w}{\rho} = \frac{N_A \, V_{\mathrm{cell}} \times 10^{-24}}{n_{\mathrm{cell}}} \quad [\mathrm{cm^3/mol}] \tag{1.4}

Demonstration 1: CODATA Unit Bridges & Theoretical Crystal Density Benchmarks
=============================================================================
1 eV/atom = 96.485332 kJ/mol  |  k_B * N_A = 8.314462618 J/(mol*K) vs R = 8.314462618

Elem | Struct   | n_cell | V_cell [A^3] | rho [g/cm^3] | Vm [cm^3/mol]
----------------------------------------------------------------------
Cu   | fcc      |      4 |      47.2377 |       8.9353 |        7.1118
Fe   | bcc      |      2 |      23.5535 |       7.8742 |        7.0921
Si   | diamond  |      8 |     160.1826 |       2.3292 |       12.0580
Ti   | hcp      |      2 |      35.3318 |       4.4993 |       10.6387

What Demonstration 1 shows. Converting 1 eV/atom1\ \mathrm{eV/atom} yields 96.485 kJ/mol96.485\ \mathrm{kJ/mol} (about 38.7 RT38.7\,RT at 300 K300\ \mathrm{K}, which is why a vacancy formation energy near 1 eV1\ \mathrm{eV} keeps the equilibrium vacancy fraction very small at room temperature). From lattice constants alone, Equation (1.4) predicts ρCu=8.935 g/cm3\rho_{\mathrm{Cu}} = 8.935\ \mathrm{g/cm^3}, ρFe=7.874 g/cm3\rho_{\mathrm{Fe}} = 7.874\ \mathrm{g/cm^3}, ρSi=2.329 g/cm3\rho_{\mathrm{Si}} = 2.329\ \mathrm{g/cm^3}, and ρTi=4.499 g/cm3\rho_{\mathrm{Ti}} = 4.499\ \mathrm{g/cm^3}. These follow from the lattice constants and molar masses stored in ELEMENTS_DB alone; measured densities of real samples differ slightly because of vacancies, impurities and porosity.


2. Auditing ELEMENTS_DB & element_crystal_summary

constants.ELEMENTS_DB curates 14 benchmark crystalline elements spanning four Bravais/basis crystal classes:

  • FCC (ncell=4n_{\mathrm{cell}} = 4, Z1=12Z_1 = 12): Cu, Al, Ni, Au, Ag

  • BCC (ncell=2n_{\mathrm{cell}} = 2, Z1=8Z_1 = 8): Fe, W, Mo, Cr

  • Diamond cubic (ncell=8n_{\mathrm{cell}} = 8, Z1=4Z_1 = 4): Si, Ge, C-diamond

  • HCP (ncell=2n_{\mathrm{cell}} = 2, Z1∈{6,12}Z_1 \in \{6, 12\}): Ti, Mg

Calling lattices.element_crystal_summary(symbol) builds the unit cell, evaluates its metric-tensor volume VcellV_{\mathrm{cell}}, finds the nearest-neighbor bond distance dnnd_{\mathrm{nn}}, and computes ρ\rho and ideal hard-sphere packing fraction.


Demonstration 2: Complete 14-Element Crystallographic Audit of ELEMENTS_DB
==========================================================================
Sym       |   Z | Struct  |  n | V_cell [A^3] | d_nn [A] |  Z1 |   APF* | rho [g/cm^3]
----------------------------------------------------------------------------------
Cu        |  29 | fcc     |  4 |      47.2377 |   2.5561 |  12 | 0.7405 |       8.9353
Al        |  13 | fcc     |  4 |      66.4055 |   2.8634 |  12 | 0.7405 |       2.6988
Ni        |  28 | fcc     |  4 |      43.7631 |   2.4918 |  12 | 0.7405 |       8.9082
Au        |  79 | fcc     |  4 |      67.8275 |   2.8837 |  12 | 0.7405 |      19.2884
Ag        |  47 | fcc     |  4 |      68.1823 |   2.8887 |  12 | 0.7405 |      10.5083
Fe        |  26 | bcc     |  2 |      23.5535 |   2.4825 |   8 | 0.6802 |       7.8742
W         |  74 | bcc     |  2 |      31.7105 |   2.7411 |   8 | 0.6802 |      19.2538
Mo        |  42 | bcc     |  2 |      31.1667 |   2.7254 |   8 | 0.6802 |      10.2243
Cr        |  24 | bcc     |  2 |      24.6422 |   2.5201 |   8 | 0.6802 |       7.0076
Si        |  14 | diamond |  8 |     160.1826 |   2.3516 |   4 | 0.3401 |       2.3292
Ge        |  32 | diamond |  8 |     181.1197 |   2.4499 |   4 | 0.3401 |       5.3271
C-diamond |   6 | diamond |  8 |      45.3771 |   1.5445 |   4 | 0.3401 |       3.5163
Ti        |  22 | hcp     |  2 |      35.3318 |   2.8967 |   6 | 0.7405 |       4.4993
Mg        |  12 | hcp     |  2 |      46.4818 |   3.1971 |   6 | 0.7405 |       1.7366

Element counts by crystal class: {'fcc': 5, 'bcc': 4, 'diamond': 3, 'hcp': 2}

What Demonstration 2 shows. Tungsten (W, BCC, Z=74Z=74, ρ=19.25 g/cm3\rho = 19.25\ \mathrm{g/cm^3}) and gold (Au, FCC, Z=79Z=79, ρ=19.29 g/cm3\rho = 19.29\ \mathrm{g/cm^3}) have nearly the same density: gold packs spheres more densely (APF=0.7405\mathrm{APF} = 0.7405 vs. 0.6802) and has slightly higher MwM_w, whereas tungsten compensates with a shorter metallic bond (dnn=2.741 A˚d_{\mathrm{nn}} = 2.741\ \mathrm{\AA} vs. 2.884 A˚2.884\ \mathrm{\AA}). Also, non-ideal HCP Ti and Mg show Z1=6Z_1 = 6 in element_crystal_summary because c/a<8/3c/a < \sqrt{8/3} slightly splits their 12 ideal neighbors into 6 closer out-of-plane bonds and 6 basal bonds, which Lecture 1 examines. The column APF* is the packing fraction of the ideal structure (ideal c/ac/a for HCP), not of the real cell.


3. Molar Volume Scaling & Density vs. Atomic Number ZZ

While mass density ρ=Mw/Vm\rho = M_w / V_m generally rises with atomic number ZZ due to heavier nuclei, the molar volume Vm=NAΩV_m = N_A \Omega (where Ω=Vcell/ncell\Omega = V_{\mathrm{cell}} / n_{\mathrm{cell}} is the per-atom volume) reflects directional bonding and valence-shell contraction (Lothar Meyer’s atomic-volume curve). We plot both ρ(Z)\rho(Z) and Vm(Z)V_m(Z) across all 14 elements.


Demonstration 3: Visualizing Crystal Density and Molar Volume vs Atomic Number Z
================================================================================
<Figure size 1210x473 with 2 Axes>
C-diamond Vm = 3.4158 cm^3/mol (rho = 3.5163 g/cm^3) vs Si Vm = 12.0580 cm^3/mol

Figure 0.1. The 14 elements of ELEMENTS_DB. (a) Density computed from the unit cell against atomic number. (b) Molar volume against atomic number. The symbols mark the crystal structure.

What Demonstration 3 shows. Despite sharing the open tetrahedral diamond structure (APF=0.3401\mathrm{APF} = 0.3401), C-diamond exhibits the smallest molar volume in the entire database (Vm=3.416 cm3/molV_m = 3.416\ \mathrm{cm^3/mol}, Ω=5.67 A˚3/atom\Omega = 5.67\ \mathrm{\AA^3/atom}) due to short 1.544 A˚1.544\ \mathrm{\AA} sp3sp^3 covalent bonds, giving ρ=3.516 g/cm3\rho = 3.516\ \mathrm{g/cm^3}, over 50%50\% denser than Si (2.329 g/cm32.329\ \mathrm{g/cm^3}) even though silicon atoms are 2.34×2.34\times heavier.


4. Sensitivity to the parameters

How sensitive is X-ray crystal density to isotropic thermal expansion a(T)=a0(1+αLΔT)a(T) = a_0 (1 + \alpha_L \Delta T) when heating copper (assumed constant αL=16.5×10−6 K−1\alpha_L = 16.5\times 10^{-6}\ \mathrm{K^{-1}}) from 298 K298\ \mathrm{K} to 1298 K1298\ \mathrm{K} (ΔT=1000 K\Delta T = 1000\ \mathrm{K})? We compare exact cubic volume dilation ρ(T)=ρ0(1+αLΔT)−3\rho(T) = \rho_0 (1 + \alpha_L \Delta T)^{-3} against the linearized continuum approximation ρlin(T)=ρ0(1−3αLΔT)\rho_{\mathrm{lin}}(T) = \rho_0 (1 - 3\alpha_L \Delta T), and verify defensive input guards.


Demonstration 4: Thermal Expansion Sensitivity of Cu Density & Defensive Guards
===============================================================================
  dT [K] |   a(T) [A] | rho_exact [g/cm^3] | rho_linear [g/cm^3] |  Drop [%]
----------------------------------------------------------------------------
     0.0 |    3.61490 |            8.93529 |             8.93529 |     0.000
   250.0 |    3.62981 |            8.82562 |             8.82471 |     1.227
   500.0 |    3.64472 |            8.71774 |             8.71414 |     2.435
   750.0 |    3.65963 |            8.61161 |             8.60356 |     3.622
  1000.0 |    3.67455 |            8.50719 |             8.49299 |     4.791
<Figure size 1056x418 with 2 Axes>

Figure 0.2. Density of copper against temperature rise for an assumed constant expansion coefficient. (a) The cubic law and its linearization. (b) Their difference, which grows as ΔT2\Delta T^2.

Inside the algorithm

Heating copper by ΔT=1000 K\Delta T = 1000\ \mathrm{K} expands aa by 1.65%1.65\% and lowers its theoretical density by 4.79%4.79\% (8.935→8.507 g/cm38.935 \to 8.507\ \mathrm{g/cm^3}), with the linearized 3αLΔT3\alpha_L\Delta T rule agreeing within 0.014 g/cm30.014\ \mathrm{g/cm^3}. Below we inspect lattices.theoretical_density_g_cm3 and verify a NumPy implementation across all 14 elements in ELEMENTS_DB.

Check against the library


Inside the Algorithm: NumPy vs lattices.theoretical_density_g_cm3
=================================================================
def theoretical_density_g_cm3(Mw: float, n_atoms: int, volume_A3: float) -> float:
    """Compute theoretical crystal density [g/cm^3] from molar mass Mw [g/mol], cell atoms, and cell volume [A^3]."""
    if volume_A3 <= 0.0 or Mw <= 0.0 or n_atoms <= 0:
        raise ValueError("Mw, n_atoms, and volume_A3 must be strictly positive.")
    volume_cm3 = float(volume_A3) * 1.0e-24
    return float((n_atoms * Mw) / (N_A * volume_cm3))

Max discrepancy across all 14 ELEMENTS_DB entries = 3.55e-15 g/cm^3

Exercises

Worked solutions are in 00_solutions.ipynb. The cell below the list is a short self-check to start from.

  1. Verify a result. For all 14 elements in constants.ELEMENTS_DB, compute Ω=Vcell/ncell [A˚3/atom]\Omega = V_{\mathrm{cell}} / n_{\mathrm{cell}}\ [\mathrm{\AA^3/atom}] and verify Mw/ρ=NAΩ×10−24 [cm3/mol]M_w / \rho = N_A \Omega \times 10^{-24}\ [\mathrm{cm^3/mol}] to rounding error, identifying the minimum and maximum Ω\Omega elements.

  2. Find how it fails. Quantify on FCC Cu the exact error factors from (a) converting A˚3\mathrm{\AA^3} with 10-30 instead of 10−24 cm3/A˚310^{-24}\ \mathrm{cm^3/\AA^3} and (b) passing ncell=1n_{\mathrm{cell}} = 1 with conventional volume a3a^3, and verify ValueError guards on invalid inputs to lattices.theoretical_density_g_cm3.

  3. Implement it yourself. Implement allotropic_density_shift(symbol, target_structure) assuming constant nearest-neighbor bond length dnnd_{\mathrm{nn}}, and verify on Fe (bcc →\to fcc) that volume contracts by 1−APFBCC/APFFCC≈8.144%1 - \mathrm{APF}_{\mathrm{BCC}}/\mathrm{APF}_{\mathrm{FCC}} \approx 8.144\%.


Self-check for the exercises
============================
Smallest atomic volume: C-diamond (5.672 A^3/atom) | Largest: Mg (23.241 A^3/atom)
All checks passed.