<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://biomolmd.org/mw/index.php?action=history&amp;feed=atom&amp;title=Tutorial%3Akturn_tut</id>
	<title>Tutorial:kturn tut - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://biomolmd.org/mw/index.php?action=history&amp;feed=atom&amp;title=Tutorial%3Akturn_tut"/>
	<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Tutorial:kturn_tut&amp;action=history"/>
	<updated>2026-11-16T03:22:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Tutorial:kturn_tut&amp;diff=2182&amp;oldid=prev</id>
		<title>Brendan: /* Box axes (default but system-specific) */</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Tutorial:kturn_tut&amp;diff=2182&amp;oldid=prev"/>
		<updated>2026-04-22T17:01:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Box axes (default but system-specific)&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:01, 22 April 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l203&quot;&gt;Line 203:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 203:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Copy the numeric values verbatim from &amp;lt;code&amp;gt;minimize_final.key&amp;lt;/code&amp;gt; (Tinker-GUI writes them there after solvation). The same three lines go into every key file for a given system. For a cubic box all three values are equal; for a rectangular box they differ.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Copy the numeric values verbatim from &amp;lt;code&amp;gt;minimize_final.key&amp;lt;/code&amp;gt; (Tinker-GUI writes them there after solvation). The same three lines go into every key file for a given system. For a cubic box all three values are equal; for a rectangular box they differ.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;If minimization isn&#039;t converging, it&#039;s possible that the box size entered is slightly too small. Increase each axis by 1-4 to prevent atoms overlapping across  the periodic box boundaries.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Step-specific terms ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Step-specific terms ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Brendan</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Tutorial:kturn_tut&amp;diff=2181&amp;oldid=prev</id>
		<title>Brendan at 16:58, 22 April 2026</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Tutorial:kturn_tut&amp;diff=2181&amp;oldid=prev"/>
		<updated>2026-04-22T16:58:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://biomolmd.org/mw/index.php?title=Tutorial:kturn_tut&amp;amp;diff=2181&amp;amp;oldid=2180&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Brendan</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Tutorial:kturn_tut&amp;diff=2180&amp;oldid=prev</id>
		<title>Brendan at 16:57, 22 April 2026</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Tutorial:kturn_tut&amp;diff=2180&amp;oldid=prev"/>
		<updated>2026-04-22T16:57:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://biomolmd.org/mw/index.php?title=Tutorial:kturn_tut&amp;amp;diff=2180&amp;amp;oldid=2176&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Brendan</name></author>
	</entry>
	<entry>
		<id>https://biomolmd.org/mw/index.php?title=Tutorial:kturn_tut&amp;diff=2176&amp;oldid=prev</id>
		<title>Brendan: Page created</title>
		<link rel="alternate" type="text/html" href="https://biomolmd.org/mw/index.php?title=Tutorial:kturn_tut&amp;diff=2176&amp;oldid=prev"/>
		<updated>2026-04-22T16:35:44Z</updated>

		<summary type="html">&lt;p&gt;Page created&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Purpose =&lt;br /&gt;
This page documents the standard protocol for preparing and running molecular dynamics (MD) simulations of RNA k-turn systems (and other similar small biomolecular solutes) using AMOEBA in Tinker9. It takes a starting PDB structure through system preparation, equilibration, and production MD. Umbrella sampling / pulling is &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; covered here.&lt;br /&gt;
&lt;br /&gt;
= Overview =&lt;br /&gt;
&lt;br /&gt;
# Obtain a clean starting PDB&lt;br /&gt;
# Standardize the PDB via a &amp;lt;code&amp;gt;pdbxyz&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;xyzpdb&amp;lt;/code&amp;gt; round-trip, which also generates the &amp;lt;code&amp;gt;.seq&amp;lt;/code&amp;gt; file&lt;br /&gt;
# Solvate + neutralize + build a key file with Tinker-GUI&lt;br /&gt;
# Energy minimization (&amp;lt;code&amp;gt;minimize9&amp;lt;/code&amp;gt;)&lt;br /&gt;
# Heating: 5 temperatures with strong position restraints on the solute (NVT)&lt;br /&gt;
# Restraint phase-down: gradually relax position restraints at 298 K (NVT)&lt;br /&gt;
# Production: unrestrained NPT MD&lt;br /&gt;
&lt;br /&gt;
Force field: AMOEBA (&amp;lt;code&amp;gt;amoebabio18.prm&amp;lt;/code&amp;gt;). Engine: [https://github.com/TinkerTools/tinker Tinker8] and [https://github.com/TinkerTools/tinker9 Tinker9] (&amp;lt;code&amp;gt;dynamic9&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;minimize9&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pdbxyz&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;xyzpdb&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
= 1. PDB preparation =&lt;br /&gt;
&lt;br /&gt;
== Source PDB ==&lt;br /&gt;
&lt;br /&gt;
Start from a crystal / cryo-EM structure in PDB format. A good test / example system for this protocol is &amp;#039;&amp;#039;&amp;#039;[https://www.rcsb.org/structure/5FJ0 PDB 5FJ0]&amp;#039;&amp;#039;&amp;#039; — a 27-nt RNA k-turn. Download the file in &amp;#039;&amp;#039;&amp;#039;PDB format&amp;#039;&amp;#039;&amp;#039; (on RCSB: &amp;#039;&amp;#039;Download Files → PDB Format&amp;#039;&amp;#039;); the direct link is [https://files.rcsb.org/download/5FJ0.pdb files.rcsb.org/download/5FJ0.pdb]. The mmCIF format will not work with &amp;lt;code&amp;gt;pdbxyz&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Before running anything:&lt;br /&gt;
&lt;br /&gt;
* Decide the protonation states of ionizable residues (for RNA/DNA the standard assumption is deprotonated phosphates; for proteins use PROPKA or similar).&lt;br /&gt;
* Remove or keep heteroatoms intentionally (crystallographic waters, buffer ions, ligands). &amp;lt;code&amp;gt;pdbxyz&amp;lt;/code&amp;gt; will silently drop anything it doesn&amp;#039;t recognize.&lt;br /&gt;
* Decide what to do with missing atoms/residues. If the structure is incomplete, fix it externally first (e.g. with PDBFixer) &amp;#039;&amp;#039;&amp;#039;before&amp;#039;&amp;#039;&amp;#039; the steps below.&lt;br /&gt;
&lt;br /&gt;
== pdbxyz → xyzpdb round-trip ==&lt;br /&gt;
&lt;br /&gt;
The goal of this step is to produce a PDB in the exact format that &amp;lt;code&amp;gt;xyzpdb&amp;lt;/code&amp;gt; will emit from then on, so that any future PDB written from an MD trajectory (for visualization, diffing, or restart) is line-for-line comparable to the starting reference.&lt;br /&gt;
&lt;br /&gt;
 pdbxyz  myfile.pdb  -k tinker.key&lt;br /&gt;
 xyzpdb  myfile.xyz  -k tinker.key&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;code&amp;gt;tinker.key&amp;lt;/code&amp;gt; points at the AMOEBA parameter file:&lt;br /&gt;
&lt;br /&gt;
 parameters /path/to/Tinker8/latest/params/amoebabio18.prm&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;pdbxyz outputs two files:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;lt;code&amp;gt;myfile.xyz&amp;lt;/code&amp;gt; — the Tinker-format coordinate file&lt;br /&gt;
* &amp;lt;code&amp;gt;myfile.seq&amp;lt;/code&amp;gt; — a sequence / base-pair map of the solute. This file is required whenever &amp;lt;code&amp;gt;xyzpdb&amp;lt;/code&amp;gt; is run.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;xyzpdb requires the .seq file to share the same prefix as the .xyz&amp;#039;&amp;#039;&amp;#039; — there is no command-line option to point at a specific .seq. If you call &amp;lt;code&amp;gt;xyzpdb myfile.xyz&amp;lt;/code&amp;gt;, Tinker looks for &amp;lt;code&amp;gt;myfile.seq&amp;lt;/code&amp;gt; in the same directory. If you rename or move the .xyz, rename / copy the .seq to match.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Output files are not overwritten.&amp;#039;&amp;#039;&amp;#039; Tinker writes to the next available numeric suffix:&lt;br /&gt;
&lt;br /&gt;
 myfile.pdb      (original)&lt;br /&gt;
 myfile.pdb_2    (first xyzpdb output)&lt;br /&gt;
 myfile.pdb_3    (next xyzpdb output)&lt;br /&gt;
 …&lt;br /&gt;
&lt;br /&gt;
Same convention for &amp;lt;code&amp;gt;.xyz_2&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;.xyz_3&amp;lt;/code&amp;gt;, etc. The &amp;#039;&amp;#039;&amp;#039;canonical&amp;#039;&amp;#039;&amp;#039; PDB for this system is the first xyzpdb output (&amp;lt;code&amp;gt;myfile.pdb_2&amp;lt;/code&amp;gt;). Use that — not the raw crystal PDB — as your reference structure from this point on when comparing to simulation frames.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Why do the round-trip:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* The crystal PDB contains headers (&amp;lt;code&amp;gt;HEADER&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;TITLE&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;SOURCE&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;COMPND&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;REMARK&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;MASTER&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;CONECT&amp;lt;/code&amp;gt;…) and metadata that &amp;lt;code&amp;gt;xyzpdb&amp;lt;/code&amp;gt; does not emit.&lt;br /&gt;
* Hydrogens added by &amp;lt;code&amp;gt;pdbxyz&amp;lt;/code&amp;gt; get standardized names/ordering.&lt;br /&gt;
* Atom numbering, chain ID handling, and record termination all match the Tinker convention after the round-trip.&lt;br /&gt;
&lt;br /&gt;
Without this step, a diff between the input PDB and a later xyzpdb output is dominated by format noise rather than real coordinate differences.&lt;br /&gt;
&lt;br /&gt;
= 2. Solvation and neutralization (Tinker-GUI) =&lt;br /&gt;
&lt;br /&gt;
System building is handled by &amp;lt;code&amp;gt;cli.py&amp;lt;/code&amp;gt; in [https://github.com/prenlab/Tinker-GUI Tinker-GUI] at &amp;lt;code&amp;gt;/path/to/Tinker-GUI&amp;lt;/code&amp;gt;. The program takes a YAML file and produces a minimization-ready &amp;lt;code&amp;gt;.xyz&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;.key&amp;lt;/code&amp;gt; pair, plus intermediate files in &amp;lt;code&amp;gt;temp/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== config.yaml ==&lt;br /&gt;
&lt;br /&gt;
Example for an RNA k-turn system with neutralizing Mg²⁺/Na⁺/Cl⁻, no added bulk salt, 12 Å buffer:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot;&amp;gt;&lt;br /&gt;
tinker_path: /path/to/Tinker8/latest/bin&lt;br /&gt;
amoeba_prm:  /path/to/Tinker8/latest/params/amoebabio18.prm&lt;br /&gt;
output_prefix: minimize&lt;br /&gt;
solutes:&lt;br /&gt;
  nucleic_acid:&lt;br /&gt;
    - myfile.pdb            # use the round-tripped PDB from step 1&lt;br /&gt;
solvent:&lt;br /&gt;
  name: water&lt;br /&gt;
ions:&lt;br /&gt;
  neutralizers:&lt;br /&gt;
    - Mg2+&lt;br /&gt;
    - Na+&lt;br /&gt;
    - Cl-&lt;br /&gt;
  salts:&lt;br /&gt;
    names:&lt;br /&gt;
      - Mg2+&lt;br /&gt;
      - Na+&lt;br /&gt;
      - Cl-&lt;br /&gt;
    concentrations:&lt;br /&gt;
      - 0.0&lt;br /&gt;
      - 0.0&lt;br /&gt;
      - 0.0&lt;br /&gt;
box:&lt;br /&gt;
  type: rectangular          # cubic or rectangular&lt;br /&gt;
  buffer: 12.0               # Å between solute and box wall&lt;br /&gt;
  # size: [60, 60, 60]       # if set, overrides buffer&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Key fields:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;lt;code&amp;gt;output_prefix&amp;lt;/code&amp;gt; — the prefix for the final output files. If set to &amp;lt;code&amp;gt;X&amp;lt;/code&amp;gt;, Tinker-GUI writes &amp;lt;code&amp;gt;X_final.xyz&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;X_final.key&amp;lt;/code&amp;gt;. In the rest of this page we use &amp;lt;code&amp;gt;minimize&amp;lt;/code&amp;gt;, giving &amp;lt;code&amp;gt;minimize_final.xyz&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;minimize_final.key&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;neutralizers&amp;lt;/code&amp;gt; — Tinker-GUI adds whichever of these are needed to zero out the net charge. For RNA (negative backbone) you&amp;#039;ll typically need Mg²⁺ and/or Na⁺.&lt;br /&gt;
* &amp;lt;code&amp;gt;salts.concentrations&amp;lt;/code&amp;gt; — set to 0.0 for pure counter-ion neutralization. Use non-zero values (mol/L) to add bulk salt on top of neutralization.&lt;br /&gt;
* &amp;lt;code&amp;gt;buffer: 12.0&amp;lt;/code&amp;gt; — distance from solute to the nearest box face. 12–15 Å is standard; 15 Å is safer for larger conformational changes.&lt;br /&gt;
&lt;br /&gt;
== Running Tinker-GUI ==&lt;br /&gt;
&lt;br /&gt;
 python /path/to/Tinker-GUI/cli.py -c config.yaml&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Outputs:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;lt;code&amp;gt;minimize_final.xyz&amp;lt;/code&amp;gt; — solvated, neutralized starting structure&lt;br /&gt;
* &amp;lt;code&amp;gt;minimize_final.key&amp;lt;/code&amp;gt; — matching key file with box dimensions and parameter path&lt;br /&gt;
* &amp;lt;code&amp;gt;temp/&amp;lt;/code&amp;gt; — intermediate files (solute-only xyz, water box, per-ion-addition snapshots, logs)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Rerunning:&amp;#039;&amp;#039;&amp;#039; if Tinker-GUI errors or you need to change config and re-run, always clear the intermediate directory first:&lt;br /&gt;
&lt;br /&gt;
 rm -rf temp&lt;br /&gt;
&lt;br /&gt;
Otherwise Tinker-GUI may pick up stale intermediates and silently produce a mismatched output. The same applies if you need to rebuild from scratch for any reason — delete &amp;lt;code&amp;gt;temp/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Sanity check ==&lt;br /&gt;
&lt;br /&gt;
Before proceeding, verify the system is sensible:&lt;br /&gt;
&lt;br /&gt;
 analyze  minimize_final.xyz  -k minimize_final.key  em&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Net charge should be 0&amp;#039;&amp;#039;&amp;#039; (within rounding). If it isn&amp;#039;t, see below.&lt;br /&gt;
* Total dipole should be finite (no NaNs).&lt;br /&gt;
&lt;br /&gt;
 analyze  minimize_final.xyz  -k minimize_final.key  ep&lt;br /&gt;
&lt;br /&gt;
* Every atom should have multipole and vdW parameters. Missing parameters on any atom means an unrecognized residue / atom name that &amp;lt;code&amp;gt;pdbxyz&amp;lt;/code&amp;gt; couldn&amp;#039;t map.&lt;br /&gt;
&lt;br /&gt;
=== Fixing a non-zero net charge ===&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;code&amp;gt;analyze ... em&amp;lt;/code&amp;gt; reports a non-zero net charge, either the neutralizer list in &amp;lt;code&amp;gt;config.yaml&amp;lt;/code&amp;gt; was wrong, or the counts Tinker-GUI added don&amp;#039;t quite cancel the solute charge. Don&amp;#039;t re-run the full pipeline — edit the &amp;lt;code&amp;gt;.xyz&amp;lt;/code&amp;gt; directly. Two operations cover every case:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Converting a water to an ion&amp;#039;&amp;#039;&amp;#039; (when net charge is negative and you need another cation):&lt;br /&gt;
# Find a water molecule whose oxygen is far from the solute (e.g. ≥ 5 Å away).&lt;br /&gt;
# Delete both hydrogen lines of that water.&lt;br /&gt;
# Change the oxygen&amp;#039;s atom type (last integer before the connectivity columns) to the desired ion&amp;#039;s AMOEBA type — e.g. for Na⁺ in amoebabio18 the oxygen type (&amp;lt;code&amp;gt;349&amp;lt;/code&amp;gt;) becomes Na⁺ type (&amp;lt;code&amp;gt;352&amp;lt;/code&amp;gt;).&lt;br /&gt;
# Clear the oxygen line&amp;#039;s connectivity entries (an ion has no bonds).&lt;br /&gt;
# Update the atom count on line 1 of the file to match the new total (decrease by 2 for every water → ion conversion).&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Do not renumber the remaining atom indices&amp;#039;&amp;#039;&amp;#039; — Tinker is tolerant of gaps.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Deleting an ion&amp;#039;&amp;#039;&amp;#039; (when net charge is positive and you have one more cation than needed):&lt;br /&gt;
# Delete the ion&amp;#039;s atom line.&lt;br /&gt;
# Decrease the atom count on line 1 by 1.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Do not renumber&amp;#039;&amp;#039;&amp;#039; — leave the gap in the indices.&lt;br /&gt;
&lt;br /&gt;
After either operation, re-run &amp;lt;code&amp;gt;analyze ... em&amp;lt;/code&amp;gt; to confirm the net charge is now 0. (There&amp;#039;s also a script in &amp;lt;code&amp;gt;~/scripts/&amp;lt;/code&amp;gt; that does the water → Na⁺ replacement in bulk while respecting distance filters — useful when many waters need replacing to reach a target salt concentration.)&lt;br /&gt;
&lt;br /&gt;
= 3. Minimization =&lt;br /&gt;
&lt;br /&gt;
Performed by &amp;lt;code&amp;gt;minimize9&amp;lt;/code&amp;gt; with a gradient tolerance of 0.5 kcal/mol/Å, using a key file that includes a position restraint on the solute:&lt;br /&gt;
&lt;br /&gt;
 RESTRAIN-POSITION  -1  N  50.0&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;N&amp;lt;/code&amp;gt; = number of atoms in the original PDB&amp;#039;&amp;#039;&amp;#039; (the solute only — the RNA). &amp;lt;code&amp;gt;RESTRAIN-POSITION -1 N 50.0&amp;lt;/code&amp;gt; restrains atoms 1 through N, leaving everything after atom N (added water, neutralizing ions, bulk salt) free to move. The force constant 50.0 is in kcal/mol/Å².&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;If the source PDB already contained waters or ions that you kept through pdbxyz&amp;#039;&amp;#039;&amp;#039;, set &amp;lt;code&amp;gt;N&amp;lt;/code&amp;gt; to just the RNA atom count, not the RNA + original-waters count — otherwise those waters / ions are held in place too (a 1000-atom RNA plus 15 crystal waters gives a pdbxyz .xyz with 1045 atoms, but you should still set &amp;lt;code&amp;gt;N = 1000&amp;lt;/code&amp;gt; so the crystal waters can move).&lt;br /&gt;
&lt;br /&gt;
Command:&lt;br /&gt;
&lt;br /&gt;
 minimize9  minimize_final.xyz  -k minimize.key  0.5&lt;br /&gt;
&lt;br /&gt;
The trailing &amp;lt;code&amp;gt;0.5&amp;lt;/code&amp;gt; is the gradient tolerance (RMS gradient at which minimization stops, kcal/mol/Å). &amp;#039;&amp;#039;&amp;#039;0.5 is a good default&amp;#039;&amp;#039;&amp;#039;; if minimization is unusually slow or grinds without converging, loosen it to e.g. &amp;lt;code&amp;gt;2.0&amp;lt;/code&amp;gt; — larger value = looser convergence = fewer iterations.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Why a restraint during minimization:&amp;#039;&amp;#039;&amp;#039; without it, small clashes between water/ion placement and the solute can pull the solute geometry off the reference structure before dynamics even starts. The restraint also suppresses any collapse of the experimentally-determined conformation during the initial energy drop.&lt;br /&gt;
&lt;br /&gt;
= 4. Heating (restrained, NVT) =&lt;br /&gt;
&lt;br /&gt;
Five sequential NVT runs at increasing temperatures. All use the same key file (&amp;lt;code&amp;gt;heating.key&amp;lt;/code&amp;gt;) with &amp;lt;code&amp;gt;RESTRAIN-POSITION -1 N 50.0&amp;lt;/code&amp;gt; on the solute and &amp;lt;code&amp;gt;polar-eps 0.01&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Step !! Temperature (K) !! Steps !! dt (fs) !! Total (ps)&lt;br /&gt;
|-&lt;br /&gt;
| Heating_to_10K   || 10  || 200 000 || 2.0 || 400&lt;br /&gt;
|-&lt;br /&gt;
| Heating_to_75K   || 75  || 200 000 || 2.0 || 400&lt;br /&gt;
|-&lt;br /&gt;
| Heating_to_150K  || 150 || 200 000 || 2.0 || 400&lt;br /&gt;
|-&lt;br /&gt;
| Heating_to_225K  || 225 || 200 000 || 2.0 || 400&lt;br /&gt;
|-&lt;br /&gt;
| Heating_to_298K  || 298 || 200 000 || 2.0 || 400&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Command used for each temperature:&lt;br /&gt;
&lt;br /&gt;
 dynamic9  pre_production.xyz  -k heating.key  200000  2.0  10.0  2  &amp;lt;T&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Argument order: &amp;lt;code&amp;gt;nsteps  dt_fs  write_interval_ps  ensemble(2=NVT)  T_K&amp;lt;/code&amp;gt;. NVT does not take a pressure argument — do &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; append &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; at the end.&lt;br /&gt;
&lt;br /&gt;
The output trajectory &amp;lt;code&amp;gt;pre_production.arc&amp;lt;/code&amp;gt; accumulates across all five heating steps (Tinker9 appends to an existing &amp;lt;code&amp;gt;.arc&amp;lt;/code&amp;gt;). Total heating time: 2 ns across 5 temperature rungs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Why this schedule:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Starting at 10 K avoids the initial velocity kick that would shake apart a minimized-but-cold system.&lt;br /&gt;
* Going straight to 298 K routinely produces &amp;quot;induced dipole not converging&amp;quot; errors in AMOEBA because of transient bad contacts. Gradual heating in 5 rungs drains that risk.&lt;br /&gt;
* The strong restraint (FC = 50) keeps the solute essentially frozen while solvent and ions thermalize.&lt;br /&gt;
&lt;br /&gt;
= 5. Restraint phase-down (NVT, 298 K) =&lt;br /&gt;
&lt;br /&gt;
Four sequential NVT runs at 298 K, stepping the solute position-restraint force constant down:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Step !! FC (kcal/mol/Å²) !! Steps !! Total (ps)&lt;br /&gt;
|-&lt;br /&gt;
| Restraint_10    || 10.0 || 200 000 || 400&lt;br /&gt;
|-&lt;br /&gt;
| Restraint_1     || 1.0  || 200 000 || 400&lt;br /&gt;
|-&lt;br /&gt;
| Restraint_0.1   || 0.1  || 200 000 || 400&lt;br /&gt;
|-&lt;br /&gt;
| Restraint_None  || — (no restraint line) || 200 000 || 400&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Each step uses a separate key file (&amp;lt;code&amp;gt;restraint_10.key&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;restraint_1.key&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;restraint_0.1.key&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;restraint_none.key&amp;lt;/code&amp;gt;) that differs only in the RESTRAIN-POSITION line (absent in the last one).&lt;br /&gt;
&lt;br /&gt;
Command (NVT, no pressure argument):&lt;br /&gt;
&lt;br /&gt;
 dynamic9  pre_production.xyz  -k restraint_&amp;lt;FC&amp;gt;.key  200000  2.0  10.0  2  298&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Why step down rather than release at once:&amp;#039;&amp;#039;&amp;#039; an abrupt release at FC = 50 → 0 can cause a sudden &amp;quot;spring release&amp;quot; where the solute snaps to a lower-energy conformation that is different from the experimental reference. A 50 → 10 → 1 → 0.1 → 0 sequence lets the solute relax gradually while solvent / ion distribution tracks it.&lt;br /&gt;
&lt;br /&gt;
After this stage the system is fully equilibrated at 298 K, unrestrained, at the constant-volume box from solvation. 1.6 ns total across the 4 steps.&lt;br /&gt;
&lt;br /&gt;
= 6. Production (NPT) =&lt;br /&gt;
&lt;br /&gt;
The production run is NPT at 298 K, 1 atm, unrestrained:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;barostat MonteCarlo&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;thermostat bussi&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;integrator respa&amp;lt;/code&amp;gt;, 2 fs timestep&lt;br /&gt;
* &amp;lt;code&amp;gt;polar-eps&amp;lt;/code&amp;gt; — tunable, see below&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Starting frame:&amp;#039;&amp;#039;&amp;#039; extract the final frame of the pre-production trajectory into &amp;lt;code&amp;gt;production.xyz&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
 xyz_linecount=$(wc -l &amp;lt; pre_production.xyz)&lt;br /&gt;
 tail -n &amp;quot;$xyz_linecount&amp;quot; pre_production.arc &amp;gt; production.xyz&lt;br /&gt;
&lt;br /&gt;
Then launch production (NPT, so a pressure argument is required):&lt;br /&gt;
&lt;br /&gt;
 dynamic9  production.xyz  -k production.key  5000000  2.0  10.0  4  298  1.0&lt;br /&gt;
&lt;br /&gt;
Argument order (NPT): &amp;lt;code&amp;gt;nsteps  dt_fs  write_interval_ps  ensemble(4=NPT)  T_K  P_atm&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Production length is case-dependent.&amp;#039;&amp;#039;&amp;#039; 5 000 000 steps × 2 fs = &amp;#039;&amp;#039;&amp;#039;10 ns&amp;#039;&amp;#039;&amp;#039; is an arbitrary default that&amp;#039;s fine for a first pass; adjust &amp;lt;code&amp;gt;nsteps&amp;lt;/code&amp;gt; based on the system and the scientific question. Short equilibration-like checks can be 5 ns; publication-quality sampling for slow degrees of freedom may need 50–100 ns or more.&lt;br /&gt;
&lt;br /&gt;
== polar-eps tradeoff ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;polar-eps&amp;lt;/code&amp;gt; sets the convergence threshold for the induced-dipole solver each step. &amp;#039;&amp;#039;&amp;#039;It directly trades simulation speed against energy / force accuracy.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! polar-eps !! Relative speed !! Notes&lt;br /&gt;
|-&lt;br /&gt;
| 0.01     || fastest  || Often sufficient for structural observables and general equilibration&lt;br /&gt;
|-&lt;br /&gt;
| 0.001    || medium   || Reasonable middle ground for routine production&lt;br /&gt;
|-&lt;br /&gt;
| 0.0001   || slow     || High accuracy; use when energetics / forces matter (e.g. free energy work)&lt;br /&gt;
|-&lt;br /&gt;
| 0.00001  || slowest  || Very precise; rarely needed for structural work&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
More zeros = tighter convergence = more solver iterations per step = slower. Pick based on the tradeoff: 0.01 is often good enough, 0.0001 is very precise. Default to something around 0.001 unless you know you need tighter.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Why NPT for production:&amp;#039;&amp;#039;&amp;#039; the box dimensions from the solvation step correspond to a density that is close to but not exactly 1.0 g/cc at 298 K under the AMOEBA potential. NPT lets the box settle to the correct density. Skipping this and running NVT with the as-built box can leave the system slightly compressed or stretched, which biases structural observables.&lt;br /&gt;
&lt;br /&gt;
= 7. Running on a GPU =&lt;br /&gt;
&lt;br /&gt;
All Tinker9 MD above runs on a single GPU. Select which GPU before launching:&lt;br /&gt;
&lt;br /&gt;
 export CUDA_VISIBLE_DEVICES=0&lt;br /&gt;
&lt;br /&gt;
The integer is the GPU index on that node. Change it (&amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt;, …) to select a different GPU on multi-GPU nodes.&lt;br /&gt;
&lt;br /&gt;
Typical launch on a GPU node:&lt;br /&gt;
&lt;br /&gt;
 ssh nodeXXX&lt;br /&gt;
 cd /path/to/project&lt;br /&gt;
 export CUDA_VISIBLE_DEVICES=0&lt;br /&gt;
 nohup bash masterscript.sh &amp;gt; masterscript.log 2&amp;gt;&amp;amp;1 &amp;amp;&lt;br /&gt;
&lt;br /&gt;
= Notes and common pitfalls =&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Induced dipole not converging&amp;#039;&amp;#039;&amp;#039; during heating almost always means the starting structure has a bad contact. Re-check minimization went to a reasonable gradient, and that the solvation step didn&amp;#039;t place a water atop a solute atom. You can temporarily add &amp;lt;code&amp;gt;USOLVE-CUTOFF 0.0&amp;lt;/code&amp;gt; to the heating key if convergence is marginal; remove for production.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;RESTRAIN-POSITION force constant is in kcal/mol/Å²&amp;#039;&amp;#039;&amp;#039;, not kcal/mol. Don&amp;#039;t change the numbers without understanding the scale.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Restarting a crashed run:&amp;#039;&amp;#039;&amp;#039; Tinker9 resumes from &amp;lt;code&amp;gt;.dyn&amp;lt;/code&amp;gt; if present. To restart from scratch, remove both &amp;lt;code&amp;gt;.dyn&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;.arc&amp;lt;/code&amp;gt; (otherwise the new trajectory appends to the old one).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Stopping a running MD cleanly:&amp;#039;&amp;#039;&amp;#039; &amp;lt;code&amp;gt;touch pre_production.end&amp;lt;/code&amp;gt; (or &amp;lt;code&amp;gt;production.end&amp;lt;/code&amp;gt;). Tinker9 checks for this file each frame and stops gracefully, leaving a valid &amp;lt;code&amp;gt;.dyn&amp;lt;/code&amp;gt; to resume from.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Always &amp;lt;code&amp;gt;rm -rf temp&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; before re-running Tinker-GUI.&lt;br /&gt;
&lt;br /&gt;
= Example masterscript =&lt;br /&gt;
&lt;br /&gt;
A reference Bash script that runs minimization → heating → restraint phase-down → production using the key-file and convention described above. Edit &amp;lt;code&amp;gt;TINKER_BIN&amp;lt;/code&amp;gt; and the parameter path at the top to match your installation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/usr/bin/env bash&lt;br /&gt;
set -euo pipefail&lt;br /&gt;
&lt;br /&gt;
# -------------------------------------------------------------------&lt;br /&gt;
# Configuration&lt;br /&gt;
# -------------------------------------------------------------------&lt;br /&gt;
TINKER_BIN=&amp;quot;/path/to/Tinker9/latest/build&amp;quot;&lt;br /&gt;
AMOEBA_PRM=&amp;quot;/path/to/Tinker8/latest/params/amoebabio18.prm&amp;quot;&lt;br /&gt;
&lt;br /&gt;
COUNT_FILE=&amp;quot;./minimize_final.xyz&amp;quot;&lt;br /&gt;
INIT_KEY=&amp;quot;./minimize_final.key&amp;quot;&lt;br /&gt;
&lt;br /&gt;
if [[ ! -f &amp;quot;$COUNT_FILE&amp;quot; ]]; then&lt;br /&gt;
    echo &amp;quot;Error: $COUNT_FILE not found.&amp;quot; &amp;gt;&amp;amp;2; exit 1&lt;br /&gt;
fi&lt;br /&gt;
if [[ ! -f &amp;quot;$INIT_KEY&amp;quot; ]]; then&lt;br /&gt;
    echo &amp;quot;Error: $INIT_KEY not found.&amp;quot; &amp;gt;&amp;amp;2; exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# N = number of solute atoms in the original PDB (from the solute-only xyz&lt;br /&gt;
# produced by Tinker-GUI in temp/). Adjust manually if you want to restrain&lt;br /&gt;
# a different range.&lt;br /&gt;
first_line=&amp;quot;$(head -n 1 ./temp/minimize.xyz)&amp;quot;&lt;br /&gt;
N=&amp;quot;$(echo &amp;quot;$first_line&amp;quot; | grep -oE &amp;#039;[0-9]+&amp;#039; | head -n 1)&amp;quot;&lt;br /&gt;
if [[ -z &amp;quot;$N&amp;quot; ]]; then&lt;br /&gt;
    echo &amp;quot;Error: could not read atom count from ./temp/minimize.xyz&amp;quot; &amp;gt;&amp;amp;2&lt;br /&gt;
    exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# -------------------------------------------------------------------&lt;br /&gt;
# Pull a-axis / b-axis / c-axis lines from the starting key file&lt;br /&gt;
# -------------------------------------------------------------------&lt;br /&gt;
get_line_or_empty() {&lt;br /&gt;
    local key=&amp;quot;${1}&amp;quot;&lt;br /&gt;
    grep -i -E &amp;quot;^[[:space:]]*$key\b&amp;quot; &amp;quot;$INIT_KEY&amp;quot; | head -n1 || true&lt;br /&gt;
}&lt;br /&gt;
A_AXIS=&amp;quot;$(get_line_or_empty &amp;#039;a-axis&amp;#039;)&amp;quot;&lt;br /&gt;
B_AXIS=&amp;quot;$(get_line_or_empty &amp;#039;b-axis&amp;#039;)&amp;quot;&lt;br /&gt;
C_AXIS=&amp;quot;$(get_line_or_empty &amp;#039;c-axis&amp;#039;)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
append_axes() {&lt;br /&gt;
  local outfile=&amp;quot;$1&amp;quot;&lt;br /&gt;
  [[ -n &amp;quot;$A_AXIS&amp;quot; ]] &amp;amp;&amp;amp; echo &amp;quot;$A_AXIS&amp;quot; &amp;gt;&amp;gt; &amp;quot;$outfile&amp;quot;&lt;br /&gt;
  [[ -n &amp;quot;$B_AXIS&amp;quot; ]] &amp;amp;&amp;amp; echo &amp;quot;$B_AXIS&amp;quot; &amp;gt;&amp;gt; &amp;quot;$outfile&amp;quot;&lt;br /&gt;
  [[ -n &amp;quot;$C_AXIS&amp;quot; ]] &amp;amp;&amp;amp; echo &amp;quot;$C_AXIS&amp;quot; &amp;gt;&amp;gt; &amp;quot;$outfile&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# -------------------------------------------------------------------&lt;br /&gt;
# Key file generator&lt;br /&gt;
# -------------------------------------------------------------------&lt;br /&gt;
write_key_file() {&lt;br /&gt;
  local outfile=&amp;quot;$1&amp;quot;&lt;br /&gt;
  local restraint_val=&amp;quot;$2&amp;quot;&lt;br /&gt;
  local polar_eps=&amp;quot;$3&amp;quot;&lt;br /&gt;
  local add_restrain=&amp;quot;$4&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  cat &amp;gt; &amp;quot;$outfile&amp;quot; &amp;lt;&amp;lt;EOF&lt;br /&gt;
parameters $AMOEBA_PRM&lt;br /&gt;
integrator respa&lt;br /&gt;
archive&lt;br /&gt;
&lt;br /&gt;
ewald&lt;br /&gt;
ewald-cutoff 7.0&lt;br /&gt;
&lt;br /&gt;
vdw-cutoff 12.0&lt;br /&gt;
vdw-correction&lt;br /&gt;
&lt;br /&gt;
neighbor-list&lt;br /&gt;
polar-predict&lt;br /&gt;
&lt;br /&gt;
polar-eps $polar_eps&lt;br /&gt;
&lt;br /&gt;
thermostat bussi&lt;br /&gt;
barostat MonteCarlo&lt;br /&gt;
&lt;br /&gt;
EOF&lt;br /&gt;
&lt;br /&gt;
  if [[ &amp;quot;$add_restrain&amp;quot; == &amp;quot;yes&amp;quot; &amp;amp;&amp;amp; -n &amp;quot;$restraint_val&amp;quot; ]]; then&lt;br /&gt;
    echo &amp;quot;RESTRAIN-POSITION -1 $N $restraint_val&amp;quot; &amp;gt;&amp;gt; &amp;quot;$outfile&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
  append_axes &amp;quot;$outfile&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# filename              FC     polar-eps  restraint?&lt;br /&gt;
write_key_file &amp;quot;heating.key&amp;quot;         &amp;quot;50.0&amp;quot;  &amp;quot;0.01&amp;quot;    &amp;quot;yes&amp;quot;&lt;br /&gt;
write_key_file &amp;quot;minimize.key&amp;quot;        &amp;quot;50.0&amp;quot;  &amp;quot;0.01&amp;quot;    &amp;quot;yes&amp;quot;&lt;br /&gt;
write_key_file &amp;quot;restraint_10.key&amp;quot;    &amp;quot;10.0&amp;quot;  &amp;quot;0.01&amp;quot;    &amp;quot;yes&amp;quot;&lt;br /&gt;
write_key_file &amp;quot;restraint_1.key&amp;quot;     &amp;quot;1.0&amp;quot;   &amp;quot;0.01&amp;quot;    &amp;quot;yes&amp;quot;&lt;br /&gt;
write_key_file &amp;quot;restraint_0.1.key&amp;quot;   &amp;quot;0.1&amp;quot;   &amp;quot;0.01&amp;quot;    &amp;quot;yes&amp;quot;&lt;br /&gt;
write_key_file &amp;quot;restraint_none.key&amp;quot;  &amp;quot;&amp;quot;      &amp;quot;0.01&amp;quot;    &amp;quot;no&amp;quot;&lt;br /&gt;
write_key_file &amp;quot;production.key&amp;quot;      &amp;quot;&amp;quot;      &amp;quot;0.001&amp;quot;   &amp;quot;no&amp;quot;    # tune polar-eps to taste&lt;br /&gt;
&lt;br /&gt;
# -------------------------------------------------------------------&lt;br /&gt;
# Minimization&lt;br /&gt;
# -------------------------------------------------------------------&lt;br /&gt;
echo &amp;quot;--- Energy minimization ---&amp;quot;&lt;br /&gt;
&amp;quot;$TINKER_BIN/minimize9&amp;quot; minimize_final.xyz -k minimize.key 0.5&lt;br /&gt;
&lt;br /&gt;
cp minimize_final.xyz pre_production.xyz&lt;br /&gt;
&lt;br /&gt;
# -------------------------------------------------------------------&lt;br /&gt;
# Heating (NVT, no pressure arg)&lt;br /&gt;
# -------------------------------------------------------------------&lt;br /&gt;
echo &amp;quot;--- Heating (5 rungs) ---&amp;quot;&lt;br /&gt;
for T in 10 75 150 225 298; do&lt;br /&gt;
    &amp;quot;$TINKER_BIN/dynamic9&amp;quot; pre_production.xyz -k heating.key \&lt;br /&gt;
        200000 2.0 10.0 2 &amp;quot;$T&amp;quot;&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
# -------------------------------------------------------------------&lt;br /&gt;
# Restraint phase-down (NVT, 298 K)&lt;br /&gt;
# -------------------------------------------------------------------&lt;br /&gt;
echo &amp;quot;--- Restraint phase-down ---&amp;quot;&lt;br /&gt;
for FC in 10 1 0.1 none; do&lt;br /&gt;
    &amp;quot;$TINKER_BIN/dynamic9&amp;quot; pre_production.xyz -k &amp;quot;restraint_${FC}.key&amp;quot; \&lt;br /&gt;
        200000 2.0 10.0 2 298&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
# -------------------------------------------------------------------&lt;br /&gt;
# Production (NPT, with pressure arg)&lt;br /&gt;
# -------------------------------------------------------------------&lt;br /&gt;
echo &amp;quot;--- Production ---&amp;quot;&lt;br /&gt;
xyz_linecount=$(wc -l &amp;lt; pre_production.xyz)&lt;br /&gt;
tail -n &amp;quot;$xyz_linecount&amp;quot; pre_production.arc &amp;gt; production.xyz&lt;br /&gt;
&lt;br /&gt;
&amp;quot;$TINKER_BIN/dynamic9&amp;quot; production.xyz -k production.key \&lt;br /&gt;
    5000000 2.0 10.0 4 298 1.0&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;--- Done ---&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brendan</name></author>
	</entry>
</feed>