import "polymer.lt" # Specify the periodic boundary conditions: write_once("Data Boundary") { 0 180.0 xlo xhi 0 180.0 ylo yhi 0 180.0 zlo zhi } # Create 27 polymers (=3x3x3) in a rectangular grid polymers = new Polymer [3].move(60.0, 0, 0) [3].move(0, 60.0, 0) [3].move(0, 0, 60.0) # ----- everything below is optional: ----- # Shift some of the polymers in the Z direction by a distance of 20.0 polymers[1][*][*].move(0,0,20) # We applied this move command to all the # polymers in the middle slab (with constant X). # More examples of applying the "move" command: polymers[*][1][*].move(20,0,0) polymers[*][*][1].move(0,20,0)