Working Example¶
Putting together the blocks introduced in this Starter Pack gives a complete, working exaStamp input file. The example below generates a BCC Tantalum crystal at 600 K with lattice/init_temperature_new, relaxes it towards 300 K under the eam_alloy_force potential with a Langevin thermostat, and periodically writes .xyz snapshots:
Note
For compactness, domain and init_rcb_grid are nested directly inside setup_system above instead of being declared as separate top-level keys. This is not a problem: the simulation block already calls domain once, earlier in its body, before setup_system runs — nesting a fresh domain: step inside setup_system simply re-invokes that same operator with the full lattice-ready parameters right before init_rcb_grid/lattice need them, overwriting the earlier, auto-deduced values. Both forms are equivalent; keeping everything needed to populate the domain in one place is just easier to read.
Each block maps directly back to the page that introduced it:
| Block | Covered in |
|---|---|
species |
Particles Species |
setup_system (domain, init_rcb_grid, lattice, init_temperature_new) |
Simulation Domain, Input Data |
eam_alloy_force, compute_force |
Interatomic Potential |
numerical_scheme, langevin_thermostat |
Numerical Scheme |
global |
Global Control |
write_snapshot |
Output Data |
Tip
Save this as e.g. ta_bcc.msp and launch it with mpirun -np ${N_MPI} exaStamp ta_bcc.msp (see Running your simulation); it needs the Ta1_Ravelo_2013.eam.alloy parameter file to be available alongside it.