You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
simplified the procedure for using the OPLSAA force field. (Checking for alternate dihedrals and their associated warnings is now clearly marked as optional. Consequently the OPLSAA examples now run moltemplate.sh the ordinary way using "moltemplate.sh system.lt")
Copy it to the folder with your other .lt files for the simulation you are working on. (Moltemplate will look in the local folder first for all the .lt files that it needs, including "oplsaa2023.lt".)
21
-
This will protect you from force-field parameter changes, and you
22
-
will be able to continue using your existing atom and bonded type names safely.
23
-
24
-
25
-
26
-
27
-
### Atomic charges
11
+
## Atomic charges
28
12
29
13
In most of the OPLSAA examples,
30
14
the atomic charges are determined by their @atom types
@@ -35,7 +19,6 @@ LT files will be ignored.)*
35
19
**These charges can be overridden.**
36
20
37
21
38
-
39
22
### Customizing atomic charges in OPLSAA molecules
40
23
41
24
#### Background information
@@ -86,39 +69,68 @@ of the [spce.lt](waterSPCE+methane/moltemplate_files/spce.lt) file.
86
69
87
70
88
71
72
+
-------------------------
89
73
74
+
## Minor issue: Bloated lammps input scripts
90
75
76
+
By default, LAMMPS input scripts prepared using moltemplate contain
77
+
the entire contents of the OPLSAA force-field, even when simulating
78
+
small systems with just a few atom types.
79
+
This is harmless, but if you want to get rid of this extra information,
80
+
follow the instructions in the "README_remove_irrelevant_info.sh" files.
91
81
92
-
### Optional: Duplicate dihedrals, angles, and bonds
93
82
94
-
Sometimes, even after you have specified the (OPLSAA-specific) atom types
95
-
for the atoms in your molecule, there may be multiple possible choices
96
-
of dihedral, angle, or bond interactions between those atoms
97
-
available in OPLSAA force field (stored in the "oplsaa2023.lt" file).
98
-
When that happens, moltemplate.sh will *attempt to make a reasonable guess*,
99
-
chosing the original (oldest, most common) version of the interaction between
100
-
those atom types. However, you can override this choice:
83
+
-------------------------
101
84
102
-
- The new (2023) version of OPLSAA contains many additional choices for your dihedral, angle, and bond interactions. This gives you an opportunity to improve your simulation accuracy, but it also requires more effort on your part. To see the list of choices, you must now run moltemplate with the "-report-duplicates bytype __" arguments. For example:
- If you see a file named "warning_duplicate_dihedrals.txt", "warning_duplicate_angles.txt", "warning_duplicate_bonds.txt", or "warning_duplicate_impropers.txt" after running moltemplate, then it might be a good idea to read the first few warning messages
107
-
in those files and modify your .lt files accordingly (for example, by adding a custom "Data Dihedrals" section). Several example .lt files demonstrate how to do that, including:
The OPLSAA force field contains many alternative parameter choices for
89
+
dihedral, angle, and bond interactions.
90
+
It's not always possible to for determine the optimal choice of dihedral angle
91
+
parameters from the @atom types alone. By default, moltemplate hides this
92
+
issue, and will *attempt to make a reasonable guess*, chosing the most generic
93
+
version of the interaction between those atom types.
94
+
*(The same is true with most other molecule builder programs.)*
111
95
96
+
***Most of the time, this is fine.***
97
+
At the beginning when you are trying to get your simulation to run,
98
+
don't worry about choosing the optimal dihedral, angle, or bond parameters.
99
+
The default choice is often good enough.
112
100
113
-
### Minor issue: Improper angles
101
+
*Eventually, if you want to improve the accuracy of your simulation somewhat,
102
+
then you can detect these ambiguous duplicate dihedrals and angles.
103
+
Then you can override the default choice by following the (somewhat laborious)
104
+
procedure below.*
114
105
115
-
The style of improper interaction used by OPLS force fields depends on an angle which depends on the order of the atoms surrounding the central atom. When multiple atoms have the same type, this creates ambiguity in atom order. Since there is no guarantee that moltemplate will choose the same atom order as other molecule builders (such as VMD), this can lead to small unavoidable discrepancies in energies and forces computed by LAMMPS and NAMD. But their effect should be neglegible.
116
-
*(Please let us know if this is not the case.)*
117
-
118
-
119
-
120
-
### Minor issue: Bloated lammps input scripts
121
-
122
-
By default, LAMMPS input scripts prepared using moltemplate contain the entire contents of the OPLS force-field, even when simulating small systems with just a few atom types.
106
+
Again, moltemplate hides this issue by default.
107
+
To be informed when moltemplate detects multiple ambiguous dihedrals
108
+
(or angles), you must run moltemplate.sh with the optional
0 commit comments