Debian Codegraph @

examples/all_atom/force_field_AMBER/ethylene+benzene/moltemplate_files/system.lt

raw
1 import "ethylene.lt" # <- defines the "Ethylene" molecule type.
2 import "benzene.lt" # <- defines the "Benzene" molecule type.
3
4
5 # Periodic boundary conditions:
6 write_once("Data Boundary") {
7 0.0 48.00 xlo xhi
8 0.0 48.00 ylo yhi
9 0.0 48.00 zlo zhi
10 }
11
12 # Create 216 "Ethylene" molecules and arrange them in a 6x6x6 cubic lattice
13 # with 8.0 Angstrom spacing.
14
15 ethylenes = new Ethylene[6].move(8.0, 0, 0)
16 [6].move(0, 8.0, 0)
17 [6].move(0, 0, 8.0)
18
19 # Create 108 "Benzene" molecules and arrange them in a 6x6x3 cubic lattice with
20 # 8.0 Angstrom spacing in the x,y directions and 16 Anstrom spacing along Z.
21
22 benzenes = new Benzene[6].move(8.0, 0, 0)
23 [6].move(0, 8.0, 0)
24 [3].move(0, 0, 16.0)
25
26 # Now shift the positions of all of the benzene molecules,
27 # to reduce the chance that they overlap with the ethylene molecules.
28
29 benzenes[*][*][*].move(4.0, 4.0, 4.0)
30
31
32
33 # Note1: You can use the "new random" command to create mixtures of different
34 # molecule types containing an arbitrary number of molecules arranged on
35 # a periodic lattice. (This works if all molecules have similar size.)
36 # See manual (ch8.9.1): https://moltemplate.org/doc/moltemplate_manual.pdf
37 # Note2: More generally you can use PACKMOL to create mixtures of molecules.
38 # It allows us to omit the coordinates and .move() commands. And you can
39 # specify the number of molecules you want more precisely. See example:
40 # https://github.com/jewettaij/moltemplate/tree/master/examples/all_atom/force_field_OPLSAA/ethylene+benzene_PACKMOL/