Using Basak.lmptab in LAMMPS¶
LAMMPS input files are provided for use with the table file:
UO2.lmpstruct: structure file for single UO2 cell, that can be read with read_data when atom_stylefullis used.equilibrate.lmpin: input file containing LAMMPS instructions. Performs 10ps of 300K NPT equilibration, creating a 4×4×4 super-cell.
Copy these files into the same directory as Basak.lmptab, the simulation can then be run using:
lammps -in equilibrate.lmpin -log equilibrate.lmpout -echo both
The section of equilibrate.lmpin which defines the potential model and makes use of the table file is as follows:
variable O equal 1 variable U equal 2 set type $O charge -1.2 set type $U charge 2.4 kspace_style pppm 1.0e-6 pair_style hybrid/overlay coul/long ${SR_CUTOFF} table linear 6500 pppm pair_coeff * * coul/long pair_coeff $O $O table Basak.lmptab O-O pair_coeff $O $U table Basak.lmptab O-U pair_coeff $U $U table Basak.lmptab U-UNotes:
- As LAMMPS uses ID numbers to define species the
variablecommands associate:
- index 1 with variable
$O- index 2 with
$Uto aid readability.
- The
set type SPECIES_ID chargelines define the charges of oxygen and uranium.
Uses the hybrid/overlay
pair_styleto combine the coul/long and table styles.pair_style hybrid/overlay coul/long ${SR_CUTOFF} table linear 6500 pppmMeans that electrostatic interactions should be calculated between all pairs of ions.
pair_coeff * * coul/longEach
pair_coeffreads an interaction from theBasak.lmptabfile.pair_coeff $O $O table Basak.lmptab O-O pair_coeff $O $U table Basak.lmptab O-U pair_coeff $U $U table Basak.lmptab U-U
The general form is:
pair_coeff SPECIES_A SPECIES_A table TABLE_FILENAME TABLE_KEYWORD- Here the
SPECIES_*use the$Oand$Uvariables defined earlier.TABLE_KEYWORD- the table file contains multiple blocks, each defining a single interaction.- The
TABLE_KEYWORDis the title of the block. The labels are of the formLABEL_A-LABEL_Balbeit with the species sorted into alphabetical order.