LAMMPS Data File Issues

Dear all,

I wish to study an MoS2/water system using LAMMPS. I have created the following input file using following parameters suggested by this paper and trying to learn the LAMMPS syntax: https://pubs.acs.org/doi/10.1021/acs.jpcc.7b00484 shown below.

Define initial structure

units real
atom_style full

Read positions data file

read_data data.lammps

Create bonds for the data file

Note that coefficients are as follows for atoms (from data.lammps)

1 H

2 0

3 Mo

4 S

create_bonds many 3 4 2.0 2.5 # Mo-S bonds
create_bonds many 1 2 1.0 1.2 # H-O bonds

Use this paper for force field parameterization (reaggregation section):

https://pubs.acs.org/doi/10.1021/acs.jpcc.7b00484

Cutoff distanec for both Lennard-Jones (L-J) and Coulombic interactions are set to 1.2 nm = 12 Å

pair_style lj/cut/coul/long 12.0

Particle-Particle-Particle-Mesh (PPPM) method

Calculate long-range electrostatic interactions between particles by dividing the calculation into a short range part handled by particle-particle summation and a large-range part solved using a grid-based Fourier transform method.

Specify this accuracy to be set to 10^-4, per paper

kspace_style pppm 1e-4

Define nonbonded L-J parameters for Mo-Mo and S-S interactions

Format is as follows: atom_coeff atom_coeff σ(Å) ε(kj/mol) q (e)

pair_coeff 3 3 4.43 0.485 0.5 # Mo-Mo
pair_coeff 4 4 3.34 2.085 -0.25 # S-S

Define bonded L-J parameters for Mo-S interaction

Format is as follows atom_coeff

bond_style harmonic
bond_coeff 1 430.4 2.41

Define the angle interactions in the LAMMPS script

angle_style harmonic
angle_coeff 1 1187.7 83.8 # S-Mo-S angle
angle_coeff 2 2050.0 83.8 # Mo-S-Mo angle

Lastly, we define the water ff parameters using the SPC/E model

LAMMPS provides example here: 8.4.6. SPC water model — LAMMPS documentation

pair_coeff 1 1 0.1553 3.166
pair_coeff 1 2 0.0 1.0
pair_coeff 2 2 0.0 1.0

Specify bond information for the water

bond_style zero
bond_coeff 1 1.0

Define the angle interactions for the water

angle_style zero
angle_coeff 1 109.47

This part of the code, specifies computation and running the calculation

We begin by performing a quick energy minimization of the system

Format is energytol forcetol maxiter maxeval

minimize 1.0e-4 1.0e-4 1000 1000

Define Nosé-Hoover barostat and thermostat, per paper

T = 300 K, P = 0.1 MPa

Format is as follows id atoms command(npt) temp tstart tstop tdamp(time units) isotropic(pressure setting) pstart pstop pdamp(time units)

fix NPT all npt temp 300.0 300.0 100.0 iso 0.1 0.1 1000.0

Lastly, we will equilibrate the system for 5 ns, per paper instructions

timestep 1.0
run 5000000

This is what my data.lammps file looks like (format attached below) - I simply converted it from POSCAR (vesta) format to lammps data format using ovito software. I am struggling to find out how to encode bond information. Is there any software which can help me with this? I tried to do it within the input script but LAMMPS throws the following error:

ERROR: Incorrect format in Atoms section of data file: 1 1 0 -2.150134844 -0.9737505046 -19.56606079 (…/atom.cpp:1066)
Last command: read_data data.lammps

Thank you for your help!

LAMMPS data file written by OVITO Basic 3.11.1

900 atoms
4 atom types

0.0 15.96118927 xlo xhi
0.0 13.8227953824 ylo yhi
0.0 153.128326416 zlo zhi
-7.980594635 0.0 0.0 xy xz yz

Masses

1 1.00794 # H
2 15.9994 # O
3 95.94 # Mo
4 32.065 # S

Atoms # full

1 1 0 -2.150134844 -0.9737505046 -19.56606079
2 1 0 -3.33297641 -0.5618632624 -20.613867043
3 1 0 -3.761612615 2.818106807 -21.978468301
4 1 0 -3.860916074 4.278710752 -21.254979707
5 1 0 -1.649271307 1.339884436 -20.073121645
6 1 0 -0.9558494327 1.192024812 -21.544164869
7 1 0 3.459201684 2.943273541 -20.675701554
8 1 0 4.773925259 3.743896839 -21.220826484
9 1 0 -7.043327056 4.050425685 -21.826403785
10 1 0 -5.875959838 3.55559988 -20.797294306
11 1 0 6.87679331 -1.293857117 -20.888989891
12 1 0 5.663746802 -2.386775363 -20.915565598
13 1 0 -8.625420628 3.233712972 -20.340851422
14 1 0 6.316309771 2.67485338 -19.194099283
15 1 0 6.940017956 -3.378706057 -12.251903055
16 1 0 8.296584425 -3.625690688 -11.377034575
17 1 0 5.069556747 4.189717301 -10.3285894474
18 1 0 -10.080259456 5.503617027 -10.859629733
19 1 0 -1.228907738 1.605849588 -17.672261479
20 1 0 0.0442785651 2.1298486 -16.79414839
21 1 0 1.566082899 2.022815755 -10.6822099179
22 1 0 0.7236269754 3.417982179 -10.7843855052
23 1 0 3.277228617 -0.2262689947 -11.056558006
24 1 0 2.00545536 -0.5120646379 -12.0402134
25 1 0 -7.137339647 0.9139223282 -11.919340643
26 1 0 -6.509394017 2.348251596 -12.383074704
27 1 0 -3.12514731 0.8242672141 -9.7744849231
28 1 0 -3.835905295 0.7570547692 -11.243145116
29 1 0 -5.013675883 -2.149986428 -17.662570478
30 1 0 -3.990735331 -1.986506572 -18.924923519
31 1 0 -0.6438242821 1.934802716 -11.920492964
32 1 0 -1.27196943 0.6994204676 -12.784162823
33 1 0 -1.174669551 3.389344619 -6.473521979
34 1 0 -0.5356122062 1.918664033 -6.164712556
35 1 0 -1.771865391 -1.822074892 -13.103610455
36 1 0 -2.372385623 -0.6992837705 -14.126046628
37 1 0 0.9592677956 -0.9637816878 -2.913093237
38 1 0 1.728941781 -2.384059574 -2.6741963
39 1 0 -3.34759579 3.77956971 -7.631401339
40 1 0 -2.207156015 4.881284271 -8.021633003
41 1 0 -4.321563051 -2.205858094 -13.601343524
42 1 0 -4.51604176 -2.891378656 -12.132023371
43 1 0 4.442871887 -1.615980812 -5.517298354
44 1 0 6.03761609 -1.929776038 -5.675359882
45 1 0 -1.726999105 -6.3761968394 -11.67476238
46 1 0 -2.579903649 -6.8637871084 -12.979165329
47 1 0 1.968949147 1.650307328 -12.871481876
48 1 0 2.879349824 2.946109225 -13.269885185
49 1 0 -0.6757048392 1.627527773 -9.6945884775
50 1 0 -1.53711688 1.628049174 -8.307278258
51 1 0 2.286102819 -0.1849787409 -5.203001581
52 1 0 2.81165542 1.359926542 -5.141960464
53 1 0 4.197506927 -1.154546341 -19.937285478
54 1 0 3.061628334 -0.2907020083 -19.143425574
55 1 0 0.6539058995 -4.358454918 -4.501056771
56 1 0 1.628634882 -4.389923813 -3.191256199
57 1 0 -3.422806152 -1.81508617 -6.987197943
58 1 0 -2.395257586 -2.739825224 -6.117910908
59 1 0 -7.2385328687 5.6003903134 -18.78855219
60 1 0 -8.7441658505 5.0811076314 -19.1492093
61 1 0 -4.677449414 -2.034128648 -15.272958389
62 1 0 -4.407803402 -0.4435959494 -15.019651085
63 1 0 1.11568864 -2.490375062 -10.7742012919
64 1 0 0.001276855 -2.918966848 -9.6601749807
65 1 0 1.512860096 -1.996240257 -13.235795971
66 1 0 0.0309115386 -1.474832798 -12.790123247
67 1 0 5.183217492 -3.263309853 -17.609736084
68 1 0 4.020270641 -2.148990445 -17.87900448
69 1 0 -9.372338324 4.276324491 -17.160657181
70 1 0 5.055937384 3.774762504 -17.416136525
71 1 0 10.136951002 -4.031695823 -15.838275147
72 1 0 9.114366465 -2.760992812 -15.758936236
73 1 0 -2.150134844 -0.9737505046 0.09549427
74 1 0 -3.33297641 -0.5618632624 -0.952311983
75 1 0 -3.761612615 2.818106807 -2.316913241
76 1 0 -3.860916074 4.278710752 -1.593424647
77 1 0 7.327414674 -1.81916643 -19.19366388
78 1 0 -7.578424758 -0.6501467288 -18.762046393
79 1 0 1.800423915 4.694429522 -7.585210169
80 1 0 1.257932584 3.536876659 -6.569121715
81 1 0 5.455498618 -1.253803504 -12.257654539
82 1 0 5.79621491 -1.375553233 -10.6652511544
83 1 0 -1.649271307 1.339884436 -0.411566585
84 1 0 -0.9558494327 1.192024812 -1.882609809
85 1 0 1.676260959 4.364696525 -14.596437148
86 1 0 3.070439189 5.196863607 -14.422015964
87 1 0 4.037184907 2.489621152 -10.4196850367
88 1 0 4.74482978 2.27727486 -11.875989478
89 1 0 3.293898075 -4.931746886 -1.115361408
90 1 0 3.846377494 -4.672051625 -2.629952045
91 1 0 2.948788141 -0.1926101501 -16.4376119
92 1 0 4.169402843 0.0890705238 -17.485186925
93 1 0 -2.189605829 0.2996818942 -5.962517358
94 1 0 -1.311494509 -0.2031784671 -7.244200845
95 1 0 2.242813527 2.511801334 -17.010981811
96 1 0 1.834297375 4.077407859 -16.790420817
97 1 0 2.661887679 2.525571757 -8.033049313
98 1 0 3.891223713 1.505466944 -8.37184911
99 1 0 2.056268614 -2.461073305 -4.949275867
100 1 0 1.842820067 -1.442212521 -6.20745911
101 1 0 6.878593773 -4.680715748 -17.729122004
102 1 0 6.965429062 -5.650348848 -19.040202302
103 1 0 3.459201684 2.943273541 -1.014146494
104 1 0 4.773925259 3.743896839 -1.559271424
105 1 0 0.9356278783 3.48987758 -20.219564125
106 1 0 0.8491315606 3.836901265 -18.626218829
107 1 0 6.222723582 2.139986263 -16.032233162
108 1 0 5.042768777 1.040312439 -15.777114658
109 1 0 4.480639337 -0.4783700589 -8.8533853206
110 1 0 4.947761356 -0.3185690531 -7.296812827
111 1 0 -1.54635428 -0.1130322779 -17.262776865
112 1 0 -1.857102687 -1.715850763 -17.230092835
113 1 0 0.288469149 6.5556020194 -16.07504289
114 1 0 7.017878125 -6.720312471 -15.179432105
115 1 0 -5.791287034 1.249776005 -16.961997859
116 1 0 -4.321404074 0.5410834517 -16.899881843
117 1 0 -4.326377944 -2.975431767 -3.009206897
118 1 0 -3.457722406 -2.541204619 -1.696366362
119 1 0 6.451343824 -1.426070148 -15.538547679
120 1 0 7.787708614 -1.374879217 -16.475656757
121 1 0 1.792362195 -2.80383353 -19.575908397
122 1 0 0.2219478909 -3.211620916 -19.39106544
123 1 0 8.927288969 -3.556335101 -2.687635293
124 1 0 9.785779893 -3.241013297 -4.040495166
125 1 0 -5.188136203 0.8041801687 -1.455194057
126 1 0 -5.398021556 -0.4605138857 -2.466707018
127 1 0 4.242482306 3.737829557 -5.037480053
128 1 0 3.278718888 3.079784184 -6.179756342
129 1 0 4.816915958 -0.959570961 -2.600183578
130 1 0 3.289682163 -1.469477616 -2.327762821
131 1 0 -0.076223575 -5.7639530164 -9.4442878527
132 1 0 1.061819901 -5.9518406704 -10.6002360566
133 1 0 2.901383097 -2.299672631 -10.0058903262
134 1 0 4.443185351 -2.467168062 -9.4945725519
135 1 0 -0.9246268927 0.1851860002 -4.375019256
136 1 0 0.6030142019 0.729010896 -4.182058567
137 1 0 5.758072948 -2.130806456 -14.13185253
138 1 0 4.23450355 -2.605277332 -13.785045387
139 1 0 -6.840173252 1.1590547 -8.358016803
140 1 0 -5.561758095 0.8471182441 -9.3249771776
141 1 0 -2.767763785 -3.469372572 -12.887736676
142 1 0 -1.328837476 -4.131488154 -13.284918451
143 1 0 4.336560912 -6.396326475 -5.983210532
144 1 0 2.832577145 -5.766478267 -6.072558829
145 1 0 -10.934593744 6.8312153964 -7.75110782
146 1 0 -3.486438101 -6.062948165 -8.9843192518
147 1 0 8.415217904 -0.9162841948 -6.552965322
148 1 0 7.504419774 -1.12313865 -5.213442904
149 1 0 6.877196069 1.744810982 -8.790984169
150 1 0 -8.307904587 1.72642941 -7.354317414
151 1 0 1.71815802 1.265305336 -1.831110284
152 1 0 2.766581052 1.786376372 -2.969510539
153 1 0 -1.893639497 -3.309099856 -8.607942136
154 1 0 -2.206603989 -2.937954805 -10.1670976037
155 1 0 7.476156809 0.7847812666 -15.536950728
156 1 0 -7.0006708 1.460818383 -15.616355401
157 1 0 -7.043327056 4.050425685 -2.164848725
158 1 0 -5.875959838 3.55559988 -1.135739246
159 1 0 -0.324356046 4.577817558 -2.791850681
160 1 0 -0.5564665827 4.526963609 -1.176239475
161 1 0 -3.214516534 5.7847273074 -2.443319809
162 1 0 -4.275971052 6.4820909744 -3.469798851
163 1 0 5.261170435 1.608797922 -4.979029674
164 1 0 5.698264293 0.0440894132 -5.144248709
165 1 0 -6.492800492 0.9759994419 -19.75431885
166 1 0 -8.048491666 1.433945899 -19.562539769
167 1 0 4.736603874 -5.426754906 -18.979784448
168 1 0 3.499982327 -4.543020117 -18.382759329
169 1 0 8.973303019 -2.603070874 -7.45079259
170 1 0 7.669179303 -3.272696194 -8.17018007
171 1 0 1.953571038 -3.558829696 -14.177010893
172 1 0 2.12046441 -2.359160559 -15.272274884
173 1 0 -11.318529874 6.228208466 -18.550972354
174 1 0 4.041548744 4.839961651 -19.165868565
175 1 0 -8.818161537 3.404168263 -6.272262852
176 1 0 -7.544601036 2.705067282 -5.526632022
177 1 0 -10.119320335 4.435104857 -6.797515586
178 1 0 -9.993972126 4.883166798 -8.362822887
179 1 0 4.722936113 -4.014114303 -12.466201818
180 1 0 4.76201327 -5.326497218 -11.495230118
181 1 0 0.9941286885 0.3048738126 -18.181395821
182 1 0 0.5185935717 0.6434856018 -19.706475609
183 1 0 -3.780257038 -0.5867413112 -5.140533312
184 1 0 -3.613377983 0.3722273891 -3.829353067
185 1 0 7.450946798 -3.29424373 -14.931911626
186 1 0 6.892362412 -4.419587832 -13.888720043
187 1 0 6.87679331 -1.293857117 -1.227434831
188 1 0 5.663746802 -2.386775363 -1.254010538
189 1 0 5.726718156 0.4948523383 -12.456349762
190 1 0 5.541440316 1.27628633 -13.878215898
191 1 0 -1.345115941 5.474162412 -9.7924418726
192 1 0 6.702864753 -6.8612067964 -9.1218552416
193 1 0 -3.523741606 -6.6128348994 -5.803924444
194 1 0 -4.206705512 -5.8199379834 -4.550314846
195 1 0 -6.718419678 6.247657276 -6.409337464
196 1 0 2.268438413 -6.3956689064 -6.922118282
197 1 0 0.7733168639 -1.339445301 -8.450679288
198 1 0 1.73472105 -0.0229640073 -8.354572594
199 1 0 -0.4798561954 -6.418756643 -3.342932058
200 1 0 -1.487560331 -5.195620167 -2.949066961
201 1 0 -1.706814753 2.03684472 -15.571124856
202 1 0 -1.910633814 2.388888258 -13.98961149
203 1 0 -4.724086406 -5.428441961 -16.38340467
204 1 0 10.346983083 -6.517002345 -17.213694363
205 1 0 -8.625420628 3.233712972 -0.679296362
206 1 0 6.316309771 2.67485338 0.467455777
207 1 0 -4.166139862 -1.460058367 -10.4382936732
208 1 0 -4.861060069 -2.789642556 -9.7933495586
209 1 0 -2.934792527 2.590235955 -19.558624374
210 1 0 -3.725069815 1.407109487 -18.757163422
211 1 0 -5.236260759 1.396127577 -13.71196677
212 1 0 -3.943140696 1.87291571 -14.587854245
213 1 0 4.812992687 -4.370904561 -9.0116535684
214 1 0 6.022101096 -5.468313141 -8.9913553159
215 1 0 9.623188693 -5.5325771634 -1.014586874
216 1 0 9.836165291 -6.6307788074 -2.204231588
217 1 0 6.957031279 -2.900217899 -10.1586525787
218 1 0 7.626640539 -1.52094503 -9.5966104569
219 1 0 8.577527893 -6.607197483 -13.760670502
220 1 0 8.140801364 -5.474317485 -12.668647237
221 1 0 -5.35929543 3.208149393 -15.914931797
222 1 0 -3.85907606 3.745552005 -16.271593685
223 1 0 0.6433386643 -1.480941451 -17.134605246
224 1 0 2.050855763 -2.296630508 -17.276748708
225 1 0 3.260780205 5.9976346184 -10.1925866788
226 1 0 11.279968968 -6.520912393 -11.17447894
227 1 0 7.802415975 -6.599086683 -6.80567334
228 1 0 7.492565414 -5.138080738 -7.466063051
229 1 0 -5.267739933 5.313749504 -17.214674923
230 1 0 -4.557833479 6.727783739 -17.618660297
231 1 0 -5.180107559 -0.1328624703 -7.147712497
232 1 0 -5.86090942 -1.478683239 -6.521662395
233 1 0 -3.478672441 1.861434158 -4.714048164
234 1 0 -3.324032826 3.471150924 -4.486973111
235 1 0 -6.738945935 6.3504025494 -3.191069051
236 1 0 -6.411130246 6.4253249514 -4.789064098
237 1 0 0.1541786649 3.49030012 -4.570950165
238 1 0 1.510849302 3.222667288 -3.702341928
239 1 0 3.847318816 -4.327817486 -7.490212437
240 1 0 4.327683688 -2.869645336 -6.933757087
241 1 0 -3.390254603 3.356395898 -10.0681480866
242 1 0 -2.046549452 3.393992219 -10.995349074
243 1 0 -2.151488054 -5.146427108 -16.13440486
244 1 0 -1.015864388 -6.220385009 -15.661504717
245 1 0 5.308549802 -5.579362085 -3.420201912
246 1 0 6.236700113 -4.55966967 -2.545317595
247 1 0 6.940017956 -3.378706057 7.409652005
248 1 0 8.296584425 -3.625690688 8.284520485
249 1 0 5.069556747 4.189717301 9.3329656126
250 1 0 -10.080259456 5.503617027 8.801925327
251 1 0 -1.228907738 1.605849588 1.989293581
252 1 0 0.0442785651 2.1298486 2.86740667
253 1 0 1.566082899 2.022815755 8.9793451421
254 1 0 0.7236269754 3.417982179 8.8771695548
255 1 0 3.277228617 -0.2262689947 8.604997054
256 1 0 2.00545536 -0.5120646379 7.62134166
257 1 0 -7.137339647 0.9139223282 7.742214417
258 1 0 -6.509394017 2.348251596 7.278480356
259 1 0 -3.12514731 0.8242672141 9.8870701369
260 1 0 -3.835905295 0.7570547692 8.418409944
261 1 0 -5.013675883 -2.149986428 1.998984582
262 1 0 -3.990735331 -1.986506572 0.736631541
263 1 0 -0.6438242821 1.934802716 7.741062096
264 1 0 -1.27196943 0.6994204676 6.877392237
265 1 0 -1.174669551 3.389344619 13.188033081
266 1 0 -0.5356122062 1.918664033 13.496842504
267 1 0 -1.771865391 -1.822074892 6.557944605
268 1 0 -2.372385623 -0.6992837705 5.535508432
269 1 0 0.9592677956 -0.9637816878 16.748461823
270 1 0 1.728941781 -2.384059574 16.98735876
271 1 0 -3.34759579 3.77956971 12.030153721
272 1 0 -2.207156015 4.881284271 11.639922057
273 1 0 -4.321563051 -2.205858094 6.060211536
274 1 0 -4.51604176 -2.891378656 7.529531689
275 1 0 4.442871887 -1.615980812 14.144256706
276 1 0 6.03761609 -1.929776038 13.986195178
277 1 0 -1.726999105 -6.3761968394 7.98679268
278 1 0 -2.579903649 -6.8637871084 6.682389731
279 1 0 1.968949147 1.650307328 6.790073184
280 1 0 2.879349824 2.946109225 6.391669875
281 1 0 -0.6757048392 1.627527773 9.9669665825
282 1 0 -1.53711688 1.628049174 11.354276802
283 1 0 2.286102819 -0.1849787409 14.458553479
284 1 0 2.81165542 1.359926542 14.519594596
285 1 0 4.197506927 -1.154546341 -0.275730418
286 1 0 3.061628334 -0.2907020083 0.518129486
287 1 0 0.6539058995 -4.358454918 15.160498289
288 1 0 1.628634882 -4.389923813 16.470298861
289 1 0 -3.422806152 -1.81508617 12.674357117
290 1 0 -2.395257586 -2.739825224 13.543644152
291 1 0 -7.2385328687 5.6003903134 0.87300287
292 1 0 -8.7441658505 5.0811076314 0.51234576
293 1 0 -4.677449414 -2.034128648 4.388596671
294 1 0 -4.407803402 -0.4435959494 4.641903975
295 1 0 1.11568864 -2.490375062 8.8873537681
296 1 0 0.001276855 -2.918966848 10.0013800793
297 1 0 1.512860096 -1.996240257 6.425759089
298 1 0 0.0309115386 -1.474832798 6.871431813
299 1 0 5.183217492 -3.263309853 2.051818976
300 1 0 4.020270641 -2.148990445 1.78255058
301 1 0 -9.372338324 4.276324491 2.500897879
302 1 0 5.055937384 3.774762504 2.245418535
303 1 0 10.136951002 -4.031695823 3.823279913

As per the documentation for read_data, an atom_style of full requires the following information in each line:

atom-ID molecule-ID atom-type q x y z

That’s seven numbers (three integers and four floating-points); you only have six.

@srtee Thank you, for the speedy response. This part of the input works now. The next problem in the following input file

# Define initial structure
units real
atom_style full

# Read positions data file
read_data data.lammps

# Create bonds for the data file
# Note that coefficients are as follows for atoms (from data.lammps)
group H type 1
group O type 2
group Mo type 3
group S type 4

# Mo-S bonds
create_bonds many Mo S 1 2.0 2.5 
# H-O bonds
create_bonds many H O 2 1.0 1.2 

# Use this paper for force field parameterization (reaggregation section):
# https://pubs.acs.org/doi/10.1021/acs.jpcc.7b00484
# Cutoff distanec for both Lennard-Jones (L-J) and Coulombic interactions are set to 1.2 nm = 12 Å
pair_style lj/cut/coul/long 12.0

# Particle-Particle-Particle-Mesh (PPPM) method
# Calculate long-range electrostatic interactions between particles by dividing the calculation into a short range part handled by particle-particle summation and a large-range part solved using a grid-based Fourier transform method.
# Specify this accuracy to be set to 10^-4, per paper
kspace_style pppm 1e-4

# Define nonbonded L-J parameters for Mo-Mo and S-S interactions

# Format is as follows: atom_coeff atom_coeff σ(Å) ε(kj/mol) q (e)
pair_coeff 3 3 4.43 0.485 0.5 # Mo-Mo
pair_coeff 4 4 3.34 2.085 -0.25 # S-S

# Define the angle interactions in the LAMMPS script
angle_style harmonic
angle_coeff 1 1187.7 83.8  # S-Mo-S angle
angle_coeff 2 2050.0 83.8  # Mo-S-Mo angle

# Lastly, we define the water ff parameters using the SPC/E model
# LAMMPS provides example here: https://docs.lammps.org/Howto_spc.html
pair_coeff 1 1 0.1553 3.166
pair_coeff 1 2 0.0 1.0
pair_coeff 2 2 0.0 1.0

# Specify bond information for the water
bond_style zero
bond_coeff 1 1.0

# Define the angle interactions for the water
angle_style zero
angle_coeff 1 109.47

# This part of the code, specifies computation and running the calculation
# We begin by performing a quick energy minimization of the system
# Format is energytol forcetol maxiter maxeval
minimize 1.0e-4 1.0e-4 1000 1000

# Define Nosé-Hoover barostat and thermostat, per paper
# T = 300 K, P = 0.1 MPa
# Format is as follows id atoms command(npt) temp tstart tstop tdamp(time units) isotropic(pressure setting) pstart pstop pdamp(time units) 
fix NPT all npt temp 300.0 300.0 100.0 iso 0.1 0.1 1000.0

# Lastly, we will equilibrate the system for 5 ns, per paper instructions
timestep 1.0
run 5000000

The issue seems to be this part:

# Mo-S bonds
create_bonds many Mo S 1 2.0 2.5 
# H-O bonds
create_bonds many H O 2 1.0 1.2 

As I am getting this error:

ERROR: Invalid bond type in create_bonds command (../create_bonds.cpp:134)
Last command: create_bonds many Mo S 1 2.0 2.5

When I go to documentation, I find that it probably has to do with the fact that no bond types are specified. Could you help me with this problem?