Debian Codegraph @

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