In Lecture 6, we observed that real cubic metals violate strongly ( in Cu, in Au), whereas diamond-cubic semiconductors have . Yet in classical 19th-century elasticity, Augustin-Louis Cauchy proved from an atomic lattice model that every cubic crystal must obey . Who was right, and what hidden assumption did Cauchy make? In this lecture we build crystals from the bottom up using Lennard-Jones, Morse, and -smooth shifted-force pair potentials (atomistics), find zero-pressure equilibrium structures (FCC vs. BCC vs. SC), and evaluate Cauchy–Born lattice sums (cauchy_born_elastic_constants_lj_cubic) to show that central pair forces enforce identically while real metallic electron gases break it.
Learning objectives¶
Evaluate energy , restoring force , and bond stiffness for Lennard-Jones (
lennard_jones_potential), Morse (morse_potential), and -continuousshifted_force_ljpotentials.Apply orthorhombic periodic boundary conditions (
minimum_image_displacement) and compute multi-shell crystal cohesion (cubic_lattice_cohesive_energy_lj) and zero-pressure lattice constants (equilibrium_lattice_constant_lj).Compare static thermodynamic stability and bulk moduli across
FCC,BCC, andSCBravais lattices under long-range dispersion interactions.Compute Cauchy–Born elastic constants (
cauchy_born_elastic_constants_lj_cubic) and show the exact Cauchy identity for centrosymmetric pair potentials vs. real metallic electron-gas violation.
Time: about 60 min
try: # use the installed package, or the copy in this repository
import engmaterials
except ImportError:
import pathlib, subprocess, sys
for _root in [pathlib.Path.cwd(), *pathlib.Path.cwd().parents]:
if (_root / "engmaterials" / "__init__.py").exists():
sys.path.insert(0, str(_root))
break
else: # on Google Colab: install from GitHub
subprocess.run([sys.executable, "-m", "pip", "install", "-q",
"git+https://github.com/ktwyw/engmaterials.git"], check=True)
import engmaterials
import inspect
import numpy as np
import matplotlib.pyplot as plt
from engmaterials import (atomistics, constants, diffraction, elasticity, kinetics_selection,
lattices, phase_field, phase_thermodynamics)
from engmaterials.plotting import label_panels, panel_label, use_style
use_style()
def show_source(obj):
"""Return the source code of a library function or class."""
return inspect.getsource(obj)
def heading(text):
print(f"\n{text}\n" + "=" * len(text))1. Interatomic Pair Potentials & Smooth Cutoff Truncation¶
For noble-gas solids (Ne, Ar, Kr, Xe) and coarse-grained non-polar beads, Pauli core repulsion () and London induced-dipole dispersion () combine into the 12-6 Lennard-Jones (LJ) potential (atomistics.lennard_jones_potential):
Setting gives the equilibrium dimer bond length, well depth, and harmonic spring constant:
Covalent/metallic anharmonicity with tunable range parameter is modeled by the Morse potential (atomistics.morse_potential), , whose curvature at is .
In molecular dynamics, abruptly truncating at leaves a finite force jump that causes energy drift whenever pairs cross . The -continuous shifted-force LJ potential (atomistics.shifted_force_lj) subtracts a linear ramp so both energy and force vanish smoothly at :
heading("Demonstration 1: Lennard-Jones Exact Stationary Point, Harmonic-Matched Morse & C^1 Shifted-Force LJ")
r_min = 2.0 ** (1.0 / 6.0)
k_harm_exact = 72.0 / (2.0 ** (1.0 / 3.0))
lj_eq = atomistics.lennard_jones_potential(r_min, epsilon=1.0, sigma=1.0)
alpha_match = np.sqrt(k_harm_exact / 2.0)
morse_eq = atomistics.morse_potential(r_min, D_e=1.0, alpha=alpha_match, r_0=r_min)
sf_at_cut = atomistics.shifted_force_lj(2.5 - 1e-12, epsilon=1.0, sigma=1.0, r_cut=2.5)
print(f"LJ at r_min = {r_min:.6f} sigma : V = {lj_eq['energy']:.6f}, F = {lj_eq['force']:.2e}, d2V/dr2 = {lj_eq['d2V_dr2']:.6f}")
print(f"Matched Morse (alpha={alpha_match:.4f}): V = {morse_eq['energy']:.6f}, F = {morse_eq['force']:.2e}, d2V/dr2 = {morse_eq['d2V_dr2']:.6f}")
print(f"Shifted-Force LJ at r_cut^- : V_SF = {sf_at_cut['energy']:.2e}, F_SF = {sf_at_cut['force']:.2e}")
assert np.isclose(lj_eq["energy"], -1.0, atol=1e-15) and np.isclose(lj_eq["force"], 0.0, atol=1e-14)
assert np.isclose(lj_eq["d2V_dr2"], k_harm_exact, rtol=1e-14)
assert np.isclose(morse_eq["d2V_dr2"], k_harm_exact, rtol=1e-14)
assert abs(sf_at_cut["energy"]) < 1e-11 and abs(sf_at_cut["force"]) < 1e-10
r_grid = np.linspace(0.96, 2.75, 300)
lj_c = atomistics.lennard_jones_potential(r_grid)
sf_c = atomistics.shifted_force_lj(r_grid, r_cut=2.5)
mo_c = atomistics.morse_potential(r_grid, D_e=1.0, alpha=alpha_match, r_0=r_min)
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(9.2, 3.8))
ax1.plot(r_grid, lj_c["energy"], lw=2.0, label="Raw 12-6 LJ")
ax1.plot(r_grid, sf_c["energy"], "--", lw=1.8, label=r"Shifted-Force LJ ($r_c = 2.5\sigma$)")
ax1.plot(r_grid, mo_c["energy"], ":", lw=1.8, label="Curvature-Matched Morse")
ax1.set_ylim(-1.15, 0.8)
ax1.set_xlabel(r"Reduced Separation $r / \sigma$ [-]")
ax1.set_ylabel(r"Pair Energy $V(r) / \varepsilon$ [-]")
ax1.set_title("Pair Potential Energy Curves")
ax1.legend(fontsize=8)
ax2.plot(r_grid, lj_c["force"], lw=2.0, label="Raw LJ Force")
ax2.plot(r_grid, sf_c["force"], "--", lw=1.8, label=r"$C^1$ Shifted-Force ($F \to 0$ at $2.5\sigma$)")
ax2.axvline(2.5, color="gray", ls=":", lw=1.2)
ax2.set_ylim(-3.0, 2.0)
ax2.set_xlabel(r"Reduced Separation $r / \sigma$ [-]")
ax2.set_ylabel(r"Pair Force $F(r)\,\sigma / \varepsilon$ [-]")
ax2.set_title("Smooth Force Cutoff at $r_c = 2.5\\sigma$")
ax2.legend(fontsize=8)
label_panels(fig)
plt.show()
Demonstration 1: Lennard-Jones Exact Stationary Point, Harmonic-Matched Morse & C^1 Shifted-Force LJ
====================================================================================================
LJ at r_min = 1.122462 sigma : V = -1.000000, F = -2.37e-15, d2V/dr2 = 57.146438
Matched Morse (alpha=5.3454): V = -1.000000, F = 0.00e+00, d2V/dr2 = 57.146438
Shifted-Force LJ at r_cut^- : V_SF = 9.83e-18, F_SF = -1.08e-13

Figure 7.1. (a) The Lennard-Jones potential, its shifted-force form with cutoff and a Morse potential with the same minimum and curvature. (b) The Lennard-Jones force with and without the shift.
What Demonstration 1 shows. At , both LJ and curvature-matched Morse share the exact minimum and spring stiffness , but LJ rises far more steeply at short range ( vs. ). Meanwhile, shifted_force_lj brings both and smoothly to zero at .
2. Periodic Minimum-Image Convention & Multi-Shell Lattice Statics (FCC vs. BCC vs. SC)¶
In periodic atomistic boxes of edge lengths , the minimum-image convention (atomistics.minimum_image_displacement) maps any raw displacement into via .
For an infinite 3D Bravais crystal at lattice constant , summing all neighbor shells within avoids double-counting each bond via the factor (atomistics.cubic_lattice_cohesive_energy_lj):
In a nearest-neighbor-only model, FCC () would have at . We see how multi-shell dispersion pulls the lattice inward and deepens cohesion across FCC, BCC, and SC.
heading("Demonstration 2: Minimum-Image PBC & Equilibrium Lattice Statics (FCC vs BCC vs SC)")
box_L = np.array([10.0, 12.0, 14.0])
raw_dr = np.array([[8.4, -7.5, 14.3], [-9.1, 6.2, -13.8]])
mic_dr = atomistics.minimum_image_displacement(raw_dr, box_L)
mic_shifted = atomistics.minimum_image_displacement(raw_dr + np.array([[20.0, -12.0, 28.0], [-10.0, 24.0, -14.0]]), box_L)
assert np.all(np.abs(mic_dr) <= 0.5 * box_L + 1e-14)
assert np.allclose(mic_dr, mic_shifted, atol=1e-14)
eq_results = {}
print(f"{'Structure':10s} | {'a_eq / sigma':>13s} | {'d_nn / r_min':>13s} | {'e_coh / eps':>13s} | {'B [eps/sigma^3]':>16s}")
print("-" * 76)
nn_factor = {"fcc": 1.0 / np.sqrt(2.0), "bcc": np.sqrt(3.0) / 2.0, "sc": 1.0}
for st in ["fcc", "bcc", "sc"]:
res = atomistics.equilibrium_lattice_constant_lj(structure=st, epsilon=1.0, sigma=1.0, r_cut_sigma=5.3)
eq_results[st] = res
d_nn_ratio = (res["a_eq"] * nn_factor[st]) / (2.0 ** (1.0 / 6.0))
print(f"{st.upper():10s} | {res['a_eq']:13.6f} | {d_nn_ratio:13.6f} | {res['e_coh_per_atom']:13.6f} | {res['bulk_modulus']:16.4f}")
# FCC is the thermodynamic ground state among cubic Bravais lattices and contracts ~2.4% below r_min:
assert eq_results["fcc"]["e_coh_per_atom"] < eq_results["bcc"]["e_coh_per_atom"] < eq_results["sc"]["e_coh_per_atom"]
assert eq_results["fcc"]["a_eq"] / np.sqrt(2.0) < 2.0 ** (1.0 / 6.0)
fig, ax = plt.subplots(figsize=(7.0, 4.0))
for st, a_lo, a_hi, col in [("fcc", 1.44, 1.85, "#1f77b4"), ("bcc", 1.16, 1.55, "#ff7f0e"), ("sc", 0.98, 1.35, "#2ca02c")]:
a_vec = np.linspace(a_lo, a_hi, 80)
e_vec = [atomistics.cubic_lattice_cohesive_energy_lj(av, structure=st, r_cut_sigma=5.3) for av in a_vec]
ax.plot(a_vec, e_vec, lw=2.0, color=col, label=f"{st.upper()} ($e_{{\\mathrm{{coh}}}} = {eq_results[st]['e_coh_per_atom']:.3f}\\,\\varepsilon$)")
ax.scatter([eq_results[st]["a_eq"]], [eq_results[st]["e_coh_per_atom"]], color=col, zorder=5)
ax.set_ylim(-9.0, -3.5)
ax.set_xlabel(r"Cubic Lattice Constant $a / \sigma$ [-]")
ax.set_ylabel(r"Cohesive Energy per Atom $e_{\mathrm{coh}} / \varepsilon$ [-]")
ax.set_title("Zero-Temperature Cohesive Energy Curves of Cubic LJ Crystals")
ax.legend()
Demonstration 2: Minimum-Image PBC & Equilibrium Lattice Statics (FCC vs BCC vs SC)
===================================================================================
Structure | a_eq / sigma | d_nn / r_min | e_coh / eps | B [eps/sigma^3]
----------------------------------------------------------------------------
FCC | 1.542660 | 0.971815 | -8.548580 | 74.5132
BCC | 1.234491 | 0.952461 | -8.175666 | 69.5311
SC | 1.067849 | 0.951345 | -5.642268 | 37.0693

Figure 7.2. Cohesive energy per atom of FCC, BCC and SC Lennard-Jones crystals against the lattice constant. The points mark the minima.
What Demonstration 2 shows. The attraction of the outer shells deepens the FCC cohesive energy by , from (nearest neighbors only) to , and compresses the nearest-neighbor spacing to (), where the repulsion of the first shell balances the attraction of the outer shells. FCC is lower in energy than BCC () and SC (), in line with the FCC structure of solid Ne, Ar, Kr and Xe. (The energy difference between FCC and HCP is far smaller and is not resolved here.)
3. Cauchy–Born Lattice Sums & Exact Proof of the Cauchy Relation ()¶
For a centrosymmetric cubic crystal interacting solely via a central pair potential at zero external pressure, homogeneous strain deforms every lattice vector affinely (, the Cauchy–Born rule). Expanding the crystal energy to second order in Lagrangian strain (atomistics.cauchy_born_elastic_constants_lj_cubic) yields:
Equation (3.1): because pair energy depends only on scalar scalar distances , permuting indices in makes identically. We verify this for Argon-scaled LJ FCC vs. real FCC/BCC metals in ELEMENTS_DB.
heading("Demonstration 3: Cauchy-Born Elastic Constants of LJ Crystals vs Real Metals")
print("Part A: Reduced LJ Cubic Crystals at Zero Virial Pressure (r_cut = 5.3 sigma)")
print(f"{'Struct':8s} | {'C11':>10s} | {'C12':>10s} | {'C44':>10s} | {'P_virial':>12s} | {'|C12 - C44|':>12s} | {'Born Stable?':>12s}")
print("-" * 86)
for st in ["fcc", "bcc", "sc"]:
aeq = eq_results[st]["a_eq"]
cb = atomistics.cauchy_born_elastic_constants_lj_cubic(aeq, structure=st, r_cut_sigma=5.3)
stab = elasticity.verify_born_stability_cubic(cb["C11"], cb["C12"], cb["C44"])
print(
f"{st.upper():8s} | {cb['C11']:10.4f} | {cb['C12']:10.4f} | {cb['C44']:10.4f} | "
f"{cb['virial_pressure']:12.2e} | {cb['cauchy_discrepancy']:12.2e} | {str(stab['stable']):>12s}"
)
assert cb["cauchy_discrepancy"] < 1e-13
assert abs(cb["virial_pressure"]) < 1e-5
# Notice BCC (C11 < C12) and SC (C44 < 0) under central LJ forces are mechanically UNSTABLE, whereas FCC is stable
cb_fcc = atomistics.cauchy_born_elastic_constants_lj_cubic(eq_results["fcc"]["a_eq"], structure="fcc", r_cut_sigma=5.3)
cb_bcc = atomistics.cauchy_born_elastic_constants_lj_cubic(eq_results["bcc"]["a_eq"], structure="bcc", r_cut_sigma=5.3)
assert elasticity.verify_born_stability_cubic(cb_fcc["C11"], cb_fcc["C12"], cb_fcc["C44"])["stable"] is True
assert elasticity.verify_born_stability_cubic(cb_bcc["C11"], cb_bcc["C12"], cb_bcc["C44"])["stable"] is False
assert np.isclose((cb_fcc["C11"] + 2.0 * cb_fcc["C12"]) / 3.0, eq_results["fcc"]["bulk_modulus"], rtol=1e-4)
print("\nPart B: Real Metals Violate Cauchy's Pair-Force Relation (Many-Body Electron Gas Embedding Energy)")
for sym in ["Cu", "Ag", "Au", "Al", "Fe", "W"]:
d = constants.ELEMENTS_DB[sym]
print(f"{sym:4s} ({d['structure'].upper()}): C12 = {d['C12_GPa']:6.1f} GPa, C44 = {d['C44_GPa']:6.1f} GPa -> C12/C44 = {d['C12_GPa']/d['C44_GPa']:.2f} (C12 - C44 = {d['C12_GPa']-d['C44_GPa']:+.1f} GPa)")
assert d["C12_GPa"] - d["C44_GPa"] > 15.0
Demonstration 3: Cauchy-Born Elastic Constants of LJ Crystals vs Real Metals
============================================================================
Part A: Reduced LJ Cubic Crystals at Zero Virial Pressure (r_cut = 5.3 sigma)
Struct | C11 | C12 | C44 | P_virial | |C12 - C44| | Born Stable?
--------------------------------------------------------------------------------------
FCC | 104.3098 | 59.6148 | 59.6148 | -4.35e-07 | 0.00e+00 | True
BCC | 60.4865 | 74.0533 | 74.0533 | -7.45e-07 | 0.00e+00 | False
SC | 127.0576 | -7.9249 | -7.9249 | -1.57e-07 | 0.00e+00 | False
Part B: Real Metals Violate Cauchy's Pair-Force Relation (Many-Body Electron Gas Embedding Energy)
Cu (FCC): C12 = 121.4 GPa, C44 = 75.4 GPa -> C12/C44 = 1.61 (C12 - C44 = +46.0 GPa)
Ag (FCC): C12 = 93.4 GPa, C44 = 46.1 GPa -> C12/C44 = 2.03 (C12 - C44 = +47.3 GPa)
Au (FCC): C12 = 163.1 GPa, C44 = 42.0 GPa -> C12/C44 = 3.88 (C12 - C44 = +121.1 GPa)
Al (FCC): C12 = 60.8 GPa, C44 = 28.3 GPa -> C12/C44 = 2.15 (C12 - C44 = +32.5 GPa)
Fe (BCC): C12 = 134.7 GPa, C44 = 116.4 GPa -> C12/C44 = 1.16 (C12 - C44 = +18.3 GPa)
W (BCC): C12 = 204.4 GPa, C44 = 160.6 GPa -> C12/C44 = 1.27 (C12 - C44 = +43.8 GPa)
What Demonstration 3 shows. Two results follow.
The Cauchy relation and the instability of BCC and SC. Every central pair-potential cubic crystal obeys and matches from
equilibrium_lattice_constant_lj. TheBCCLennard-Jones crystal has , so : it is unstable against a tetragonal shear (the Bain path towardFCC). TheSCcrystal fails Born stability because .Why metals violate . In a metal ( in the Embedded Atom Method), the conduction electron gas contributes a non-linear volume/density embedding energy that resists dilatation () without resisting volume-conserving shear (), adding a positive many-body shift (e.g. in gold).
4. Sensitivity to the parameters¶
How rapidly do FCC lattice properties (, , and ) converge as the spherical neighbor cutoff increases from nearest-neighbor-only (, 12 neighbors) out to ( neighbors)?
heading("Demonstration 4: Cutoff Radius Convergence of FCC Lattice Constant, Cohesion & Bulk Modulus")
rcut_list = [1.30, 2.00, 2.50, 3.50, 5.00, 7.00]
ref_7 = atomistics.equilibrium_lattice_constant_lj("fcc", r_cut_sigma=7.0)
print(f"{'r_cut/sigma':>11s} | {'a_eq/sigma':>11s} | {'e_coh/eps':>11s} | {'B [eps/sig^3]':>14s} | {'|de_coh| vs 7.0':>16s}")
print("-" * 74)
for rc in rcut_list:
eq_r = atomistics.equilibrium_lattice_constant_lj("fcc", r_cut_sigma=rc)
cb_r = atomistics.cauchy_born_elastic_constants_lj_cubic(eq_r["a_eq"], "fcc", r_cut_sigma=rc)
b_cb = (cb_r["C11"] + 2.0 * cb_r["C12"]) / 3.0
de = abs(eq_r["e_coh_per_atom"] - ref_7["e_coh_per_atom"])
print(f"{rc:11.2f} | {eq_r['a_eq']:11.6f} | {eq_r['e_coh_per_atom']:11.5f} | {b_cb:14.4f} | {de:16.5f}")
# Nearest-neighbor cutoff (1.3 sigma) gives exact e_coh = -6.0 and a_eq = sqrt(2)*2^(1/6):
eq_nn = atomistics.equilibrium_lattice_constant_lj("fcc", r_cut_sigma=1.30)
assert np.isclose(eq_nn["e_coh_per_atom"], -6.0, atol=1e-10)
assert np.isclose(eq_nn["a_eq"], np.sqrt(2.0) * (2.0 ** (1.0 / 6.0)), rtol=1e-8)
Demonstration 4: Cutoff Radius Convergence of FCC Lattice Constant, Cohesion & Bulk Modulus
===========================================================================================
r_cut/sigma | a_eq/sigma | e_coh/eps | B [eps/sig^3] | |de_coh| vs 7.0
--------------------------------------------------------------------------
1.30 | 1.587401 | -6.00000 | 48.0000 | 2.58333
2.00 | 1.556612 | -7.66984 | 65.0721 | 0.91349
2.50 | 1.549603 | -8.09962 | 69.6551 | 0.48371
3.50 | 1.544842 | -8.40482 | 72.9502 | 0.17851
5.00 | 1.542771 | -8.54122 | 74.4330 | 0.04211
7.00 | 1.542139 | -8.58333 | 74.8920 | 0.00000
Inside the algorithm¶
In Demonstration 4, restricting interactions to the 12 first-shell neighbors () recovers the analytical nearest-neighbor result and , whereas standard MD truncation at still misses per atom (relative to ) of long-range tail energy.
Below we inspect atomistics.cauchy_born_elastic_constants_lj_cubic and verify both analytical derivative consistency () and the lattice-sum elastic formulas from scratch.
Check against the library¶
heading("Inside the Algorithm: atomistics.cauchy_born_elastic_constants_lj_cubic")
print(show_source(atomistics.cauchy_born_elastic_constants_lj_cubic))
# Verify exact derivative consistency of lennard_jones_potential against 4th-order finite differences:
r_pts = np.array([1.05, 1.12246205, 1.35, 1.85])
h = 1e-4
lj_0 = atomistics.lennard_jones_potential(r_pts)
v_m2 = atomistics.lennard_jones_potential(r_pts - 2 * h)["energy"]
v_m1 = atomistics.lennard_jones_potential(r_pts - h)["energy"]
v_p1 = atomistics.lennard_jones_potential(r_pts + h)["energy"]
v_p2 = atomistics.lennard_jones_potential(r_pts + 2 * h)["energy"]
force_fd4 = -(-v_p2 + 8.0 * v_p1 - 8.0 * v_m1 + v_m2) / (12.0 * h)
d2v_fd4 = (-v_p2 + 16.0 * v_p1 - 30.0 * lj_0["energy"] + 16.0 * v_m1 - v_m2) / (12.0 * h * h)
print("Max |F_analytic - F_FD4| :", float(np.max(np.abs(lj_0["force"] - force_fd4))))
print("Max |d2V_analytic - d2V_FD4| :", float(np.max(np.abs(lj_0["d2V_dr2"] - d2v_fd4))))
assert np.allclose(lj_0["force"], force_fd4, rtol=1e-10, atol=1e-10)
assert np.allclose(lj_0["d2V_dr2"], d2v_fd4, rtol=1e-7, atol=1e-7)
Inside the Algorithm: atomistics.cauchy_born_elastic_constants_lj_cubic
=======================================================================
def cauchy_born_elastic_constants_lj_cubic(
a_A: float,
structure: str = "fcc",
epsilon: float = 1.0,
sigma: float = 1.0,
r_cut_sigma: float = 5.0,
) -> dict:
"""Compute zero-temperature Born lattice-sum elastic constants C11, C12, C44 for a centrosymmetric LJ crystal."""
disp, vol_atom = _cubic_neighbor_vectors(a_A, structure=structure, r_cut=r_cut_sigma * sigma)
r_mag = np.linalg.norm(disp, axis=1)
lj = lennard_jones_potential(r_mag, epsilon=epsilon, sigma=sigma)
phi_p = -lj["force"]
phi_pp = lj["d2V_dr2"]
coeff = (phi_pp / (r_mag**2)) - (phi_p / (r_mag**3))
rx, ry = disp[:, 0], disp[:, 1]
c11 = float((0.5 / vol_atom) * np.sum(coeff * (rx**4)))
c12 = float((0.5 / vol_atom) * np.sum(coeff * (rx**2) * (ry**2)))
c44 = float((0.5 / vol_atom) * np.sum(coeff * (rx**2) * (ry**2)))
virial_p = float(-(1.0 / (6.0 * vol_atom)) * np.sum(r_mag * phi_p))
return {
"C11": c11,
"C12": c12,
"C44": c44,
"virial_pressure": virial_p,
"cauchy_discrepancy": abs(c12 - c44),
}
Max |F_analytic - F_FD4| : 6.600942015211331e-12
Max |d2V_analytic - d2V_FD4| : 2.6728145030574524e-08
Exercises¶
Worked solutions are in 07_solutions.ipynb. The cell below the list is a short self-check to start from.
Verify a result. Verify analytically and numerically that the 12-6 Lennard-Jones inflection point occurs at , where
d2V_dr2 == 0and the attractive restoring tension reaches its strict extremum .Find how it fails. Compare the cutoff boundary jump at between raw shifted-potential-only truncation and
atomistics.shifted_force_lj, and verify that across .Implement it yourself. Implement
argon_fcc_eos_pressure_GPa(a_A, r_cut_sigma=5.5)for solid Argon (, ) using central finite differences (1 eV/A^3 = 160.2176634 GPa), and verify agreement withvirial_pressurefromcauchy_born_elastic_constants_lj_cubicacross to< 1e-4 GPa.
heading("Self-check for the exercises")
fcc_eq = atomistics.equilibrium_lattice_constant_lj("fcc", r_cut_sigma=5.0)
cb_eq = atomistics.cauchy_born_elastic_constants_lj_cubic(fcc_eq["a_eq"], "fcc", r_cut_sigma=5.0)
assert np.isclose(cb_eq["C12"], cb_eq["C44"], rtol=1e-14, atol=1e-14)
assert abs(cb_eq["virial_pressure"]) < 1e-5
print(f"LJ FCC equilibrium: a_eq = {fcc_eq['a_eq']:.5f} sigma, C12 = C44 = {cb_eq['C44']:.4f} eps/sigma^3.")
print("All checks passed.")
Self-check for the exercises
============================
LJ FCC equilibrium: a_eq = 1.54277 sigma, C12 = C44 = 59.5422 eps/sigma^3.
All checks passed.