Apologies for not able to explain my query in correct way or order. I want to create a silicon tetrahedron with one silicon bonded with four oxygen atom. create_bond command is not working at all to create Si-O bond. As you can see my input file that I have used syntax correctly still same error is coming. Since bond are not created, hence angle creation is also affected,I am using LAMMPS (30 Jul 2016) version. First four basis are for oxygen atom and last one is oxygen. I wanted to create only one type of bond and angle.
echo both
units real
atom_style full
pair_style lj/class2/coul/cut 1 1
bond_style class2
angle_style class2
boundary p p p
lattice custom 1 &
a1 5.14 0 0 &
a2 0 8.93 0 &
a3 0 0 7.37 &
basis 0.629 0.8 0.99 &
basis 0.999 0.631 0 &
basis 0.947 0.99 0 &
basis 0 0.8 0 &
basis 0.631 0.8 0.25
region myreg block 0 2 0 2 0 2
create_box 2 myreg bond/types 1 extra/bond/per/atom 6 angle/types 1 extra/bond/per/atom 6 extra/angle/per/atom 8
create_atoms 2 region myreg basis 1 1 basis 2 1 basis 3 1 basis 4 1 basis 5 2 units lattice
pair_modify tail yes
neighbor 2 bin
neigh_modify every 1000 delay 0 check yes page 100000 one 10000
replicate 1 1 1
mass 1 16
mass 2 32
pair_coeff 1 1 .2280 3.210 #O-O
pair_coeff 2 2 0.04001 4.550 #Si-Si
pair_coeff 1 2 0.10126 3.8217
bond_coeff 1 1.0 100.0 80.0 80.0
angle_coeff 1 110.6 88.1 -57 92.5
angle_coeff 1 bb 0 0 0
angle_coeff 1 ba 0 0 0 0
create_bonds single/bond 1 1 5
create_bonds single/bond 1 2 5
create_bonds single/bond 1 3 5
create_bonds single/bond 1 4 5
create_bonds single/angle 1 1 5 2
create_bonds single/angle 1 1 5 3
create_bonds single/angle 1 1 5 4
create_bonds single/angle 1 4 5 2
create_bonds single/angle 1 4 5 3
create_bonds single/angle 1 2 5 3
dump 1 all custom 10000 rev.* id x y z
timestep .01
run_style verlet
fix 1 all npt temp 298 298 1000 iso 1 1 10000
thermo_style custom step lx ly lz epair ebond eangle edihed etotal temp density
thermo 2000
run 100000
ERROR: Illegal create_bonds command (…/create_bonds.cpp:45) just after line create_bonds single/bond 1 1 5 .
I am confident its not any syntax error. I think i am missing some genuine point which i am not able to figure out. Any help is highly appreciable.
Ashwani