~ubuntu-branches/debian/sid/lammps/sid

« back to all changes in this revision

Viewing changes to tools/moltemplate/examples/coarse_grained_examples/abstract_translocation/moltemplate_files/walls.lt

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2015-04-29 23:44:49 UTC
  • mfrom: (5.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20150429234449-mbhy9utku6hp6oq8
Tags: 0~20150313.gitfa668e1-1
Upload into unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
####################### WALLS ##########################
 
2
 
 
3
import "wall_single.lt"
 
4
 
 
5
# Create a wall at position z=6.0    (6.0 = 2*3.0)
 
6
 
 
7
wall1 = new MoleculeB [12].move(3.0, 0, 0)
 
8
                      [12].move(0, 3.0, 0)
 
9
 
 
10
wall1[*][*].move(0,0,6.0)
 
11
 
 
12
# Create a second wall at position z=24.0   (24.0 = 8*3.0)
 
13
 
 
14
wall2 = new MoleculeB [12].move(3.0, 0, 0)
 
15
                      [12].move(0, 3.0, 0)
 
16
 
 
17
wall2[*][*].move(0,0,24.0)
 
18
 
 
19
# Now delete some of the molecules in "wall2" to create a hole.
 
20
 
 
21
delete wall2[6-7][6-9]
 
22
delete wall2[5-8][7-8]
 
23