Using the 2Aug23 version of lammps compiled with presets I’ve been able to run the provided airebo example using lmp -sf gpu -pk gpu 1 -in in.airebo-m or running with kokkos using mpirun lmp-kgb -k on g 1 -sf kk -pk kokkos newton on neigh full comm device -airebo-m where lmp-kgb is the local name for lmp in its build folder.
that input script is:
units metal
atom_style atomic
read_data data.airebo
replicate 17 16 2
neighbor 0.5 bin
neigh_modify delay 5 every 1
pair_style airebo/morse 3.0 1 1
pair_coeff * * CH.airebo-m C H
velocity all create 300.0 761341
fix 1 all nve
timestep 0.0005
thermo 10
run 100
I am trying to run a script ( given below ) written by Eric Hahn of an airebo foam model but the model fails at reading the pair style:
Reading airebo potential file CH.airebo-m with DATE: 2016-03-15
ERROR on proc 0: Potential file does not match AIREBO/REBO style variant: # AIREBO : # AIREBO-M of T.C. O’Connor, J.W. Andzelm, M.O. Robbins (2015)
(src/MANYBODY/pair_airebo.cpp:3384)
Last command: pair_coeff * * CH.airebo-m C H
The error indicates the potentials are an incorrect match between the older 2015 O’Conner et al the newer 2016 version. There are two suggestions in the forum on a similar issue by modification of the bench/POTENTIALS/CH.airebo
Given I have not been able to track down the format of the either style variant, the problem is confusing in that the the script is in the same folder as the airebo.in script, and the pair_style and pair_coeff are identical. There is no data folder to read. The atom types is should be ok, ( just C,H) the units and atom style are the same in both cases. There is not much else that I know to look for.
Any suggestions would be appreciated.
pb
===============================================
Created by Eric N. Hahn
Simple Carbon Foam
Version 0.1
units metal
atom_style atomic
variable cubelength equal 72
region box block 0 {cubelength} 0 {cubelength} 0 ${cubelength}
create_box 2 box
create_atoms 1 random 3666 12345 box
pair_style airebo/morse 3.0 1 1
pair_coeff rebo CH.airebo-n C H
mass 1 12.0107
mass 2 1.00784
velocity all create 100.0 12345
compute 3 all pe/atom
fix 2 all balance 1000 1.05 shift xyz 10 1.05
dump eve all custom 250 dump.Cfoam_sythesis_999K.* id type x y z vx vy vz c_3
minimize 1e-10 1e-10 5000 5000
fix 1 all nve
fix temp all langevin 999 999 5 12345
timestep 0.001
thermo_style custom step temp pe etotal press vol
thermo 100
run 1000000
write_data data.Cfoam_sythesis_999K
print “Job’s done”