Hi,
I’m trying to simulate TiO2 using pedone potential. I used pair_style table command to import the potential and force. However, it throws an errror at me "Lost atoms: original 4640 current 2 (src/thermo.cpp:439).
Also, it sends me warnings like, 748 of 750 force values in table … are inconsistent with -dE/dr …
Can you help please?
Those are the script and the table file I used:
The script:
1) Initialization
units metal
dimension 3
atom_style charge #what attributes are associated with the atoms (point particles)
boundary p p p # p is periodic
2) System definition
region simulation_box block -20 20 -20 20 -20 20
create_box 2 simulation_box #the number of atoms in the simulation
create_atoms 1 random 1547 341341 simulation_box
create_atoms 2 random 3093 127569 simulation_box
set atom 1 charge 2.4
set atom 2 charge -1.2
3) Simulation settings
mass 1 48.0 #grams/mole
mass 2 16.0
#velocity all create 2243.0 450894
#run 0
#velocity all scale 2243.0
pair_style table linear 750
pair_coeff 1 1 potential_table3.txt COUL_Ti-Ti
pair_coeff 1 2 potential_table3.txt PEDONE_Ti-O
pair_coeff 2 2 potential_table3.txt PEDONE_O-O
pair_write 1 2 1000 r 1.0 5.0 potential_pedone.txt r_100_TiO_withcharge_onlypedone 2.4 -1.2
neigh_modify every 1 delay 0 check yes #sets parameters that affect the building and use of pairwise neighbor lists.
4) Visualization
thermo 10
5) Run
minimize 1.0e-4 1.0e-6 1000 10000
PART B - MOLECULAR DYNAMICS
4) Visualization
thermo 1000 #compute thermodynamic info (e.g. temp, energy, pressure)
variable kinetic_energy equal ke
variable potential_energy equal pe
variable pressure equal press
fix myat1 all ave/time 10 1 10 v_kinetic_energy v_potential_energy file energy.dat
dump mydmp all atom 1000 dump.lammpstrj
5) Run
fix mynve all nve
fix mylgv all langevin 1.0 1.0 0.1 1530917
timestep 0.0005
run 1000
compute myRDF all rdf 750 1 1 1 2 2 2 cutoff 15.0
fix 1 all ave/time 1 4000 8000 c_myRDF[*] file tmp.rdf mode vector
run 8000
The table file:
DATE: 2023-06-23 UNITS: metal CONTRIBUTOR: This is the first trial
Pedone potential for O-O; cuttoff of 15 Am
PEDONE_O-O
N 500 R 0.02 15.0
1 0.020000 1893.153086 49460.348713
2 0.040000 1328.468980 10708.889577
3 0.060000 1111.874875 3630.221518
4 0.080000 984.039288 1224.985753
5 0.100000 892.995861 167.166009
6 0.120000 821.344706 -363.697949
7 0.140000 761.566571 -648.530392
8 0.160000 709.851130 -804.510820