# Pure Sn quench and tension

## Goal
Compare tension after cooling liquid Sn at 10 and 100 K/ps. The paper studied pure Sn, Sn–Ag, and SAC305 using melt-quench simulations and tensile and cyclic loading. This smaller example contains pure Sn only.

## Potential file
The paper cites Ravelo and Baskes (1997) for Sn, along with MEAM solder references by Dong et al. (2005) and Fei et al. (2011). A matching implementation of those exact parameters has not been identified in NIST. As a documented substitute, download `library.meam` and `Sn.meam` from the [2018 Ko Sn MEAM NIST entry](https://www.ctcms.nist.gov/potentials/entry/2018--Ko-W-S-Kim-D-H-Kwon-Y-J-Lee-M--Sn/) into this directory. This is a different potential and cannot reproduce the paper quantitatively. Validate melting and solidification before interpreting the curves.

## Requirements and run
MEAM package. Run commands from this directory. Replace `lmp` with your LAMMPS executable. See [LAMMPS_SETUP.md](../LAMMPS_SETUP.md). The input uses metal units: lengths in Å, time in ps, and pressure in bar. `rate` is in inverse ps; the default 0.01/ps is 10^10/s. The output stress is in GPa. Python requires NumPy and Matplotlib.

All runtime estimates are unmeasured. They depend on the processor, LAMMPS build and potential. Check atom count and wall time in the LAMMPS log. The 15-minute target is not verified.

```sh
lmp -in in.solder.lmp -var cool 10 -var out tension_10.txt
lmp -in in.solder.lmp -var cool 100 -var out tension_100.txt
python analyze.py
```

## What to expect and differences
The input melts an initially FCC cell at 1200 K, quenches, relaxes the periodic cell and strains it. The script plots stress and estimates a slope by linear regression from 0–2% strain. Thermal noise, residual stress and nonlinearity affect this fitted modulus. The 2048-atom model, potential, initial structure, hold times and loading rate differ from the paper. The quench may not crystallize at these rates. Estimated runtime is unmeasured: roughly 115,000 and 34,000 MD steps for 10 and 100 K/ps respectively at 300 K.
