Debian Codegraph @

examples/all_atom/force_field_explicit_parameters/nanotube+water/moltemplate_files/spce.lt

raw
1 # file "spce.lt"
2 #
3 # h1 h2
4 # \ /
5 # o
6
7 SPCE {
8
9 # AtomID MoleculeID AtomType Charge X Y Z
10
11 write("Data Atoms") {
12 $atom:o $mol:w @atom:O -0.8476 0.0000000 0.00000 0.000000
13 $atom:h1 $mol:w @atom:H 0.4238 0.8164904 0.00000 0.5773590
14 $atom:h2 $mol:w @atom:H 0.4238 -0.8164904 0.00000 0.5773590
15 }
16
17 write_once("Data Masses") {
18 @atom:O 15.9994
19 @atom:H 1.008
20 }
21
22 write("Data Bonds") {
23 $bond:oh1 @bond:OH $atom:o $atom:h1
24 $bond:oh2 @bond:OH $atom:o $atom:h2
25 }
26
27 write("Data Angles") {
28 $angle:hoh @angle:HOH $atom:h1 $atom:o $atom:h2
29 }
30
31 write_once("In Settings") {
32 bond_coeff @bond:OH harmonic 600.0 1.0
33 angle_coeff @angle:HOH harmonic 75.0 109.47
34 pair_coeff @atom:O @atom:O lj/cut/coul/long 0.1553 3.166
35 pair_coeff @atom:H @atom:H lj/cut/coul/long 0.0 0.0
36
37 group spce type @atom:O @atom:H
38 fix fShakeSPCE spce shake 0.0001 10 100 b @bond:OH a @angle:HOH
39 # It's a good idea to put this command in your LAMMPS input scripts:
40 # unfix fShakeSPCE # <-- this disables fix shake
41 # ...before minimization and pressure equilibration. (compatibility issues)
42 }
43
44 write_once("In Init") {
45 # -- Default styles (for solo "SPCE" water) --
46 units real
47 atom_style full
48 # (Hybrid force fields were not necessary but are used for portability.)
49 pair_style hybrid lj/cut/coul/long 9.0 10.0
50 bond_style hybrid harmonic
51 angle_style hybrid harmonic
52 kspace_style pppm 0.0001
53 #pair_modify mix arithmetic # LEAVE THIS UNSPECIFIED!
54 }
55
56 } # end of definition of "SPCE" water molecule type