Simulation protocol (run.in)
The run.in file defines the simulation protocol.
For ordinary MD, GPUMD executes its commands in file order.
File format
Write one command per line:
keyword parameter_1 parameter_2 ...
Blank lines are ignored, and # starts a comment that extends to the end of the line.
An invalid command causes GPUMD to report an error and stop.
Command order
For an ordinary MD simulation:
If needed, use replicate before loading a potential.
Load the interaction model with potential.
If needed, relax the structure with minimize.
Set the initial temperature with velocity if
model.xyzdoes not supply velocities. The default is 300 K. If velocities are supplied, GPUMD uses them and ignores this initial-temperature setting.Choose the ensemble and time step, then add the required control, measurement, and output commands.
Execute run for the desired number of steps.
For each subsequent run, choose the ensemble and repeat the commands needed for that run. The atomic positions, velocities, and cell continue from the preceding run; see the multiple-run example. To continue from a saved configuration in a new simulation, see restart.xyz.
Static calculations such as cohesive-energy curves, elastic constants, phonon dispersions, and analytic Cartesian Hessians execute when their commands are read, after the potential has been loaded. For calculations with several NEP models, see dump_observer.
Replica dynamics use multi_replica, a restricted command set, and a single final run command.
See the replica input example.
Keyword overview
The tables below summarize when commands take effect and whether their settings carry over to the next run. The keyword reference gives their syntax and parameters.
Exec.:
Yesmeans that the command executes immediately when read.Prop.:
Yesmeans that the setting carries over to the nextrun. Repeat a non-propagating setting before each run that needs it.N/A: there is no per-run setting to carry over. The effect of an immediately executed command, such as a loaded potential or changed cell, remains in place.
For time_step, the current step size carries over, but the optional displacement limit must be specified again.
Simulation setup
Keyword |
Brief description |
Exec. |
Prop. |
|---|---|---|---|
Replicate the simulation model |
Yes |
N/A |
|
Set the initial velocities |
Yes |
N/A |
|
Remove linear and angular momenta at regular intervals |
No |
No |
|
Set up the interaction model |
Yes |
N/A |
|
Add the DFT-D3 dispersion correction to the NEP model |
Yes |
N/A |
|
Specify the reciprocal-space method used by the interaction model |
Yes |
N/A |
|
Monitor the NEP extrapolation grade during an MD run |
No |
No |
|
Change the box |
Yes |
N/A |
|
Deform the simulation box |
No |
No |
|
Specify the integration time step |
No |
Yes |
|
Specify the integrator for a MD run |
No |
No |
|
Add external forces to selected atoms |
No |
No |
|
Apply an electric field to selected atoms |
No |
No |
|
Apply a magnetic field to an atom group or fractional region |
No |
No |
|
Add spring interactions to selected atom groups |
No |
No |
|
Add atoms periodically during a deposition run |
No |
No |
|
Select REMD or PRD for the input file |
No |
N/A |
|
Apply electronic stopping forces to high-energy atoms |
No |
No |
|
Fix (freeze) atoms |
No |
No |
|
Move selected atoms with a constant velocity |
No |
No |
|
Carry out Monte Carlo trial steps during an MD run |
No |
No |
|
Invoke the PLUMED plugin during an MD run |
No |
No |
Actions
Keyword |
Brief description |
Exec. |
Prop. |
|---|---|---|---|
Perform an energy minimization |
Yes |
N/A |
|
Minimize magnetic moments, optionally together with atomic positions and cell strain |
Yes |
N/A |
|
Run a number of MD steps |
Yes |
No |
|
Compute some time and space-averaged quantities |
No |
No |
|
Compute time-averaged quantities in dynamic spatial bins |
No |
No |
|
Compute the angular distribution function (ADF) |
No |
No |
|
Compute the angular-dependent radial distribution function (ARDF) |
No |
No |
|
Compute the cohesive energy curve |
Yes |
N/A |
|
Compute the elastic constants |
Yes |
N/A |
|
Compute the phonon density of states (PDOS) |
No |
No |
|
Compute the time derivative of the total dipole moment |
No |
No |
|
Compute the modal heat current using the GKMA method |
No |
No |
|
Compute the thermal conductivity using the EMD method |
No |
No |
|
Compute the ionic conductivity (IC) |
No |
No |
|
Compute the modal thermal conductivity using the HNEMA method |
No |
No |
|
Compute the thermal conductivity using the HNEMD method |
No |
No |
|
Compute the multicomponent system thermal conductivity using the HNEMDEC method |
No |
No |
|
Compute Steinhardt bond-orientational order parameters |
No |
No |
|
Compute an analytic Cartesian Hessian |
Yes |
N/A |
|
Compute the phonon dispersion |
Yes |
N/A |
|
Compute the self-diffusion coefficient (SDC) |
No |
No |
|
Compute the mean-square displacement (MSD) |
No |
No |
|
Compute the center of mass |
No |
No |
|
Compute the radial distribution function (RDF) |
No |
No |
|
Compute kinematic X-ray diffraction intensities |
No |
No |
|
Compute the spectral heat current (SHC) |
No |
No |
|
Compute the stress autocorrelation function and viscosity |
No |
No |
|
Compute electronic transport properties using the LSQT method |
No |
No |
Output
Keyword |
Brief description |
Exec. |
Prop. |
|---|---|---|---|
Run on-the-fly active learning, saving structures that exceeds a set threshold maximum force uncertainty over all specified NEP potentials. |
No |
No |
|
Write bead-resolved positions and optional velocities and forces for PIMD-related runs |
No |
No |
|
Write dipoles predicted by a separate tensorial NEP model |
No |
No |
|
Write positions and other quantities for each of the observing NEP potentials, or the average of them, in the extended XYZ format. |
No |
No |
|
Write polarizabilities predicted by a separate tensorial NEP model |
No |
No |
|
Write the atomic positions in netCDF format |
No |
No |
|
Write a restart file |
No |
No |
|
Write spatial thermodynamic profiles for shock-wave NEMD simulations |
No |
No |
|
Write thermodynamic quantities |
No |
No |
|
Write positions and other per-atom quantities in extended XYZ format |
No |
No |