Debian Codegraph @

examples/coarse_grained/simple_examples/2bead_heteropolymer/moltemplate_files/system.lt

raw
1 import "polymer.lt"
2
3
4 # Specify the periodic boundary conditions:
5 write_once("Data Boundary") {
6 0 180.0 xlo xhi
7 0 180.0 ylo yhi
8 0 180.0 zlo zhi
9 }
10
11
12 # Create 27 polymers (=3x3x3) in a rectangular grid
13
14 polymers = new Polymer [3].move(60.0, 0, 0)
15 [3].move(0, 60.0, 0)
16 [3].move(0, 0, 60.0)
17
18
19
20
21
22
23
24
25 # ----- everything below is optional: -----
26 # Shift some of the polymers in the Z direction by a distance of 20.0
27
28 polymers[1][*][*].move(0,0,20)
29
30 # We applied this move command to all the
31 # polymers in the middle slab (with constant X).
32 # More examples of applying the "move" command:
33
34 polymers[*][1][*].move(20,0,0)
35 polymers[*][*][1].move(0,20,0)
36