~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/methane/moltemplate_files/oplsaa_lt_generator/README.TXT

  • 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
This directory contains instructions for creating a a moltemplate file
 
2
("oplsaa.lt") containing force-field definitions relevant to the "Methane" 
 
3
molecule.  (However, these instructions should work for other molecules too.)
 
4
 
 
5
--- Instructions ---
 
6
 
 
7
First, check and see if there is an "oplsaa_subset.prm" file present.
 
8
If not, then download this file:
 
9
 
 
10
http://dasher.wustl.edu/tinker/distribution/params/oplsaa.prm
 
11
   This file is also available here:
 
12
http://dasher.wustl.edu/ffe/distribution/params/oplsaa.prm
 
13
 
 
14
and save this file as "oplsaa_subset.prm".  Then you must EDIT THIS FILE
 
15
so that it only contains atom types you plan to have in your simulation
 
16
(see below for details).  Then run the opls_moltemplate.py script this way:
 
17
 
 
18
 
 
19
python oplsaa_moltemplate.py  oplsaa_subset.prm
 
20
 
 
21
 
 
22
This will create a file named "oplsaa.lt"
 
23
Look over the newly created "oplsaa.lt" file.
 
24
Then move this file to wherever you plan to run moltemplate.  For example:
 
25
 
 
26
mv -f oplsaa.lt ..
 
27
 
 
28
----- DETAILS: Editing the "oplsaa_subset.prm" file -------
 
29
 
 
30
Again, before you run "oplsaa_moltemplate.py", you must edit the "oplsaa.prm"
 
31
file (or "oplsaa_subset.prm file) and eliminate atom types which do not 
 
32
correspond to any of the atoms in your simulation.  This means you must
 
33
look for lines near the beginning of this file which begin with the word "atom"
 
34
and refer to atom types which appear in the simulation you plan to run.  All
 
35
other lines (beginning with the word "atom") must be deleted or commented out.
 
36
(Leave the rest of the file alone.)
 
37
 
 
38
For example:
 
39
If you were working with methane, you would delete every line
 
40
beginning with the word "atom", except for these two lines:
 
41
 
 
42
 
 
43
atom         83   13    CT    "Methane CH4"                  6    12.011    4
 
44
atom         85   46    HC    "Alkane H-C"                   1     1.008    1
 
45
 
 
46
 
 
47
Then you are ready to run oplsaa_moltemplate.py on this file.
 
48
 
 
49
(Note: Atom type numbers, like "83", "85", "46", etc... may vary depending on
 
50
 when you downloaded "oplsaa.prm".)
 
51
 
 
52
 
 
53
----- Using the "oplsaa.lt" file -----
 
54
 
 
55
Once you have created the "oplsaa.lt" file, you can create files (like 
 
56
ethylene.lt) which define molecules that refer to these atom types.
 
57
Here is an excerpt from "methane.lt":
 
58
 
 
59
import "oplsaa.lt"
 
60
Methane inherits OPLSAA {
 
61
  write('Data Atoms') { 
 
62
    list of atoms goes here ...
 
63
  }
 
64
  write('Data Bond List') { 
 
65
    list of bonds goes here ...
 
66
  }
 
67
}
 
68
 
 
69
And then run moltemplate.
 
70
 
 
71
 
 
72
-----------  CHARGE: -----------
 
73
 
 
74
By default, the OPLSAA force-field assigns atom charge according to atom type.
 
75
When you run moltemplate, it will create a file named "system.in.charges",
 
76
containing commands like:
 
77
 
 
78
set type 2 charge -0.42
 
79
set type 3 charge 0.21
 
80
 
 
81
(This assumes your main moltemplate file is named "system.lt".  If it was
 
82
named something else, eg "polymer.lt", then the file created by moltemplate
 
83
will be named "polymer.in.charges".)
 
84
 
 
85
Include these commands somewhere in your LAMMPS input script 
 
86
(or use the LAMMPS "include" command to load the commands in system.in.charges)
 
87
 
 
88
Note that the atom numbers (eg "2", "3") in this file will not match the 
 
89
OPLS atom numbers.  (Check the output_ttree/ttree_assignments.txt file,
 
90
created by moltemplate, to see a table of "@atom" type numbers translated 
 
91
from OPLSAA into LAMMPS.)
 
92
 
 
93
----------- CREDIT -----------
 
94
 
 
95
If you use these tools and you publish a paper using OPLSAA, please also cite 
 
96
the TINKER program.  (Because these examples use the "oplsaa.prm" file which
 
97
is distributed with TINKER.)  I think these are the relevant citations:
 
98
 
 
99
1) Ponder, J. W., & Richards, F. M. (1987). "An efficient newton‐like method for molecular mechanics energy minimization of large molecules. Journal of Computational Chemistry", 8(7), 1016-1024.
 
100
 
 
101
2) Ponder, J. W, (2004) "TINKER: Software tools for molecular design", http://dasher.wustl.edu/tinker/
 
102
 
 
103
-------------------------------
 
104
 
 
105
Andrew Jewett and Jason Lambert
 
106
May, 2014
 
107
 
 
108
Please email bugs to jewett.aij@gmail.com and jlamber9@gmail.com