# Inconel deposition, cooling and tension

## Goal
The [conference study](https://doi.org/10.1115/IMECE2023-114456) used simulated tensile tests on bars cut from deposited layers. This example compares two cooling schedules by stretching the deposited slab in-plane.

## Potential file
Download `FeNiCr.eam.alloy` from the corrected [2011 Bonny Fe–Ni–Cr NIST entry](https://www.ctcms.nist.gov/potentials/entry/2011--Bonny-G-Terentyev-D-Pasianot-R-C-et-al--Fe-Ni-Cr/) or the [direct file](https://www.ctcms.nist.gov/potentials/Download/2011--Bonny-G-Terentyev-D-Pasianot-R-C-et-al--Fe-Ni-Cr/3/FeNiCr.eam.alloy). Save it here. This is an atomistic ternary approximation, not a coarse-grained potential. It omits the other Inconel-718 constituents.

## Requirements and run
MANYBODY 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.deposition.lmp -var cool 10 -var out tension_10.txt
lmp -in in.deposition.lmp -var cool 100 -var out tension_100.txt
python analyze.py
```

## What to expect and differences
The input deposits three successive batches of 300 atoms above a small substrate, randomly assigns the alloy composition, cools and loads the periodic x direction. The three source regions rise in height; the resulting layer structure is not guaranteed. Initial area uses a specified 30 Å slab thickness, so porosity and surface height affect the stress scale. Monitor the log for failed insertions or lost atoms. Cooling can leave a disordered structure. Estimated runtime is unmeasured: about 96,000 and 33,000 steps for 10 and 100 K/ps. TODO: validate layer formation, thickness, insertion yield and runtime.
