lammps_generate_input
Creates a ready-to-run LAMMPS input script for molecular dynamics simulations, supporting multiple potentials and ensembles with options for energy minimization and shear deformation.
Instructions
Generate a complete LAMMPS input script for molecular dynamics simulation.
Creates a ready-to-run LAMMPS input file with support for LJ, EAM, Tersoff, Buckingham, and Coulomb potentials. Ensembles: NVT, NPT, NVE, NPH. Optional energy minimization and shear deformation.
Args: atoms_per_side: Number of unit cells per side of the cubic box. lattice_spacing: Lattice constant in Angstroms. potential: Interatomic potential type (lj, eam, tersoff, buckingham, coulomb). epsilon: LJ energy parameter. sigma: LJ length parameter. cutoff: Pair potential cutoff distance. ensemble: Thermodynamic ensemble (nvt, npt, nve, nph). temperature: Target temperature. pressure: Target pressure (for NPT/NPH). timestep: Integration timestep. n_steps: Total number of MD steps. dump_freq: Frequency of trajectory dumps. minimize: Run energy minimization before dynamics. apply_shear: Apply shear deformation during dynamics. shear_rate: Shear strain rate. shear_direction: Shear plane (xy, xz, yz). boundary: Boundary conditions. output_file: If provided, write script to this file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sigma | No | ||
| cutoff | No | ||
| epsilon | No | ||
| n_steps | No | ||
| boundary | No | p p p | |
| ensemble | No | nvt | |
| minimize | No | ||
| pressure | No | ||
| timestep | No | ||
| dump_freq | No | ||
| potential | No | lj | |
| shear_rate | No | ||
| apply_shear | No | ||
| output_file | No | ||
| temperature | No | ||
| atoms_per_side | No | ||
| lattice_spacing | No | ||
| shear_direction | No | xy |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |