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

« back to all changes in this revision

Viewing changes to tools/moltemplate/examples/all_atom_examples/force_field_OPLSAA/waterSPCE+methane/moltemplate_files/system.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
import "spce.lt"     # <- defines the "SPCE" (water) molecule type.
 
2
import "methane.lt"  # <- defines the "Methane" molecule type (uses OPLSAA)
 
3
 
 
4
# Periodic boundary conditions:
 
5
write_once("Data Boundary") {
 
6
   0.0  41.50  xlo xhi
 
7
   0.0  41.50  ylo yhi
 
8
   0.0  41.50  zlo zhi
 
9
}
 
10
 
 
11
# The next command generates a (rather dense) cubic lattice with
 
12
# spacing 3.45 Angstroms. (The pressure must be equilibrated later.)
 
13
 
 
14
waters = new SPCE [12].move(0.00, 0.00, 3.45) 
 
15
                  [12].move(0.00, 3.45, 0.00) 
 
16
                  [12].move(3.45, 0.00, 0.00)
 
17
 
 
18
# Now add methane molecules:
 
19
 
 
20
methanes = new Methane [4].move(0, 0, 10.35)
 
21
                       [4].move(0, 10.35, 0)
 
22
                       [4].move(10.35, 0, 0)
 
23
 
 
24
# Move the methane molecules slightly to reduce overlap with the water
 
25
methanes[*][*][*].move(1.725, 1.725, 1.725)
 
26