NAMD User's Guide
NAMD User's Guide
NAMD User's Guide
Version 2.6
Description
The NAMD User’s Guide describes how to run and use the various features of the molecular
dynamics program NAMD. This guide includes the capabilities of the program, how to use these
capabilities, the necessary input files and formats, and how to run the program both on uniprocessor
machines and in parallel.
NAMD Version 2.6
Authors: M. Bhandarkar, R. Brunner, C. Chipot, A. Dalke, S. Dixit, P. Grayson,
J. Gullingsrud, A. Gursoy, D. Hardy, J. Hénin, W. Humphrey, D. Hurwitz, N. Krawetz,
S. Kumar, M. Nelson, J. Phillips, A. Shinozaki, G. Zheng, F. Zhu
Theoretical Biophysics Group, Beckman Institute, University of Illinois.
1995-2002
c The Board of Trustees of the University of Illinois. All Rights Reserved
Registration
Individuals may register in their own name or with their institutional or corporate affiliations.
Registration information must include name, title, and e-mail of a person with signature authority to
authorize and commit the individuals, academic or research institution, or corporation as necessary
to the terms and conditions of the license agreement.
All parts of the information must be understood and agreed to as part of completing the form.
Completion of the form is required before software access is granted. Pay particular attention to
the authorized requester requirements above, and be sure that the form submission is authorized
by the duly responsible person.
Registration will be administered by the NAMD development team.
UNIVERSITY OF ILLINOIS
NAMD MOLECULAR DYNAMICS SOFTWARE LICENSE AGREEMENT
Upon execution of this Agreement by the party identified below (“Licensee”), The Board of Trustees
of the University of Illinois (“Illinois”), on behalf of The Theoretical Biophysics Group (“TBG”) in
the Beckman Institute, will provide the molecular dynamics software NAMD in Executable Code
and/or Source Code form (“Software”) to Licensee, subject to the following terms and conditions.
For purposes of this Agreement, Executable Code is the compiled code, which is ready to run
on Licensee’s computer. Source code consists of a set of files which contain the actual program
commands that are compiled to form the Executable Code.
1. The Software is intellectual property owned by Illinois, and all right, title and interest, in-
cluding copyright, remain with Illinois. Illinois grants, and Licensee hereby accepts, a restricted,
non-exclusive, non-transferable license to use the Software for academic, research and internal busi-
ness purposes only e.g. not for commercial use (see Paragraph 7 below), without a fee. Licensee
agrees to reproduce the copyright notice and other proprietary markings on all copies of the Soft-
ware. Licensee has no right to transfer or sublicense the Software to any unauthorized person or
entity. However, Licensee does have the right to make complimentary works that interoperate with
NAMD, to freely distribute such complimentary works, and to direct others to the TBG server to
obtain copies of NAMD itself.
2. Licensee may, at its own expense, modify the Software to make derivative works, for its own
academic, research, and internal business purposes. Licensee’s distribution of any derivative work
is also subject to the same restrictions on distribution and use limitations that are specified herein
for Illinois’ Software. Prior to any such distribution the Licensee shall require the recipient of the
Licensee’s derivative work to first execute a license for NAMD with Illinois in accordance with
the terms and conditions of this Agreement. Any derivative work should be clearly marked and
renamed to notify users that it is a modified version and not the original NAMD code distributed
by Illinois.
3. Except as expressly set forth in this Agreement, THIS SOFTWARE IS PROVIDED “AS
IS” AND ILLINOIS MAKES NO REPRESENTATIONS AND EXTENDS NO WARRANTIES
OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
WARRANTIES OR MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE,
OR THAT THE USE OF THE SOFTWARE WILL NOT INFRINGE ANY PATENT, TRADE-
MARK, OR OTHER RIGHTS. LICENSEE ASSUMES THE ENTIRE RISK AS TO THE RE-
SULTS AND PERFORMANCE OF THE SOFTWARE AND/OR ASSOCIATED MATERIALS.
LICENSEE AGREES THAT UNIVERSITY SHALL NOT BE HELD LIABLE FOR ANY DI-
RECT, INDIRECT, CONSEQUENTIAL, OR INCIDENTAL DAMAGES WITH RESPECT TO
ANY CLAIM BY LICENSEE OR ANY THIRD PARTY ON ACCOUNT OF OR ARISING FROM
THIS AGREEMENT OR USE OF THE SOFTWARE AND/OR ASSOCIATED MATERIALS.
4. Licensee understands the Software is proprietary to Illinois. Licensee agrees to take all
reasonable steps to insure that the Software is protected and secured from unauthorized disclosure,
use, or release and will treat it with at least the same level of care as Licensee would use to protect
and secure its own proprietary computer programs and/or information, but using no less than a
reasonable standard of care. Licensee agrees to provide the Software only to any other person or
entity who has registered with Illinois. If licensee is not registering as an individual but as an
institution or corporation each member of the institution or corporation who has access to or uses
Software must understand and agree to the terms of this license. If Licensee becomes aware of any
unauthorized licensing, copying or use of the Software, Licensee shall promptly notify Illinois in
3
writing. Licensee expressly agrees to use the Software only in the manner and for the specific uses
authorized in this Agreement.
5. By using or copying this Software, Licensee agrees to abide by the copyright law and all
other applicable laws of the U.S. including, but not limited to, export control laws and the terms
of this license. Illinois shall have the right to terminate this license immediately by written notice
upon Licensee’s breach of, or non-compliance with, any of its terms. Licensee may be held legally
responsible for any copyright infringement that is caused or encouraged by its failure to abide by
the terms of this license. Upon termination, Licensee agrees to destroy all copies of the Software
in its possession and to verify such destruction in writing.
6. The user agrees that any reports or published results obtained with the Software will ac-
knowledge its use by the appropriate citation as follows:
NAMD was developed by the Theoretical Biophysics Group in the Beckman Institute for
Advanced Science and Technology at the University of Illinois at Urbana-Champaign.
Any published work which utilizes NAMD shall include the following reference:
James C. Phillips, Rosemary Braun, Wei Wang, James Gumbart, Emad Tajkhorshid,
Elizabeth Villa, Christophe Chipot, Robert D. Skeel, Laxmikant Kale, and Klaus Schul-
ten. Scalable molecular dynamics with NAMD. Journal of Computational Chemistry,
26:1781-1802, 2005.
Electronic documents will include a direct link to the official NAMD page:
http://www.ks.uiuc.edu/Research/namd/
One copy of each publication or report will be supplied to Illinois through Dr. Gila Budescu at
the addresses listed below in Contact Information.
7. Should Licensee wish to make commercial use of the Software, Licensee will contact Illinois
([email protected]) to negotiate an appropriate license for such use. Commercial use includes: (1)
integration of all or part of the Software into a product for sale, lease or license by or on behalf
of Licensee to third parties, or (2) distribution of the Software to third parties that need it to
commercialize product sold or licensed by or on behalf of Licensee.
8. Government Rights. Because substantial governmental funds have been used in the devel-
opment of NAMD, any possession, use or sublicense of the Software by or to the United States
government shall be subject to such required restrictions.
9. NAMD is being distributed as a research and teaching tool and as such, TBG encourages
contributions from users of the code that might, at Illinois’ sole discretion, be used or incorporated to
make the basic operating framework of the Software a more stable, flexible, and/or useful product.
Licensees that wish to contribute their code to become an internal portion of the Software may be
required to sign an “Agreement Regarding Contributory Code for NAMD Software” before Illinois
can accept it (contact [email protected] for a copy).
4
Contact Information
The best contact path for licensing issues is by e-mail to [email protected] or send correspondence
to:
NAMD Team
Theoretical Biophysics Group
Beckman Institute
University of Illinois
405 North Mathews MC-251
Urbana, Illinois 61801 USA
FAX: (217) 244-6078
5
Contents
1 Introduction 10
1.1 New features in version 2.6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.2 NAMD and molecular dynamics simulations . . . . . . . . . . . . . . . . . . . . . . . 11
1.3 User feedback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
1.4 Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2 Getting Started 15
2.1 What is needed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.2 NAMD configuration file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.2.1 Configuration parameter syntax . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.2.2 Tcl scripting interface and features . . . . . . . . . . . . . . . . . . . . . . . . 16
2.2.3 Required NAMD configuration parameters . . . . . . . . . . . . . . . . . . . 18
6
5.3.4 DPMTA parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
5.3.5 PME parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
5.3.6 Full direct parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
5.3.7 Multiple timestep parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
7
6.8.4 Including restraints in ABF simulations . . . . . . . . . . . . . . . . . . . . . 98
6.8.5 Important recommendations when running ABF simulations . . . . . . . . . 99
6.8.6 Example of input file for computing potentials of mean force . . . . . . . . . 99
6.9 Alchemical Free Energy Perturbation Calculations . . . . . . . . . . . . . . . . . . . 100
6.9.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
6.9.2 Implementation of free energy perturbation in NAMD . . . . . . . . . . . . . 102
6.9.3 Examples of input files for running FEP alchemical calculations . . . . . . . . 103
6.9.4 Description of FEP simulation output . . . . . . . . . . . . . . . . . . . . . . 104
6.10 Locally Enhanced Sampling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
6.10.1 Structure Generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
6.10.2 Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
6.11 Pair Interaction Calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
6.12 Pressure Profile Calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
6.13 Replica Exchange Simulations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
References 127
Index 129
8
List of Figures
1 Graph of van der Waals potential with and without switching . . . . . . . . . . . . . 41
2 Graph of electrostatic potential with and without shifting function . . . . . . . . . . 42
3 Graph of electrostatic split between short and long range forces . . . . . . . . . . . . 42
4 Example of cutoff and pairlist distance uses . . . . . . . . . . . . . . . . . . . . . . . 44
5 Convergence of an FEP calculation. If the ensembles representative of states a
and b are too disparate, equation (8) will not converge (a). If, in sharp contrast, the
configurations of state b form a subset of the ensemble of configurations characteristic
of state a, the simulation is expected to converge (b). The difficulties reflected in
case (a) may be alleviated by the introduction of mutually overlapping intermediate
states that connect a to b (c). It should be mentioned that in practice, the kinetic
contribution, T (px ), is assumed to be identical for state a and state b. . . . . . . . 101
6 Dual topology description for an alchemical simulation. Case example of the muta-
tion of alanine into serine. The lighter color denotes the non–interacting, alternate
state. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
9
1 Introduction
NAMD is a parallel molecular dynamics program for UNIX platforms designed for high-performance
simulations in structural biology. This document describes how to use NAMD, its features, and
the platforms on which it runs. The document is divided into several sections:
We have attempted to make this document complete and easy to understand and to make
NAMD itself easy to install and run. We welcome your suggestions for improving the documentation
or code at [email protected].
10
Improved Serial Performance, Especially on POWER and PowerPC
Tuning of the NAMD inner loop has provided a 30% performance boost with the IBM XL compiler.
New Mac OS X binaries are up to 70% faster, but users must download the IBM XL runtime library
from http://ftp.software.ibm.com/aix/products/ccpp/vacpp-rte-macos/
11
NAMD was designed to run efficiently on such parallel machines for simulating large molecules.
NAMD is particularly well suited to the increasingly popular Beowulf-class PC clusters, which are
quite similar to the workstation clusters for which is was originally designed. Future versions of
NAMD will also make efficient use of clusters of multi-processor workstations or PCs.
NAMD has several important features:
12
∗ Berendsen pressure coupling,
∗ Nosé-Hoover Langevin piston,
– Energy minimization,
– Fixed atoms,
– Rigid waters,
– Rigid bonds to hydrogen,
– Harmonic restraints,
– Spherical or cylindrical boundary restraints.
• Interactive MD simulations
A system undergoing simulation in NAMD may be viewed and altered with VMD; for instance,
forces can be applied to a set of atoms to alter or rearrange part of the molecular structure.
For more information on VMD, see http://www.ks.uiuc.edu/Research/vmd/.
• Load Balancing
An important factor in parallel applications is the equal distribution of computational load
among the processors. In parallel molecular simulation, a spatial decomposition that evenly
distributes the computational load causes the region of space mapped to each processor to
become very irregular, hard to compute and difficult to generalize to the evaluation of many
different types of forces. NAMD addresses this problem by using a simple uniform spatial
decomposition where the entire model is split into uniform cubes of space called patches.
An initial load balancer assigns patches and the calculation of interactions among the atoms
within them to processors such that the computational load is balanced as much as possible.
During the simulation, an incremental load balancer monitors the load and performs necessary
adjustments.
13
1.4 Acknowledgments
This work is supported by grants from the National Science Foundation (BIR-9318159) and the
National Institute of Health (PHS 5 P41 RR05969-04).
The authors would particularly like to thank the members of the Theoretical Biophysics Group,
past and present, who have helped tremendously in making suggestions, pushing for new features,
and testing bug-ridden code.
14
2 Getting Started
2.1 What is needed
Before running NAMD, explained in section 9, the following are be needed:
• The initial coordinates of the molecular system in the form of a PDB file.
NAMD provides the psfgen utility, documented in Section 4, which is capable of generating the
required PSF and PDB files by merging PDB files and guessing coordinates for missing atoms. If
psfgen is insufficient for your system, we recommend that you obtain access to either CHARMM
or X-PLOR, both of which are capable of generating the required files.
keyword value
or the keyword and value can be separated by an equal sign and white space:
keyword = value
Blank lines in the configuration file are ignored. Comments are prefaced by a # and may appear
on the end of a line with actual values:
15
Some keywords require several lines of data. These are generally implemented to either allow the
data to be read from a file:
keyword filename
keyword {
lots of data
}
The specification of the keywords is case insensitive so that any combination of upper and
lower case letters will have the same meaning. Hence, DCDfile and dcdfile are equivalent. The
capitalization in the values, however, may be important. Some values indicate file names, in which
capitalization is critical. Other values such as on or off are case insensitive.
• the “source” command to include other files (works w/o Tcl too!),
• The “callback” command takes a 2-parameter Tcl procedure which is then called with a list
of labels and a list of values during every timestep, allowing analysis, formatting, whatever.
• The “run” command takes a number of steps to run (overriding the now optional numsteps
parameter, which defaults to 0) and can be called repeatedly. You can “run 0” just to get
energies.
• The “minimize” command is similar to “run” and performs minimization for the specified
number of force evaluations.
• The “output” command takes an output file basename and causes .coor, .vel, and .xsc files
to be written with that name.
• Between “run” commands the reassignTemp, rescaleTemp, and langevinTemp parameters can
be changed to allow simulated annealing protocols within a single config file. The useGroup-
Pressure, useFlexibleCell, useConstantArea, useConstantRatio, LangevinPiston, Langevin-
PistonTarget, LangevinPistonPeriod, LangevinPistonDecay, LangevinPistonTemp, SurfaceTen-
sionTarget, BerendsenPressure, BerendsenPressureTarget, BerendsenPressureCompressibil-
ity, and BerendsenPressureRelaxationTime parameters may be changed to allow pressure
equilibration. The fixedAtoms, constraintScaling, and nonbondedScaling parameters may
16
be changed to preserve macromolecular conformation during minimization and equilibration
(fixedAtoms may only be disabled, and requires that fixedAtomsForces is enabled to do this).
The consForceScaling parameter may be changed to vary steering forces or to implement a
time-varying electric field that affects specific atoms.
• The “checkpoint” and “revert” commands (no arguments) allow a scripted simulation to save
and restore to a prior state.
• The “reinitvels” command reinitializes velocities to a random distribution based on the given
temperature.
• The “reloadCharges” command reads new atomic charges from the given file, which should
contain one number for each atom, separated by spaces and/or line breaks.
• The “coorfile” command allows NAMD to perform force and energy analysis on trajectory
files. “coorfile open dcd filename” opens the specified DCD file for reading. “coorfile read”
reads the next frame in the opened DCD file, replacing NAMD’s atom coordinates with
the coordinates in the frame, and returns 0 if successful or -1 if end-of-file was reached.
“coorfile skip” skips past one frame in the DCD file; this is significantly faster than reading
coordinates and throwing them away. “coorfile close” closes the file. The “coorfile” command
is not available on the Cray T3E.
Force and energy analysis are especially useful in the context of pair interaction calculations;
see Sec. 6.11 for details, as well as the example scripts in Sec. 8.
Please note that while NAMD has traditionally allowed comments to be started by a # appear-
ing anywhere on a line, Tcl only allows comments to appear where a new statement could begin.
With Tcl config file parsing enabled (all shipped binaries) both NAMD and Tcl comments are
allowed before the first “run” command. At this point only pure Tcl syntax is allowed. In addition,
the “;#” idiom for Tcl comments will only work with Tcl enabled. NAMD has also traditionally
allowed parameters to be specified as “param=value”. This is supported, but only before the first
“run” command. Some examples:
17
2.2.3 Required NAMD configuration parameters
The following parameters are required for every NAMD simulation:
These required parameters specify the most basic properties of the simulation. In addition, it is
highly recommended that pairlistdist be specified with a value at least one greater than cutoff.
18
3 Input and Output Files
NAMD was developed to be compatible with existing molecular dynamics packages, especially
the packages X-PLOR [7] and CHARMM [6]. To achieve this compatibility, the set of input files
which NAMD uses to define a molecular system are identical to the input files used by X-PLOR
and CHARMM. Thus it is trivial to move an existing simulation from X-PLOR or CHARMM to
NAMD. A description of these molecular system definition files is given in Section 3.1.
In addition, the output file formats used by NAMD were chosen to be compatible with X-
PLOR and CHARMM. In this way the output from NAMD can be analyzed using X-PLOR,
CHARMM, or a variety of the other tools that have been developed for the existing output file
formats. Descriptions of the output files formats are also given in Section 3.1.
19
3.2 NAMD configuration parameters
3.2.1 Input files
• coordinates < coordinate PDB file >
Acceptable Values: UNIX filename
Description: The PDB file containing initial position coordinate data. Note that path
names can be either absolute or relative. Only one value may be specified.
• structure < PSF file >
Acceptable Values: UNIX filename
Description: The X-PLOR format PSF file describing the molecular system to be simu-
lated. Only one value may be specified.
• parameters < parameter file >
Acceptable Values: UNIX filename
Description: A CHARMM19, CHARMM22, or CHARMM27 parameter file that defines
all or part of the parameters necessary for the molecular system to be simulated. At least one
parameter file must be specified for each simulation. Multiple definitions (but only one file
per definition) are allowed for systems that require more than one parameter file. The files
will be read in the order that they appear in the configuration file. If duplicate parameters
are read, a warning message is printed and the last parameter value read is used. Thus, the
order that files are read can be important in cases where duplicate values appear in separate
files.
• paraTypeXplor < Is the parameter file in X-PLOR format? >
Acceptable Values: on or off
Default Value: on
Description: Specifies whether or not the parameter file(s) are in X-PLOR format. X-
PLOR format is the default for parameter files! Caveat: The PSF file should be also con-
structed with X-PLOR in case of an X-PLOR parameter file because X-PLOR stores in-
formation about the multiplicity of dihedrals in the PSF file. See the X-PLOR manual for
details.
• paraTypeCharmm < Is the parameter file in CHARMM format? >
Acceptable Values: on or off
Default Value: off
Description: Specifies whether or not the parameter file(s) are in CHARMM format. X-
PLOR format is the default for parameter files! Caveat: The information about multiplicity
of dihedrals will be obtained directly from the parameter file, and the full multiplicity will be
used (same behavior as in CHARMM). If the PSF file originates from X-PLOR, consecutive
multiple entries for the same dihedral (indicating the dihedral multiplicity for X-PLOR) will
be ignored.
• velocities < velocity PDB file >
Acceptable Values: UNIX filename
Description: The PDB file containing the initial velocities for all atoms in the simulation.
This is typically a restart file or final velocity file written by NAMD during a previous simu-
lation. Either the temperature or the velocities/binvelocities option must be defined
to determine an initial set of velocities. Both options cannot be used together.
20
• binvelocities < binary velocity file >
Acceptable Values: UNIX filename
Description: The binary file containing initial velocities for all atoms in the simulation.
A binary velocity file is created as output from NAMD by activating the binaryrestart
or binaryoutput options. The binvelocities option should be used as an alternative to
velocities. Either the temperature or the velocities/binvelocities option must be
defined to determine an initial set of velocities. Both options cannot be used together.
21
that store the current positions and velocities of all atoms at some step of the simulation. This
option specifies the prefix to use for restart files in the same way that outputname specifies
a filename prefix for the final positions and velocities. If restartname is defined then the
parameter restartfreq must also be defined.
22
• velDCDfreq < timesteps between writing velocities to trajectory file >
Acceptable Values: positive integer
Description: The number of timesteps between the writing of velocities to the trajectory
file. The initial velocities will not be included in the trajectory file.
23
Description: The number of timesteps between each pressure output of NAMD. If specified
and nonzero, atomic and group pressure tensors will be output to stdout.
• outputTiming < timesteps between timing output >
Acceptable Values: nonnegative integer
Default Value: the greater of firstLdbStep or 10× outputEnergies
Description: The number of timesteps between each timing output of NAMD. If nonzero,
CPU and wallclock times and memory usage will be output to stdout. These data are from
node 0 only; CPU times and memory usage for other nodes may vary.
24
Caveat:
1. Polarizable parameters in AMBER are not supported.
2. NAMD does not support the 10-12 potential terms in some old AMBER versions. When non-zero
10-12 parameter is encountered in PARM file, NAMD will terminate.
3. NAMD has several exclusion policy options, defined by exclude. The way AMBER dealing with
exclusions corresponds to the “scaled1-4” in NAMD. So for simulations using AMBER force field,
one would specify “exclude scaled1-4” in the configuration file, and set 1-4scaling to the inverse
value of SCEE as would be used in AMBER.
4. NAMD does not read periodic box lengths in PARM or coordinate file. They must be explicitly
specified in NAMD configuration file.
5. By default, NAMD applies switching functions to the non-bond interactions within the cut-
off distance, which helps to improve energy conservation, while AMBER does not use switching
functions so it simply truncates the interactions at cutoff. However, if “authentic” AMBER cutoff
simulations are desired, the switching functions could be turned off by specifying “switching off”
in NAMD configuration file.
6. NAMD and AMBER may have different default values for some parameters (e.g., the tolerance
of SHAKE). One should check other sections of this manual for accurate descriptions of the NAMD
options.
Following are two examples of the NAMD configuration file to read AMBER force field and
carry out simulation. They may help users to select proper NAMD options for AMBER force field.
For the convenience of AMBER users, the AMBER 6 sander input files are given in the left for
comparison, which would accomplish similar tasks in AMBER.
---AMBER---- ---NAMD---
TITLE
&cntrl
ntb=0, igb=2, # non-periodic, use cutoff for non-bond
nstlim=1000, numsteps 1000 # Num of total steps
ntpr=50, outputEnergies 50 # Energy output frequency
ntwr=50, restartfreq 50 # Restart file frequency
ntwx=100, DCDfreq 100 # Trajectory file frequency
dt=0.001, timestep 1 # in unit of fs (This is default)
tempi=0., temperature 0 # Initial temp for velocity assignment
cut=10., cutoff 10
switching off # Turn off the switching functions
scee=1.2, exclude scaled1-4
1-4scaling 0.833333 # =1/1.2, default is 1.0
scnb=2.0 scnb 2 # This is default
&end
amber on # Specify this is AMBER force field
parmfile prmtop # Input PARM file
ambercoor inpcrd # Input coordinate file
outputname md # Prefix of output files
25
Example 2: Periodic boundary system, PME, NVE ensemble, using SHAKE algorithm
---AMBER---- ---NAMD---
TITLE
&cntrl
ntc=2, ntf=2, # SHAKE to the bond between each hydrogen and it mother atom
rigidBonds all
tol=0.0005, rigidTolerance 0.0005 # Default is 0.00001
nstlim=500, numsteps 500 # Num of total steps
ntpr=50, outputEnergies 50 # Energy output frequency
ntwr=100, restartfreq 100 # Restart file frequency
ntwx=100, DCDfreq 100 # Trajectory file frequency
dt=0.001, timestep 1 # in unit of fs (This is default)
tempi=300., temperature 300 # Initial temp for velocity assignment
cut=9., cutoff 9
switching off # Turn off the switching functions
&end
&ewald PME on # Use PME for electrostatic calculation
# Orthogonal periodic box size
a=62.23, cellBasisVector1 62.23 0 0
b=62.23, cellBasisVector2 0 62.23 0
c=62.23, cellBasisVector3 0 0 62.23
nfft1=64, PMEGridSizeX 64
nfft2=64, PMEGridSizeY 64
nfft3=64, PMEGridSizeZ 64
ischrgd=1, # NAMD doesn’t force neutralization of charge
&end
amber on # Specify this is AMBER force field
parmfile FILENAME # Input PARM file
ambercoor FILENAME # Input coordinate file
outputname PREFIX # Prefix of output files
exclude scaled1-4
1-4scaling 0.833333 # =1/1.2, default is 1.0
26
• grotopfile < GROMACS format topology/parameter file >
Acceptable Values: UNIX filename
Description: This file contains complete topology and parameter information of the
system.
However, NAMD does not have support for many GROMACS-specific options:
• Dummies (fake atoms with positions generated from the positions of real atoms) are not
supported.
• The GROMACS pairs section, where explicit 1–4 parameters are given between pairs of
atoms, is not supported, since NAMD calculates its 1–4 interactions exclusively by type.
• Similarly, exclusions are not supported. The biggest problem here is that GROMACS RB
dihedrals are supposed to imply exclusions, but NAMD does not support this.
• In some cases, it may not work to override some but not all of the parameters for a bond,
atom, etc. In this case, NAMD will generate an error and stop. The parser will sometimes
not tolerate correct GROMACS files or fail to detect errors in badly formatted files.
• NAMD does not support all the types of bond potentials that exist in GROMACS, but
approximates them with harmonic or sinusoidal potentials.
• NAMD does not read periodic box lengths in the coordinate file. They must be explicitly
specified in the NAMD configuration file.
27
4 Creating PSF Structure Files
The psfgen structure building tool consists of a portable library of structure and file manipulation
routines with a Tcl interface. Current capabilities include
We are currently refining the interface of psfgen and adding features to create a complete
molecular building solution. We welcome your feedback on this new tool.
1. Preparing separate PDB files containing individual segments of protein, solvent, etc. before
running psfgen.
2. Reading in the appropriate topology definition files and aliasing residue and atom names found
in the PDB file to those found in the topology files. This will generally include selecting a
default protonation state for histidine residues.
28
6. Deleting unwanted atoms, such as overlapping water molecules.
# Load a pdb and psf file into both psfgen and VMD.
resetpsf
readpsf myfile.psf
coordpdb myfile.pdb
mol load psf myfile.psf pdb myfile.pdb
# Select waters that are more than 10 Angstroms from the protein.
set badwater1 [atomselect top "name OH2 and not within 10 of protein"]
29
# Alternatively, select waters that are outside our periodic cell.
set badwater2 [atomselect top "name OH2 and (x<-30 or x>30 or y<-30 or>30
or z<-30 or z>30)"]
# Delete the residues corresponding to the atoms we selected.
foreach segid [$badwater1 get segid] resid [$badwater1 get resid] {
delatom $segid $resid
}
# Have psfgen write out the new psf and pdb file (VMD’s structure and
# coordinates are unmodified!).
writepsf myfile_chopwater.psf
writepdb myfile_chopwater.pdb
• the BPTI PDB file 6PTI.pdb available from the Protein Data Bank at http://www.pdb.org/
by searching for 6PTI and downloading the complete structure file in PDB format.
# File: bpti_example.tcl
# Requirements: topology file top_all22_prot.inp in directory toppar
# PDB file 6PTI.pdb in current directory
30
pdb output/6PTI_protein.pdb
}
(1) Split input PDB file into segments. 6PTI.pdb is the original file from the Protein Data
Bank. It contains a single chain of protein and some PO4 and H2O HETATM records. Since each
segment must have a separate input file, we remove all non-protein atom records using grep. If
there were multiple chains we would have to split the file by hand. Create a second file containing
only waters.
(2) Embed the psfgen commands in this script. Run the psfgen program, taking everything
until “ENDMOL” as input. You may run psfgen interactively as well. Since psfgen is built on a
Tcl interpreter, you may use loops, variables, etc., but you must use $$ for variables when inside a
shell script. If you want, run psfgen and enter the following commands manually.
31
(3) Read topology file. Read in the topology definitions for the residues we will create. This
must match the parameter file used for the simulation as well. Multiple topology files may be read
in since psfgen and NAMD use atom type names rather than numbers in psf files.
(4) Build protein segment. Actually build a segment, calling it BPTI and reading the sequence
of residues from the stripped pdb file created above. In addition to the pdb command, we could
specify residues explicitly. Both angles and dihedrals are generated automatically unless “auto
none” is added (which is required to build residues of water). The commands “first” and “last”
may be used to change the default patches for the ends of the chain. The structure is built when
the closing } is encountered, and some errors regarding the first and last residue are normal.
(5) Patch protein segment. Some patch residues (those not used to begin or end a chain) are
applied after the segment is built. These contain all angle and dihedral terms explicitly since they
were already generated. In this case we apply the patch for a disulfide link three separate times.
(6) Read protein coordinates from PDB file. The same file used to generate the sequence
is now read to extract coordinates. In the residue ILE, the atom CD is called CD1 in the pdb file,
so we use “pdbalias atom” to define the correct name. If the segment names in the pdb file match
the name we gave in the segment statement, then we don’t need to specify it again; in this case we
do specify the segment, so that all atoms in the pdb file must belong to the segment.
(7) Build water segment. Build a segment for the crystal waters. The residue type for water
depends on the model, so here we alias HOH to TIP3. Because CHARMM uses an additional H-H
bond we must disable generation of angles and dihedrals for segments containing water. Then read
the pdb file.
(8) Read water coordinates from PDB file. Alias the atom type for water oxygen as well
and read coordinates from the file to the segment SOLV. Hydrogen doesn’t show up in crystal
structures so it is missing from this pdb file.
(9) Guessing missing coordinates. The tolopogy file contains default internal coordinates
which can be used to guess the locations of many atoms, hydrogens in particular. In the output
pdb file, the occupancy field of guessed atoms will be set to 0, atoms which are known are set
to 1, and atoms which could not be guessed are set to -1. Some atoms are “poorly guessed” if
needed bond lengths and angles were missing from the topology file. Similarly, waters with missing
hydrogen coordinates are given a default orientation.
Write structure and coordinate files. Now that all of the atoms and bonds have been created,
we can write out the psf structure file for the system. We also create the matching coordinate pdb
file. The psf and pdb files are a matched set with identical atom ordering as needed by NAMD.
32
# NAMD configuration file for BPTI
# molecular system
structure output/bpti.psf
# force field
paratypecharmm on
parameters toppar/par_all22_prot.inp
exclude scaled1-4
1-4scaling 1.0
# approximations
switching on
switchdist 8
cutoff 12
pairlistdist 13.5
margin 0
stepspercycle 20
#integrator
timestep 1.0
#output
outputenergies 10
outputtiming 100
binaryoutput no
# molecular system
coordinates output/bpti.pdb
#output
outputname output/bpti
dcdfreq 1000
#protocol
temperature 0
reassignFreq 1000
reassignTemp 25
reassignIncr 25
reassignHold 300
#script
minimize 1000
run 20000
33
4.3 Building solvent around a protein
The following script illustrates how psfgen and VMD can be used together to add water around a
protein structure. It assumes you already have a psf and pdb file for your protein, as well as a box
of water which is large enough to contain the protein. For more information on how atomselections
can be used within VMD scripts, see the VMD User’s Guide.
# Center the water on the protein. Also update the coordinates held
# by psfgen.
set wat [atomselect top "segid QQQ"]
$wat moveby [vecsub [measure center $protein] [measure center $wat]]
foreach atom [$wat get {segid resid name x y z}] {
foreach {segid resid name x y z} $atom { break }
coord $segid $resid $name [list $x $y $z]
}
34
set outsidebox [atomselect top "segid QQQ and (x <= $xmin or y <= $ymin \
or z <= $zmin or x >= $xmax or y >= $ymax or z >= $xmax)"]
set overlap [atomselect top "segid QQQ and within 2.4 of (not segid QQQ)"]
# Get a list of all the residues that are in the two selections, and delete
# those residues from the structure.
set reslist [concat [$outsidebox get resid] [$overlap get resid]]
set reslist [lsort -unique -integer $reslist]
# That should do it - write out the new psf and pdb file.
writepsf solvate.psf
writepdb solvate.pdb
# Delete the combined water/protein molecule and load the system that
# has excess water removed.
mol delete top
mol load psf solvate.psf pdb solvate.pdb
• segment [segids] [resids] [residue] [first] [last] <segment ID> [resid] [atom name] {
<commands> }
Purpose: Build a segment of the molecule. A segment is typically a single chain of protein
or DNA, with default patches applied to the termini. Segments may also contain pure solvent
35
or lipid. Options [segids] [resids] [residue] [first] [last] are used to query information
about the specified segment.
Arguments: segids: Return a list of segids for the molecule in the current context.
resids: Return a list of resids for the molecule in the current context.
residue: Return the residue name of the residue in the given segment with the given resid.
atoms: Return a list of atoms for the given segment with the given resid.
coordinates: Return x, y, z coordinates for the given atom.
first: Returns the name of the patch that was applied to the beginning of the specified
segment.
last: Returns the name of the patch that was applied to the end of the specified segment.
<segment ID>: Unique name for segment, 1–4 characters.
<commands>: Sequence of commands in Tcl syntax to build the primary structure of the
segment, including auto, first, last, residue, pdb, etc.
Context: After topology definitions and residue aliases. May call multiple times. Structure
information is generated at the end of every segment command.
36
• mutate <resid> <resname>
Purpose: Change the type of a single residue in the current segment.
Arguments: <resid>: Unique name for residue, 1–5 characters, usually numeric. <resname>:
New residue type name from topology file.
Context: Within segment, after target residue has been created.
37
• resetpsf
Purpose: Delete all segments in the structure. The topology definitions and aliases are left
intact. If you want to clear the topology and aliases as well, use psfcontext reset instead.
Arguments:
Context: After one or more segments have been built.
• psfcontext reset
Purpose: Clears the structure, topology definitions, and aliases, creating clean environment
just like a new context.
Arguments:
Context: At any time.
• psfcontext create
Purpose: Creates a new context and returns its ID, but does not switch to it. This is different
from psfcontext new above, which switches to the newly created context and returns the
current context’s ID.
Arguments:
Context: At any time.
• psfcontext stats
Purpose: Returns the total numbers of contexts that have been created and destroyed. This
is useful for checking if a script is leaking contexts.
38
Arguments:
Context: At any time.
• guesscoord
Purpose: Guesses coordinates of atoms for which they were not explicitly set. Calculation
is based on internal coordinate hints contained in toplogy definition files. When these are
insufficient, wild guesses are attempted based on bond lengths of 1 Å and angles of 109◦ .
Arguments: None.
Context: After stucture has been generated and known coordinates read in.
39
• writepdb <file name>
Purpose: Writes PDB file containing coordinates. Atoms order is identical to PSF file
generated by writepsf (unless structure has been changed). The O field is set to 1 for atoms
with known coordinates, 0 for atoms with guessed coordinates, and -1 for atoms with no
coordinate data available (coordinates are set to 0 for these atoms).
Arguments: <file name>: PDB file to be written.
Context: After structure and coordinates are complete.
PSF
1 !NTITLE
REMARKS original generated structure x-plor psf file
REMARKS 4 patches were applied to the molecule.
REMARKS topology 1LOV_autopsf-temp.top
REMARKS segment P1 { first NTER; last CTER; auto angles dihedrals }
REMARKS segment O1 { first NONE; last NONE; auto none }
REMARKS segment W1 { first NONE; last NONE; auto none }
REMARKS defaultpatch NTER P1:1
REMARKS defaultpatch CTER P1:104
REMARKS patch DISU P1:10 P1:2
REMARKS patch DISU P1:103 P1:6
1704 !NATOM
1 P1 1 ALA N NH3 -0.300000 14.0070 0
...
All patches that were applied explicitely using the “patch” command are listed following the
keyword “patch”, but the patches that result from default patching like the first and last patches
of a segment are marked as “defaultpatch”. Further the segment based patching rules are listed
along with the angle/dihedral autogeneration rules.
40
5 Basic Simulation Parameters
5.1 Non-bonded interaction parameters and computations
NAMD has a number of options that control the way that non-bonded interactions are calculated.
These options are interrelated and can be quite confusing, so this section attempts to explain the
behavior of the non-bonded interactions and how to use these parameters.
switchdist cutoff
energy
distance
Figure 1: Graph of van der Waals potential with and without the application of the switching function.
With the switching function active, the potential is smoothly reduced to 0 at the cutoff distance. Without
the switching function, there is a discontinuity where the potential is truncated.
The switching function used is based on the X-PLOR switching function. The parameter
switchdist specifies the distance at which the switching function should start taking effect to bring
the van der Waals potential to 0 smoothly at the cutoff distance. Thus, the value of switchdist
must always be less than that of cutoff.
41
cutoff distance, a shifting function is applied to the electrostatic potential as shown in Figure 2. As
this figure shows, the shifting function shifts the entire potential curve so that the curve intersects
the x-axis at the cutoff distance. This shifting function is based on the shifting function used by
X-PLOR.
energy
0
cutoff distance
Figure 2: Graph showing an electrostatic potential with and without the application of the shifting function.
Next, consider the case where full electrostatics are calculated. In this case, the electrostatic
interactions are not truncated at any distance. In this scheme, the cutoff parameter has a slightly
different meaning for the electrostatic interactions — it represents the local interaction distance,
or distance within which electrostatic pairs will be directly calculated every timestep. Outside of
this distance, interactions will be calculated only periodically. These forces will be applied using a
multiple timestep integration scheme as described in Section 5.2.
direct at
energy
every step
fma
cutoff
0
distance
Figure 3: Graph showing an electrostatic potential when full electrostatics are used within NAMD, with
one curve portion calculated directly and the other calculated using DPMTA.
42
5.1.3 Nonbonded interaction distance-testing
The last critical parameter for non-bonded interaction calculations is the parameter pairlistdist.
To reduce the cost of performing the non-bonded interactions, NAMD uses a non-bonded pair list
which contained all pairs of atoms for which non-bonded interactions should be calculated. Per-
forming the search for pairs of atoms that should have their interactions calculated is an expensive
operation. Thus, the pair list is only calculated periodically, at least once per cycle. Unfortunately,
pairs of atoms move relative to each other during the steps between preparation of the pair list.
Because of this, if the pair list were built to include only those pairs of atoms that are within
the cutoff distance when the list is generated, it would be possible for atoms to drift closer to-
gether than the cutoff distance during subsequent timesteps and yet not have their non-bonded
interactions calculated.
Let us consider a concrete example to better understand this. Assume that the pairlist is built
once every ten timesteps and that the cutoff distance is 8.0 Å. Consider a pair of atoms A and B
that are 8.1 Å apart when the pairlist is built. If the pair list includes only those atoms within the
cutoff distance, this pair would not be included in the list. Now assume that after five timesteps,
atoms A and B have moved to only 7.9 Å apart. A and B are now within the cutoff distance of each
other, and should have their non-bonded interactions calculated. However, because the non-bonded
interactions are based solely on the pair list and the pair list will not be rebuilt for another five
timesteps, this pair will be ignored for five timesteps causing energy not to be conserved within the
system.
To avoid this problem, the parameter pairlistdist allows the user to specify a distance greater
than the cutoff distance for pairs to be included in the pair list, as shown in Figure 4. Pairs that
are included in the pair list but are outside the cutoff distance are simply ignored. So in the above
example, if the pairlistdist were set to 10.0 Å, then the atom pair A and B would be included
in the pair list, even though the pair would initially be ignored because they are further apart than
the cutoff distance. As the pair moved closer and entered the cutoff distance, because the pair was
already in the pair list, the non-bonded interactions would immediately be calculated and energy
conservation would be preserved. The value of pairlistdist should be chosen such that no atom
pair moves more than pairlistdist − cutoff in one cycle. This will insure energy conservation
and efficiency.
The pairlistdist parameter is also used to determine the minimum patch size. Unless the
splitPatch parameter is explicitly set to position, hydrogen atoms will be placed on the same
patch as the “mother atom” to which they are bonded. These hydrogen groups are then distance
tested against each other using only a cutoff increased by the the value of the hgroupCutoff
parameter. The size of the patches is also increased by this amount. NAMD functions correctly
even if a hydrogen atom and its mother atom are separated by more than half of hgroupCutoff
by breaking that group into its individual atoms for distance testing. Margin violation warning
messages are printed if an atom moves outside of a safe zone surrounding the patch to which it
is assigned, indicating that pairlistdist should be increased in order for forces to be calculated
correctly and energy to be conserved.
Margin violations mean that atoms that are in non-neighboring patches may be closer than the
cutoff distance apart. This may sometimes happen in constant pressure simulations when the cell
shrinks (since the patch grid remains the same size). The workaround is to increase the margin
parameter so that the simulation starts with fewer, larger patches. Restarting the simulation will
also regenerate the patch grid.
In rare special circumstances atoms that are involved in bonded terms (bonds, angles, dihedrals,
43
pairlist distance cutoff
Figure 4: Depiction of the difference between the cutoff distance and the pair list distance. The pair list
distance specifies a sphere that is slightly larger than that of the cutoff so that pairs are allowed to move in
and out of the cutoff distance without causing energy conservation to be disturbed.
or impropers) or nonbonded exclusions (especially implicit exclusions due to bonds) will be placed
on non-neighboring patches because they are more than the cutoff distance apart. This can result
in the simulation dying with a message of “bad global exclusion count”. If an “atoms moving too
fast; simulation has become unstable”, “bad global exclusion count”, or similar error happens on
the first timestep then there is likely something very wrong with the input coordinates, such as the
atoms with uninitialized coordinates or different atom orders in the PSF and PDB file. Looking
at the system in VMD will often reveal an abnormal structure. Be aware that the atom IDs in the
“Atoms moving too fast” error message are 1-based, while VMD’s atom indices are 0-based. If an
“atoms moving too fast; simulation has become unstable”, “bad global exclusion count”, or similar
error happens later in the simulation then the dynamics have probably become unstable, resulting
in the system “exploding” apart. Energies printed at every timestep should show an exponential
increase. This may be due to a timestep that is too long, or some other strange feature. Saving
a trajectory of every step and working backwards in can also sometimes reveal the origin of the
instability.
44
the long range forces are slowly varying, they are not evaluated every timestep. Instead, they are
evaluated every k timesteps, specified by the NAMD parameter fullElectFrequency. An impulse
of k times the long range force is applied to the system every k timesteps (i.e., the r-RESPA
integrator is used). For appropriate values of k, it is believed that the error introduced by this
infrequent evaluation is modest compared to the error already incurred by the use of the numerical
(Verlet) integrator. Improved methods for incorporating these long range forces are currently being
investigated, with the intention of improving accuracy as well as reducing the frequency of long
range force evaluations.
In the scheme described above, the van der Waals forces are still truncated at the local interac-
tion distance. Thus, the van der Waals cutoff distance forms a lower limit to the local interaction
distance. While this is believed to be sufficient, there are investigations underway to remove this
limitation and provide full van der Waals calculations in O(N ) time as well.
45
• switching < use switching function? >
Acceptable Values: on or off
Default Value: on
Description: If switching is specified to be off, then a truncated cutoff is performed.
If switching is turned on, then smoothing functions are applied to both the electrostatics
and van der Waals forces. For a complete description of the non-bonded force parameters see
Section 5.1. If switching is set to on, then switchdist must also be defined.
• limitdist < maximum distance between pairs for limiting interaction strength(Å) >
Acceptable Values: non-negative decimal
Default Value: 0.
Description: The electrostatic and van der Waals potential functions diverge as the
distance between two atoms approaches zero. The potential for atoms closer than limitdist
is instead treated as ar2 + c with parameters chosen to match the force and potential at
limitdist. This option should primarily be useful for alchemical free energy perturbation
calculations, since it makes the process of creating and destroying atoms far less drastic
energetically. The larger the value of limitdist the more the maximum force between atoms
will be reduced. In order to not alter the other interactions in the simulation, limitdist
should be less than the closest approach of any non-bonded pair of atoms; 1.3 Å appears to
satisfy this for typical simulations but the user is encouraged to experiment. There should
be no performance impact from enabling this feature.
• pairlistdist < distance between pairs for inclusion in pair lists (Å) >
Acceptable Values: positive decimal ≥ cutoff
Default Value: cutoff
Description: A pair list is generated pairlistsPerCycle times each cycle, containing
pairs of atoms for which electrostatics and van der Waals interactions will be calculated.
This parameter is used when switching is set to on to specify the allowable distance between
atoms for inclusion in the pair list. This parameter is equivalent to the X-PLOR parameter
CUTNb. If no atom moves more than pairlistdist−cutoff during one cycle, then there will
be no jump in electrostatic or van der Waals energies when the next pair list is built. Since
such a jump is unavoidable when truncation is used, this parameter may only be specified
when switching is set to on. If this parameter is not specified and switching is set to on,
the value of cutoff is used. A value of at least one greater than cutoff is recommended.
46
Description: When set to hydrogen, hydrogen atoms are kept on the same patch as their
parents, allowing faster distance checking and rigid bonds.
47
• pairlistGrow < tol *= (1 + x) on trigger >
Acceptable Values: non-negative decimal
Default Value: 0.01
Description: In order to maintain validity for the pairlist for an entire cycle, the pairlist
tolerance (the distance an atom can move without causing the pairlist to be invalidated) is
adjusted during the simulation. Every time an atom exceeds a trigger criterion that is some
fraction of the tolerance distance, the tolerance is increased by this fraction.
48
remove center of mass motion of the system. Note that this does not preclude later center-
of-mass motion due to external forces such as random noise in Langevin dynamics, boundary
potentials, and harmonic restraints.
49
results. If no value is specified, NAMD will choose a pseudo-random value based on the
current UNIX clock time. The random number seed will be output during the simulation
startup so that its value is known and can be reused for subsequent simulations. Note that if
Langevin dynamics are used in a parallel simulation (i.e., a simulation using more than one
processor) even using the same seed will not guarantee reproducible results.
50
nately, most of the parameters still refer to FMA rather than DPMTA for historical reasons. Don’t
be confused!
For a further description of how exactly full electrostatics are incorporated into NAMD, see
Section 5.2. For a greater level of detail about DPMTA and the specific meaning of its options, see
the DPMTA distribution which is available via anonymous FTP from the site ftp.ee.duke.edu
in the directory /pub/SciComp/src.
51
is only used if both FMA and FMAFFT are set to on. The default value of 4 should be suitable
for most applications.
52
Default Value: larger of x and y grid sizes up to all available processors
Description: For best performance on some systems and machines, it may be necessary
to restrict the amount of parallelism used. Experiment with this parameter if your parallel
performance is poor when PME is used.
53
5.3.7 Multiple timestep parameters
One of the areas of current research being studied using NAMD is the exploration of better methods
for performing multiple timestep integration. Currently the only available method is the impulse-
based Verlet-I or r-RESPA method which is stable for timesteps up to 4 fs for long-range electrostatic
forces, 2 fs for short-range nonbonded forces, and 1 fs for bonded forces Setting rigid all (i.e.,
using SHAKE) increases these timesteps to 6 fs, 2 fs, and 2 fs respectively but eliminates bond
motion for hydrogen. The mollified impulse method (MOLLY) reduces the resonance which limits
the timesteps and thus increases these timesteps to 6 fs, 2 fs, and 1 fs while retaining all bond
motion.
• longSplitting < how should long and short range forces be split? >
Acceptable Values: xplor, c1
Default Value: c1
Description: Specifies the method used to split electrostatic forces between long and short
range potentials. The xplor option uses the X-PLOR shifting function, and the c1 splitting
uses the following C 1 continuous shifting function [16]:
where
54
• molly < use mollified impulse method (MOLLY)? >
Acceptable Values: on or off
Default Value: off
Description: This method eliminates the components of the long range electrostatic forces
which contribute to resonance along bonds to hydrogen atoms, allowing a fullElectFrequency
of 6 (vs. 4) with a 1 fs timestep without using rigidBonds all. You may use rigidBonds
water but using rigidBonds all with MOLLY makes no sense since the degrees of freedom
which MOLLY protects from resonance are already frozen.
55
6 Additional Simulation Parameters
6.1 Constraints and Restraints
6.1.1 Harmonic constraint parameters
The following describes the parameters for the harmonic constraints feature of NAMD. Actually,
this feature should be referred to as harmonic restraints rather than constraints, but for historical
reasons the terminology of harmonic constraints has been carried over from X-PLOR. This feature
allows a harmonic restraining force to be applied to any set of atoms in the simulation.
• constraintScaling < scaling factor for harmonic constraint energy function >
Acceptable Values: positive
Default Value: 1.0
Description: The harmonic constraint energy function is multiplied by this parameter,
making it possible to gradually turn off constraints during equilibration. This parameter is
used only if constraints is set to on.
56
• selectConstraints < Restrain only selected Cartesian components of the coordinates? >
Acceptable Values: on or off
Default Value: off
Description: This option is useful to restrain the positions of atoms to a plane or a line
in space. If active, this option will ensure that only selected Cartesian components of the
coordinates are restrained. E.g.: Restraining the positions of atoms to their current z values
with no restraints in x and y will allow the atoms to move in the x-y plane while retaining
their original z-coordinate. Restraining the x and y values will lead to free motion only along
the z coordinate.
57
• fixedAtomsCol < column of PDB containing fixed atom parameters >
Acceptable Values: X, Y, Z, O, or B
Default Value: O
Description: Column of the PDB file to use for the containing fixed atom parameters for
each atom. The coefficients can be read from any floating point column of the PDB file. A
value of 0 indicates that the atom is not fixed.
58
• maximumMove < maximum distance an atom can move during each step (Å) >
Acceptable Values: positive decimal
Default Value: 0.75 × cutoff/stepsPerCycle
Description: Maximum distance that an atom can move during any single timestep of
minimization. This is to insure that atoms do not go flying off into space during the first few
timesteps when the largest energy conflicts are resolved.
59
Default Value: O
Description: Column of the PDB file to use for the Langevin coupling coefficients for each
atom. The coefficients can be read from any floating point column of the PDB file. A value
of 0 indicates that the atom will remain unaffected.
60
• rescaleTemp < temperature for equilibration (K) >
Acceptable Values: positive decimal
Description: The temperature to which all velocities will be rescaled every rescaleFreq
timesteps. This parameter is valid only if rescaleFreq has been set.
61
• sphericalBC < use spherical boundary conditions? >
Acceptable Values: on or off
Default Value: off
Description: Specifies whether or not spherical boundary conditions are to be applied to
the system. If set to on, then sphericalBCCenter, sphericalBCr1 and sphericalBCk1 must
be defined, and sphericalBCexp1, sphericalBCr2, sphericalBCk2, and sphericalBCexp2
can optionally be defined.
62
• cylindricalBC < use cylindrical boundary conditions? >
Acceptable Values: on or off
Default Value: off
Description: Specifies whether or not cylindrical boundary conditions are to be applied
to the system. If set to on, then cylindricalBCCenter, cylindricalBCr1, cylindricalBCl1
and cylindricalBCk1 must be defined, and cylindricalBCAxis, cylindricalBCexp1, cylindricalBCr2,
cylindricalBCl2, cylindricalBCk2, and cylindricalBCexp2 can optionally be defined.
• cylindricalBCl1 < distance along cylinder axis for first boundary condition (Å) >
Acceptable Values: positive decimal
Description: Distance at which the first potential of the boundary conditions takes effect
along the cylinder axis.
63
• cylindricalBCk2 < force constant for second potential >
Acceptable Values: non-zero decimal
Description: Force constant for the second harmonic potential. A positive value will push
atoms toward the center, and a negative value will pull atoms away from the center.
64
• XSTfreq < how often to append state to XST file >
Acceptable Values: positive integer
Description: Like the DCDfreq option, controls how often the extended system configura-
tion will be appended to the XST file.
• wrapNearest < use nearest image to cell origin when wrapping coordinates? >
Acceptable Values: on or off
Default Value: off
Description: Coordinates are normally wrapped to the diagonal unit cell centered on the
origin. This option, combined with wrapWater or wrapAll, wraps coordinates to the nearest
image to the origin, providing hexagonal or other cell shapes.
65
positions of the affected atoms in the input coordinates and assumes that the net force will average
to zero over time. For time periods during with the net force is non-zero, the calculated pressure
fluctuations will include a term proportional to the distance to the affected from the user-defined
cell origin. A good way to observe these effects and to confirm that pressure for external forces
is handled reasonably is to run a constant volume cutoff simulation in a cell that is larger than
the molecular system by at least the cutoff distance; the pressure for this isolated system should
average to zero over time.
Because NAMD’s impluse-basd multiple timestepping system alters the balance between bonded
and non-bonded forces from every timestep to an average balance over two steps, the calculated
pressure on even and odd steps will be different. The PRESSAVG and GPRESSAVG fields provide
the average over the non-printed intermediate steps. If you print energies on every timestep you
will see the effect clearly in the PRESSURE field.
The following options affect all pressure control methods.
66
Default Value: off
Description: Specifies whether or not Berendsen pressure bath coupling is active. If set to
on, then the parameters BerendsenPressureTarget, BerendsenPressureCompressibility
and BerendsenPressureRelaxationTime must be set and the parameter BerendsenPressureFreq
can optionally be set to control the behavior of this feature.
• BerendsenPressureTarget < target pressure (bar) >
Acceptable Values: positive decimal
Description: Specifies target pressure for Berendsen’s method. A typical value would be
1.01325 bar, atmospheric pressure at sea level.
• BerendsenPressureCompressibility < compressibility (bar−1 ) >
Acceptable Values: positive decimal
Description: Specifies compressibility for Berendsen’s method. A typical value would
−1
be 4.57E-5 bar , corresponding to liquid water. The higher the compressibility, the more
volume will be adjusted for a given pressure difference. The compressibility and the relaxation
time appear only as a ratio in the dynamics, so a larger compressibility is equivalent to a
smaller relaxation time.
• BerendsenPressureRelaxationTime < relaxation time (fs) >
Acceptable Values: positive decimal
Description: Specifies relaxation time for Berendsen’s method. If the instantaneous pres-
sure did not fluctuate randomly during a simulation and the compressibility estimate was
exact then the inital pressure would decay exponentially to the target pressure with this time
constant. Having a longer relaxation time results in more averaging over pressure measure-
ments and hence smaller fluctuations in the cell volume. A reasonable choice for relaxation
time would be 100 fs. The compressibility and the relaxation time appear only as a ratio in
the dynamics, so a larger compressibility is equivalent to a smaller relaxation time.
• BerendsenPressureFreq < how often to rescale positions >
Acceptable Values: positive multiple of nonbondedFrequency and fullElectFrequency
Default Value: nonbondedFrequency or fullElectFrequency if used
Description: Specifies number of timesteps between position rescalings for Berendsen’s
method. Primarily to deal with multiple timestepping integrators, but also to reduce cell
volume fluctuations, cell rescalings can occur on a longer interval. This could reasonably be
between 1 and 20 timesteps, but the relaxation time should be at least ten times larger.
67
The equations of motion are:
r0 = p/m + e0 r
p0 = F − e0 p − gp + R
V 0 = 3V e0
e00 = 3V /W (P − P0 ) − ge e0 + Re /W
W = 3N τ 2 kT
< R2 > = 2mgkT /h
τ = oscillationperiod
< Re2 > = 2W ge kT /h
Here, W is the mass of piston, R is noise on atoms, and Re is the noise on the piston.
The user specifies the desired pressure, oscillation and decay times of the piston, and tempera-
ture of the piston. The compressibility of the system is not required. In addition, the user specifies
the damping coefficients and temperature of the atoms for Langevin dynamics.
The following parameters are used to define the algorithm.
68
Description: Specifies barostat noise temperature for Langevin piston method. This should
be set equal to the target temperature for the chosen method of temperature control.
• SurfaceTensionTarget < Surface tension target (dyn/cm) >
Acceptable Values: decimal
Default Value: 0.0
Description: Specifies surface tension target. Must be used with useFlexibleCell and
periodic boundary conditions. The pressure specified in LangevinPistonTarget becomes the
pressure along the z axis, and surface tension is applied in the x-y plane.
• StrainRate < initial strain rate >
Acceptable Values: decimal triple (x y z)
Default Value: 0. 0. 0.
Description: Optionally specifies the initial strain rate for pressure control. Is overridden
by value read from file specified with extendedSystem. There is typically no reason to set
this parameter.
• ExcludeFromPressure < Should some atoms be excluded from pressure rescaling? >
Acceptable Values: on or off
Default Value: off
Description: Specifies whether or not to exclude some atoms from pressure rescaling. The
coordinates and velocites of such atoms are not rescaled during constant pressure simulations,
though they do contribute to the virial calculation. May be useful for membrane protein
simulation. EXPERIMENTAL.
• ExcludeFromPressureFile < File specifying excluded atoms >
Acceptable Values: PDB file
Default Value: coordinates file
Description: PDB file with one column specifying which atoms to exclude from pressure
rescaling. Specify 1 for excluded and 0 for not excluded.
• ExcludeFromPressureCol < Column in PDB file for specifying excluded atoms >
Acceptable Values: O, B, X, Y, or Z
Default Value: O
Description: Specifies which column of the pdb file to check for excluded atoms.
69
• consForceFile < PDB file containing forces to be applied >
Acceptable Values: UNIX filename
Description: The X, Y, Z and occupancy (O) fields of this file are read to determine
the constant force vector of each atom, which is (X,Y,Z)*O, in unit of kcal/(mol*Å). The
occupancy (O) serves as a scaling factor, which could expand the range of the force applied.
(One may be unable to record very large or very small numbers in the data fields of a PDB
file due to limited space). Zero forces are ignored.
Specifying consforcefile is optional; constant forces may be specifed or updated between
runs by using the consForceConfig command.
70
NOTE: NAMD actually calculates the constraints potential with U = k(x − x0 )d and the force
with F = dk(x − x0 ), where d is the exponent consexp. The result is that if one specifies some
value for the force constant k in the PDB file, effectively, the force constant is 2k in calculations.
This caveat was removed in SMD feature.
The following parameters describe the parameters for the moving harmonic constraint feature
of NAMD.
71
2
pdb file, the force actually calculated is F = 2K(R − X) = 1 kcal/mol/Å (R − X). SMD feature
of namd2 does the calculation without multiplication of the force constant specified in the config
file by 2.
72
• TMDOutputFreq < How often to print TMD output >
Acceptable Values: Positive integer
Default Value: 1
Description: TMD output consists of lines of the form TMD ts targetRMS currentRMS
where ts is the timestep, targetRMS is the target RMSD at that timestep, and currentRMS
is the actual RMSD.
73
• In harmonic constraints, each tagged atom is harmonically constrained to a reference point
which moves with constant velocity. In SMD, it is the center of mass of the tagged atoms
which is constrained to move with constant velocity.
• In harmonic constraints, each tagged atom is constrained in all three spatial dimensions. In
SMD, tagged atoms are constrained only along the constraint direction.
The center of mass of the SMD atoms will be harmonically constrained with force constant k
(SMDk) to move with velocity v (SMDVel) in the direction ~n (SMDDir). SMD thus results in the
following potential being applied to the system:
1 h ~ −R
i2
~ 0 ) · ~n .
U (~r1 , ~r2 , ..., t) = k vt − (R(t) (3)
2
Here, t ≡ Nts dt where Nts is the number of elapsed timesteps in the simulation and dt is the size
~
of the timestep in femtoseconds. Also, R(t) is the current center of mass of the SMD atoms and
R0 is the initial center of mass as defined by the coordinates in SMDFile. Vector ~n is normalized
by NAMD before being used.
Output NAMD provides output of the current SMD data. The frequency of output is specified
by the SMDOutputFreq parameter in the configuration file. Every SMDOutputFreq timesteps NAMD
will print the current timestep, current position of the center of mass of the restrained atoms, and
the current force applied to the center of mass (in piconewtons, pN). The output line starts with
word SMD
Parameters The following parameters describe the parameters for the SMD feature of NAMD.
• SMD < Are SMD features active >
Acceptable Values: on or off
Default Value: off
Description: Should SMD harmonic constraint be applied to the system. If set to on, then
SMDk, SMDFile, SMDVel, and SMDDir must be defined. Specifying SMDOutputFreq is optional.
74
• SMDDir < Direction of the SMD center of mass movement >
Acceptable Values: non-zero vector
Description: The direction of the SMD reference position movement. The vector does not
have to be normalized, it is normalized by NAMD before being used.
75
centers of mass of groups of atoms, are needed. In addition, information must be requested one
timestep in advance. To apply forces individually to a potentially large number of atoms, use tclBC
instead as described in Sec. 6.6.9. The following configuration parameters are used to enable the
Tcl interface:
At this point only low-level commands are defined. In the future this list will be expanded.
Current commands are:
• print <anything>
This command should be used instead of puts to display output. For example, “print Hello World”.
• addatom <atomid>
Request coordinates of this atom for next force evaluation, and the calculated total force on
this atom for current force evaluation. Request remains in effect until clearconfig is called.
For example, “addatom 4” or “addatom [atomid br 2 N]”.
• clearconfig
Clears the current list of requested atoms. After clearconfig, calls to addatom and addgroup
can be used to build a new configuration.
• getstep
Returns the current step number.
76
• loadcoords <varname>
Loads requested atom and group coordinates (in Å) into a local array. loadcoords should
only be called from within the calcforces procedure. For example, “loadcoords p” and
“print $p(4)”.
• loadforces <varname>
Loads the forces applied in the previous timestep (in kcal mol−1 Å−1 ) into a local array.
loadforces should only be called from within the calcforces procedure. For example,
“loadforces f” and “print $f(4)”.
• loadtotalforces <varname>
Loads the total forces on each requested atom in the previous time step (in kcal mol−1 Å−1 )
into a local array. The total force also includes external forces. Note that the “loadforces”
command returns external forces applied by the user. Therefore, one can subtract the external
force on an atom from the total force on this atom to get the pure force arising from the
simulation system.
• loadmasses <varname>
Loads requested atom and group masses (in amu) into a local array. loadmasses should only
be called from within the calcforces procedure. For example, “loadcoords m” and “print
$m(4)”.
• addforce <atomid|groupid> <force vector>
Applies force (in kcal mol−1 Å−1 ) to atom or group. addforce should only be called from
within the calcforces procedure. For example, “addforce $groupid { 1. 0. 2. }”.
• addenergy <energy (kcal/mol)>
This command adds the specified energy to the MISC column (and hence the total energy) in
the energy output. For normal runs, the command does not affect the simulation trajectory
at all, and only has an artificial effect on its energy output. However, it can indeed affect
minimizations.
With the commands above and the functionality of the Tcl language, one should be able to
perform any on-the-fly analysis and manipulation. To make it easier to perform certain tasks, some
Tcl routines are provided below.
Several vector routines (vecadd, vecsub, vecscale) from the VMD Tcl interface are defined.
Please refer to VMD manual for their usage.
The following routines take atom coordinates as input, and return some geometry parameters
(bond, angle, dihedral).
• getbond <coor1> <coor2>
Returns the length of the bond between the two atoms. Actually the return value is simply
the distance between the two coordinates. “coor1” and “coor2” are coordinates of the atoms.
• getangle <coor1> <coor2> <coor3>
Returns the angle (from 0 to 180) defined by the three atoms. “coor1”, “coor2” and “coor3”
are coordinates of the atoms.
• getdihedral <coor1> <coor2> <coor3> <coor4>
Returns the dihedral (from -180 to 180) defined by the four atoms. “coor1”, “coor2”, “coor3”
and “coor4” are coordinates of the atoms.
77
The following routines calculate the derivatives (gradients) of some geometry parameters (angle,
dihedral).
As an example, here’s a script which applies a harmonic constraint (reference position being 0)
to a dihedral. Note that the “addenergy” line is not really necessary – it simply adds the calculated
constraining energy to the MISC column, which is displayed in the energy output.
tclForcesScript {
# The IDs of the four atoms defining the dihedral
set aid1 112
set aid2 123
set aid3 117
set aid4 115
addatom $aid1
addatom $aid2
addatom $aid3
addatom $aid4
set PI 3.1416
proc calcforces {} {
loadcoords p
78
# Calculate the "force" along the dihedral according to the harmonic constraint
set force [expr -$k*$phi]
The script provided in tclBCScript and the calcforces procedure it defines are executed in
multiple Tcl interpreters, one for every processor that owns patches. These tclBC interpreters do
not share state with the Tcl interpreter used for tclForces or config file parsing. The calcforces
procedure is passed as arguments the current timestep, a “unique” flag which is non-zero for exactly
one Tcl interpreter in the simulation (that on the processor of patch zero), and any arguments
79
provided to the most recent tclBCArgs option. The “unique” flag is useful to limit printing of
messages, since the command is invoked on multiple processors.
The print, vecadd, vecsub, vecscale, getbond, getangle, getdihedral, anglegrad, and
dihedralgrad commands described under tclForces are available at all times.
The wrapmode <mode> command, available in the tclBCScript or the calcforces procedure,
determines how coordinates obtained in the calcforces procedure are wrapped around periodic
boundaries. The options are:
• patch, (default) the position in NAMD’s internal patch data structure, requires no extra
calculation and is almost the same as cell
• cell, the equivalent position in the unit cell centered on the cellOrigin
The following commands are available from within the calcforces procedure:
• nextatom
Sets the internal counter to a new atom and return 1, or return 0 if all atoms have been
processed (this may even happen the first call). This should be called as the condition of a
while loop, i.e., while {[nextatom]} { ... } to iterate over all atoms. One one atom may
be accessed at a time.
• dropatom
Excludes the current atom from future iterations on this processor until cleardrops is called.
Use this to eliminate extra work when an atom will not be needed for future force calculations.
If the atom migrates to another processor it may reappear, so this call should be used only
as an optimization.
• cleardrops
All available atoms will be iterated over by nextatom as if dropatom had never been called.
• getcoord
Returns a list {x y z} of the position of the current atom wrapped in the periodic cell (if
there is one) in the current wrapping mode as specified by wrapmode.
• getcell
Returns a list of 1–4 vectors containing the cell origin (center) and as many basis vectors
as exist, i.e., {{ox oy oz} {ax ay az} {bx by bz} {cx cy cz}}. It is more efficient to set
the wrapping mode than to do periodic image calculations in Tcl.
• getmass
Returns the mass of the current atom.
• getcharge
Returns the charge of the current atom.
• getid
Returns the 1-based ID of the current atom.
80
• addforce {<fx> <fy> <fz>}
Adds the specified force to the current atom for this step.
• addenergy <energy>
Adds potential energy to the BOUNDARY column of NAMD output.
sphericalBC on
sphericalBCcenter 0.0,0.0,0.0
sphericalBCr1 48
sphericalBCk1 10
sphericalBCexp1 2
tclBC on
tclBCScript {
proc veclen2 {v1} {
foreach {x1 y1 z1} $v1 { break }
return [expr $x1*$x1 + $y1*$y1 + $z1*$z1]
}
# wrapmode input
# wrapmode cell
# wrapmode nearest
# wrapmode patch ;# the default
while {[nextatom]} {
# addenergy 1 ; # monitor how many atoms are checked
set rvec [getcoord]
set r2 [veclen2 $rvec]
if { $r2 < $cut2 } {
dropatom
continue
}
if { $r2 > $R2 } {
# addenergy 1 ; # monitor how many atoms are affected
81
set r [expr sqrt($r2)]
addenergy [expr $K*($r - $R)*($r - $R)]
addforce [vecscale $rvec [expr -2.*$K*($r-$R)/$r]]
}
}
}
}
82
of mass of groups of atoms, are needed. The following configuration parameters are used to enable
free energy perturbation:
The following sections describe the format of the free energy perturbation script.
83
The forcing restraints depend on the coupling parameter, λ, specified in a conformational forcing
calculation. For example, the restraint distance, dref , depends on λ, and as λ changes two atoms
or centers-of-mass are forced closer together or further apart. In this case Kf = Kf,0 , the value
supplied at input.
Alternatively, the value of Kf may depend upon the coupling parameter λ according to:
Kf = Kf,0 λ
Bounds
Position bound (1 atom): Force constant Kf , reference position − r− →
ref ,
and upper or lower reference distance, dref
Upper bound:
E = (Kf /2) (di − dref )2 for di > dref , else E = 0.
Lower bound:
E = (Kf /2) (di − dref )2 for di < dref , else E = 0.
d2 = (|−
i
→
ri − −
r−→|)2
ref
Torsion bound (4 atoms): An upper and lower bound must be provided together.
Energy gap E0 , lower AND upper reference angles, χ1 and χ2 ,
and angle interval, ∆χ.
χ1 < χ < χ2 : E=0
(χ1 − ∆χ) < χ < χ1 : E = (G/2) {1 − cos (χ − χ1 )}
χ2 < χ (χ2 + ∆χ): E = (G/2) {1 − cos (χ − χ2 )}
(χ2 + ∆χ) < χ (χ1 − ∆χ + 2π) : E = G
G = E0 / {1 − cos (∆χ)}
Bounds may be used in pairs, to set a lower and upper bound. Torsional bounds always are
defined in pairs.
84
mean distance that is varied during the calculation. The free energy change (or potential of mean
force, pmf) for the process can be estimated during the simulation.
The potential is made to depend on a coupling parameter, λ, whose value changes during the
simulation. In potential of mean force calculations, the reference value of the restraint potential
depends on λ. Alternately, the force constant for the restraint potential may change in proportion
to the coupling parameter. Such a calculation gives the value of a restraint free energy, i.e., the
free energy change of the system due to imposition of the restraint potential.
Slow growth.
In slow growth, λ is incremented by δλ = ±1/Nstep after each dynamics integration time-step,
and the pmf is estimated as
−∆A = Σ (∂U/∂λ) δλ
Typically, slow growth is done in cycles of: equilibration at λ = 0, change to λ = 1, equilibration
at λ = 1, change to λ = 0 . It is usual to estimate the precision of slow growth simulations from
the results of successive cycles.
85
posi bound ATOM kf = KF [low = (X Y Z D) or hi = (X Y Z D)]
dist bound 2 x ATOM kf = KF [low = D or hi = D]
angle bound 3 x ATOM kf = KF [low = A or hi = A]
dihe bound 4 x ATOM gap = E low = A0 hi = A1 delta = A2
Units
Input item Units
E, B kcal/mol
X, Y, Z, D
A degrees
Kf kcal/(mol 2 ) or kcal/(mol rad2 )
86
One or more atomnames in a range of residues
group { atomname: (segname, resnum) to (segname, resnum) }
group { (atomname, atomname, . . . ): (segname, resnum) to (segname, resnum) }
Examples: group { ca: (insulin, 10) to (insulin, 14) }
group { (ca, cb, cg): (insulin, 10) to (insulin, 12) }
group { (ca, cb): (insulin, 10) to (insulin, 12) all: (insulin, 13) }
87
6.7.6 Examples
Fixed restraints
// 1. restrain the position of the ca atom of residue 0.
// 2. restrain the distance between the ca’s of residues 0 and 10 to 5.2Å
// 3. restrain the angle between the ca’s of residues 0-10-20 to 90o .
// 4. restrain the dihedral angle between the ca’s of residues 0-10-20-30 to 180o .
// 5. restrain the angle between the centers-of-mass of residues 0-10-20 to 90o .
urestraint {
posi (insulin, 0, ca) kf=20 ref=(10, 11, 11)
dist (insulin, 0, ca) (insulin, 10, ca) kf=20 ref=5.2
angle (insulin, 0, ca) (insulin, 10, ca) (insulin, 20, ca) kf=20 ref=90
dihe (insulin, 0, ca) (insulin, 10, ca) (insulin, 20, ca) (insulin, 30, ca) barr=20 ref=180
angle (insulin, 0) (insulin, 10) (insulin, 20) kf=20 ref=90
}
// torsional bounds are defined as pairs. this example specifies upper and lower bounds on the
// dihedral angle, χ, separating the planes of the 1-2-3 residues and the 2-3-4 residues.
// The energy is 0 for: -90o ¡ χ ¡ 120o
// The energy is 20 kcal/mol for: 130 o ¡ χ ¡ 260o
// Energy rises from 0 → 20 kcal/mol as χ increases from 120o → 130o , and decreases from –90o → –100o .
88
urestraint {
dihe bound (insulin 1) (insulin 2) (insulin 3) (insulin 4) gap=20 low=-90 hi=120 delta=10
}
Forcing restraints
// a forcing restraint will be imposed on the distance between the centers-of-mass of residues (10 to 15) and
// residues (30 to 35). low=20.0, hi=10.0, indicates that the reference distance is 20.0at λ=0, and 10.0at λ=1.
urestraint {
dist pmf group { (insulin, 10) to (insulin, 15) }
group { (insulin, 30) to (insulin, 35) } kf=20, low=20.0, hi=10.0
}
// 1. during the initial 10 ps, increase the strength of the forcing restraint to full strength: 0 → 20 kcal/(mol 2 )
// 2. next, apply a force to slowly close the distance from 20 to 10 (λ changes from 0 → 1)
// 3. accumulate dU/dλ for another 10 ps. ( stays fixed at 1)
// 4. force the distance back to its initial value of 20 ( changes from 1 → 0)
pmf {
task = grow
time = 10 ps
print = 1 ps
}
pmf {
task = up
time = 100 ps
}
pmf {
task = stop
time = 10 ps
}
pmf {
task = down
time = 100 ps
}
// 1. force the distance to close from 20 to 10 in 5 steps. (λ changes from 0 → 1: 0.2, 0.4, 0.6, 0.8, 1.0)
// at each step equilibrate for 10 ps, then collect dU/dλ for another 10 ps.
// ref = 18, 16, 14, 12, 10 , duration = (10 + 10) x 5 = 100 ps.
// 2. reverse the step above (λ changes from 1 → 0: 0.8, 0.6, 0.4, 0.2, 0.0)
mcti {
task = stepup
equiltime = 10 ps
accumtime = 10 ps
numsteps = 5
print = 1 ps
}
mcti {
task = stepdown
}
89
6.7.7 Appendix
Gradient for position restraint
(|−
E = (Kf /2) n →
ri − −
r−→ 2
ref |) o
E = (Kf /2) (xi − xref )2 + (yi − yref )2 + (zi − zref )2
n
→
− →
− →o
−
∇(E) = Kf (xi − xref ) i + (yi − yref ) j + (zi − zref ) k
Gradient for stretch restraint
E = (Kf /2) (di − dref )2
n o1/2
di = (x2 − x1 )2 + (y2 − y1 )2 + (z2 − z1 )2
∇(E) = Kf (di − dref ) · ∇(di)
for atom 2 moving, and atom 1 fixed
n o−1/2
∇(di ) = 1/2 (x2 − x1 )2 + (y2 − y1 )2 + (z2 − z1 )2 {2 (x2 − x1 ) + 2 (y2 − y1 ) + 2 (z2 − z1 )}
n
→
− −
→ →o
−
∇(di ) = (x2 − x1 ) i + (y2 − y1 ) j + (z2 − z1 ) k /di
n
→
− →
− →o
−
∇(E) = Kf {(di − dref ) /di } (x2 − x1 ) i + (y2 − y1 ) j + (z2 − z1 ) k
Gradient for bend restraint
E = (Kf /2) (θi − θref )2
Atoms at positions A-B-C
distances: (A to B) = c; (A to C) =b; (B to C) = a;
θi = cos−1 (u) = cos−1 a2 + c2 − b2 / (2ac)
∇(E) = Kf (θi − θref ) · ∇(θi )
−1
∇(θi ) = √1−u 2
· ∇(u)
for atom A moving, atoms B & C fixed (distances b and c change)
∇(u) = n{−b/ (ac)} · ∇(b) + −a/ 2c2 + 1/ (2a) + b2o/ 2ac2 · ∇(c)
→
− →
− →
−
∇(b) = (xA − xC ) i + (yA − yC ) j + (zA − zC ) k /b
n
→
− →
− →o
−
∇(c) = (xA − xB ) i + (yA − yB ) j + (zA − zB ) k /c
for atom B moving, atoms A & C fixed (distancesa and c change)
∇(u) = n1/(2c) + −c/(2a2 ) + b2 /(2a2 c) · ∇(a) + −a/ 2 + 1/(2a) + b2 / 2ac2
2c · ∇(c)
→
− −
→ →o
−
∇(a) = (xB − xC ) i + (yB − yC ) j + (zB − zC ) k /a
n
→
− →
− →o
−
∇(c) = (xB − xA ) i + (yB − yA ) j + (zB − zA ) k /c
for atom C moving, atoms A & B fixed (distances a and b change)
2 2 / 2ac2
∇(u) = n{−b/ (ac)} · ∇(b) + −c/ 2a + 1/(2c) + bo · ∇(a)
→
− −
→ →
−
∇(b) = (xC − xA ) i + (yC − yA ) j + (zC − zA ) k /b
n
→
− →
− →o
−
∇(a) = (xC − xB ) i + (yC − yB ) j + (zC − zB ) k /a
Gradient for dihedral angle restraint
E = (E0 /2) {1 − cos (χi − χref )}
Atoms at positions A-B-C-D
−−→ −−→ −−→ −−→
(CD × CB )•( BC × BA )
χi = cos−1 (u) = cos−1 −−→ −−→−−→ −−→ AND
CD ×CB BC ×BA
−−→ −−→ −−→ −−→
(CD×CB )×(BC ×BA) CB −
−→
χi = sin−1 (v) = sin−1 −−→ −−→−−→ −−→ • − −→
CD ×CB BC ×BA CB
90
∇(E) = (E0 /2) {sin (χi − χref )} · ∇(χi )
−1
∇(χi ) = √1−u 2
· ∇(u)
−−→ −−→ →
−
CD × CB = ((yD − yC )(zB − zC ) − (zD − zC )(yB − yC )) i +
→
−
((zD − zC )(xB − xC ) − (xD − xC )(zB − zC )) j +
→
−
((xD − xC )(yB − yC ) − (yD − yC )(xB − xC )) k
→
− →
− →
−
= p 1 i + p2 j + p 3 k
−−→ −−→ →
−
BC × BA = ((yC − yB )(zA − zB ) − (zC − zB )(yA − yB )) i +
→
−
((zC − zB )(xA − xB ) − (xC − xB )(zA − zB )) j +
→
−
((xC − xB )(yA − yB ) − (yC − yB )(xA − xB )) k
→
− →
− →
−
= p4 i + p5 j + p6 k
p1 p4 +p2 p
√5 +p3 p6
u= √
p21 +p22 +p23 p24 +p25 +p26
91
E = (Kf /2) (di − dref )2
dref = λd1 + (1 − λ) d0
dE/dλ = Kf × (di − dref ) × (d0 − d1 )
c 2005, Centre National de la Recherche Scientifique
92
The connection between the derivative of the free energy with respect to the reaction coordinate,
dA(ξ)/dξ, and the forces exerted along the latter may be written as: [28, 12]
where |J| is the determinant of the Jacobian for the transformation from generalized to Cartesian
coordinates. The first term of the ensemble average corresponds to the Cartesian forces exerted
on the system, derived from the potential energy function, V(x). The second contribution is a
geometric correction arising from the change in the metric of the phase space due to the use of
generalized coordinates. It is worth noting, that, contrary to its instantaneous component, Fξ , only
the average force, hFξ iξ , is physically meaningful.
In the framework of the average biasing force (ABF) approach, [11, 24] Fξ is accumulated in
small windows or bins of finite size, δξ, thereby providing an estimate of the derivative dA(ξ)/dξ
defined in equation (6). The force applied along the reaction coordinate, ξ, to overcome free energy
barriers is defined by:
6.8.2 Using the NAMD implementation of the adaptive biasing force method
The ABF method has been implemented as a suite of Tcl routines that can be invoked from the
main configuration file used to run molecular dynamics simulations with NAMD.
93
The routines can be invoked by including the following command in the configuration file:
where <path to>/lib/abf/abf.tcl is the complete path to the main ABF file. The other Tcl
files of the ABF package must be located in the same directory.
A second option for loading the ABF module is to source the lib/init.tcl file distributed
with NAMD, and then use the Tcl package facility. The file may be sourced in the config file:
Or, to make the config file portable, the init file may be the first config file passed to NAMD:
Note that the ABF code makes use of the TclForces and TclForcesScript commands. As a
result, NAMD configuration files should not call the latter directly when running ABF.
• coordinate < Type of reaction coordinate used in the ABF simulation >
Acceptable Values: distance, distance-com, abscissa, zCoord, zCoord-1atom or
xyDistance
Description: As a function of the system of interest, a number of alternative reaction
coordinates may be considered. The ABF code is modular: RC–specific code for each RC
is contained in a separate Tcl file. Additional RCs, tailored for a particular problem, may
be added by creating a new file providing the required Tcl procedures. Existing files such as
distance.tcl are thoroughly commented, and should provide a good basis for the coding of
additional coordinates, together with [15].
(1) distance corresponds to the distance separating two selected atoms:
abf1: index of the first atom of the reaction coordinate;
abf2: index of the second atom of the reaction coordinate.
94
(3) abscissa corresponds to the distance between the centers of mass of
two sets of atoms along a given direction:
direction: a vector (Tcl list of three real numbers) defining
the direction of interest
abf1: list of indices of atoms participating to the first center
of mass;
abf2: list of indices of atoms participating to the second
center of mass.
(6) xyDistance is the distance between the centers of mass of two atom
groups, projected on the (x, y) plane:
abf1: list of indices of atoms participating to the first center
of mass;
abf2: list of indices of atoms participating to the second
center of mass.
• dxi < Width of the bins in which the forces are accumulated >
Acceptable Values: decimal number, in Å
Description: Width, δξ, of the bins in which the instantaneous components of the force,
Fξ , are collected. The choice of this variable is dictated by the nature of the system and how
rapidly the free energy changes as a function of ξ.
• forceConst < Force constant applied at the borders of the reaction coordinate >
Acceptable Values: positive decimal number, in kcal/mol/Å2
Default Value: 10.0
Description: If this force constant is nonzero, a harmonic bias is enforced at the borders
95
of the reaction coordinate, i.e.at both xiMin and xiMax, to guarantee that sampling will be
confined between these two values.
• dSmooth < Length over which force data is averaged when computing the ABF >
Acceptable Values: positive decimal number, in Å
Default Value: 0.0
Description: To avoid abrupt variations in the average force and in the free energy,
fluctuations are smoothed out by means of a weighted running average over adjacent bins on
each side of ξ. When the free energy derivative varies slowly, smoothing can be performed
across several contiguous bins. Great attention should be paid, however, when the free energy
varies sharply with ξ.
• fullSamples < Number of samples in a bin prior to application of the ABF >
Acceptable Values: positive integer
Default Value: 200
Description: To avoid nonequilibrium effects in the dynamics of the system, due to large
fluctuations of the force exerted along the reaction coordinate, ξ, it is recommended to apply
the biasing force only after a reasonable estimate of the latter has been obtained.
96
• writeXiFreq < Frequency at which the time series of ξ is written >
Acceptable Values: positive integer
Default Value: 0
Description: If this parameter is nonzero, the instantaneous value of the reaction coordi-
nate, ξ, is written in the NAMD standard output every writeXiFreq time steps.
• moveBoundary < Number of samples beyond which xiMin and xiMax are updated >
Acceptable Values: positive integer
Default Value: 0
Description: Slow relaxation in the degrees of freedom orthogonal to the reaction coordi-
nate, ξ, results in a non–uniform sampling along the latter. To force exploration of ξ in quasi
non–ergodic situations, the boundaries of the reaction pathway may be modified dynamically
when a preset minimum number of samples is attained. As a result, the interval between
xiMin and xiMax is progressively narrowed down as this threshold is being reached for all
values of ξ. It should be clearly understood that uniformity of the sampling is artificial and
is only used to force diffusion along ξ. Here, uniform sampling does not guarantee the proper
convergence of the simulation.
97
Default Value: no
Description: When setting this option, an “umbrella sampling” [30] calculation is per-
formed, supplying a probability distribution for the reaction coordinate, ξ. As an initial
guess of the biases required to overcome the free energy barriers, use can be made of a pre-
vious ABF simulation — cf. inFiles. In addition, specific restraints may be defined using
the restraintList feature described below.
abf restraintList {
angle1 {angle {A 1 CA} {G 1 N3} {G 1 N1} 40.0 30.0}
dihe1 {dihe {A 1 O1} {A 1 CA} {A 1 O2} {G 1 N3} 40.0 0.0}
dihe2 {dihe {A 1 CA} {A 1 O2} {G 1 N2} {G 1 N3} 40.0 0.0}
}
where name could be any word used to refer to the restraint in the NAMD output. type is the
type of restraint, i.e.a distance, dist, a valence angle, angle, or a dihedral angle, dihe. Definition
of the successive atoms follows the syntax of NAMD conformation free energy calculations. k is
the force constant of the harmonic restraint, the unit of which depends on type. reference is the
reference, target value of the restrained coordinate.
Aside from dist, angle and dihe, which correspond to harmonic restraints, linear ramps have
been added for distances, using the specific keyword distLin. In this particular case, generally
useful in umbrella sampling free energy calculations, the syntax is:
where F is the force in kcal/mol/Å. The restraint is applied over the interval between r1 and
r2.
The harm restraint applies, onto one single atom, a harmonic potential of the form
1 1 1
V (x, y, z) = kx (x − x0 )2 + ky (y − y0 )2 + kz (z − z0 )2
2 2 2
This way, atoms may be restrained to the vicinity of a plane, an axis, or a point, depending on
the number of nonzero force constants. The syntax is:
98
6.8.5 Important recommendations when running ABF simulations
The formalism implemented in NAMD had been originally devised in the framework of uncon-
strained MD. Holonomic constraints may, however, be introduced without interfering with the
computation of the bias and, hence, the PMF, granted that some precautions are taken.
Either of the following strategies may be adopted:
(1) Atoms involved in the computation of Fξ do not participate in constrained degrees of freedom.
If, for instance, chemical bonds between hydrogen and heavy atoms are frozen, ξ could be
chosen as a distance between atoms that are not involved in a constraint.
In some cases, not all atoms used for defining ξ are involved in the computation of the force
component Fξ . Specifically, reference atoms abf1 in the RC types zCoord and zCoord-1atom
are not taken into account in Fξ . Therefore, constraints involving those atoms have no effect
on the ABF protocol.
(2) The definition of ξ involves atoms forming constrained bonds. In this case, the effect of
constraints on ABF can be eliminated by using a group–based RC built on atom groups
containing both “ends” of all rigid bonds involved, i.e.hydrogens together with their mother
atom.
For example, if the distance from a methane molecule to the center of mass of a water lamella
is studied with the zCoord RC by taking water oxygens as a reference (abf1) and all five atoms of
methane as the group of interest (abf2):
• Water molecules may be constrained because the reference atoms are not used to compute
the force component;
• C—H bonds in methane may be constrained as well, because the contributions of constraint
forces on the carbon and hydrogens to Fξ will cancel out.
source ~/lib/abf/abf.tcl
abf abf1 4
abf abf2 99
99
abf xiMax 32.0
abf outFile deca-alanine.dat
abf fullSamples 500
abf inFiles {}
abf distFile deca-alanine.dist
abf dSmooth 0.4
Here, the ABF is applied after 500 samples have been collected, which, in vacuum, have proven
to be sufficient to get a reasonable estimate of hFξ i.
c 2001–2006, Centre National de la Recherche Scientifique
6.9.1 Introduction
Theoretical background A method to perform alchemical free energy perturbation (FEP) [32,
4, 31, 29, 19, 14, 21, 9, 10] is available in NAMD. Within the FEP framework, the free energy
difference between two alternate states, a and b, is expressed by:
1
∆Aa→b = − ln hexp {−β [Hb (x, px ) − Ha (x, px )]}ia (8)
β
Here, β −1 ≡ kB T , where kB is the Boltzmann constant, T is the temperature. Ha (x, px ) and
Hb (x, px ) are the Hamiltonians characteristic of states a and b, respectively. h· · ·ia denotes an
ensemble average over configurations representative of the initial, reference state, a.
Convergence of equation (8) implies that low–energy configurations of the target state, b, are
also configurations of the reference state, a, thus resulting in an appropriate overlap of the corre-
sponding ensembles — see Figure 5. In practice, transformation between the two thermodynamic
states is replaced by a series of transformations between non–physical, intermediate states along a
well–delineated pathway that connects a to b. This pathway is characterized by a general extent
parameter, often referred to as “coupling parameter” [4, 21, 17, 18], λ, that makes the Hamiltonian
and, hence, the free energy, a continuous function of this parameter between a and b:
N
1 X
∆Aa→b =− ln hexp {−β [H(x, px ; λi+1 ) − H(x, px ; λi )]}ii (9)
β i=1
Here, N stands for the number of intermediate stages, or “windows” between the initial and
the final states — see Figure 5.
100
a a
a
i
px
px
px
b
b b
Figure 5: Convergence of an FEP calculation. If the ensembles representative of states a and b are
too disparate, equation (8) will not converge (a). If, in sharp contrast, the configurations of state b
form a subset of the ensemble of configurations characteristic of state a, the simulation is expected
to converge (b). The difficulties reflected in case (a) may be alleviated by the introduction of
mutually overlapping intermediate states that connect a to b (c). It should be mentioned that in
practice, the kinetic contribution, T (px ), is assumed to be identical for state a and state b.
The dual–topology paradigm In a typical FEP setup involving the transformation of one
chemical species into an alternate one in the course of the simulation, the atoms in the molecular
topology can be classified into three groups, (i) a group of atoms that do not change during the
simulation — e.g.the environment, (ii) the atoms describing the reference state, a, of the system, and
(iii) the atoms that correspond to the target state, b, at the end of the alchemical transformation.
The atoms representative of state a should never interact with those of state b throughout the MD
simulation. Such a setup, in which atoms of both the initial and the final states of the system are
present in the molecular topology file — i.e.the psf file — is characteristic of the so–called “dual
topology” paradigm [13, 23, 2]. The hybrid Hamiltonian of the system, which is a function of the
general extent parameter, λ, that connects smoothly state a to state b, is calculated as a linear
combination of the corresponding Hamiltonians:
101
H N H H H N H H
Cα C H Cα
H H
C C
O C O C
H H
O O
H H
Figure 6: Dual topology description for an alchemical simulation. Case example of the mutation
of alanine into serine. The lighter color denotes the non–interacting, alternate state.
It is also worth noting that the free energy calculation does not alter intramolecular potentials,
e.g.bond stretch, valence angle deformation and torsions, in the course of the simulation. In cal-
culations targeted at the estimation of free energy differences between two states characterized by
distinct environments — e.g.a ligand, bound to a protein in the first simulation, and solvated in
water, in the second — as is the case for most free energy calculations that make use of a thermo-
dynamic cycle, perturbation of intramolecular terms may, by and large, be safely avoided [5].
102
• fepEquilSteps < Number of equilibration steps in a window, before data collection >
Acceptable Values: positive integer less than numSteps or run
Default Value: 0
Description: In each window fepEquilSteps steps of equilibration can be performed
before ensemble averaging is initiated. The output also contains the data gathered during
equilibration and is meant for analysis of convergence properties of the FEP calculation.
• fepCol < Column in the fepFile that carries the perturbation flag >
Acceptable Values: X, Y, Z, O or B
Default Value: B
Description: Column of the pdb file to use for retrieving the FEP status of each atom, i.e.a
flag that indicates which atom will be perturbed in the course of the simulation. A value of
-1 in the specified column indicates the atom will vanish during the FEP calculation, whereas
a value of 1 indicates that the atom will grow.
103
fep on Turn FEP functionality on.
fepfile ion.fep File containing the information about grow-
fepCol X ing/shrinking atoms described in column X.
fepOutfile ion.fepout Output file containing the free energy.
fepOutFreq 5 Frequency at which fepOutFreq is updated.
fepEquilSteps 5000 Number of equilibration steps per λ–state.
λi − λi+1
H(x, px ; λi ) − H(x, px ; λi+1 ) = [H(x, px ; λi+2 ) − H(x, px ; λi+1 )] (11)
λi+2 − λi+1
104
The free energy difference between states λi and λi+1 may then be expressed as:
β
exp − [H(x, px ; λi+1 ) − H(x, px ; λi )]
2
exp(−β∆Ai→i+1 ) = i (12)
β
exp − [H(x, px ; λi ) − H(x, px ; λi+1 )]
2 i+1
β
exp − [H(x, px ; λi+1 ) − H(x, px ; λi )]
2 i
=
β λi − λi+1
exp − [H(x, px ; λi+2 ) − H(x, px ; λi+1 )]
2 λi+2 − λi+1 i+1
6.10.2 Simulation
In practice, LES is a simple method used to increase sampling; no special output is generated. The
following parameters are used to enable LES:
105
lesFactor < number of LES images to use >
Acceptable Values: positive integer equal to the number of images present
Description: This should be equal to the factor used in multiply when creating the
structure. The interaction potentials for images is divided by lesFactor.
106
For trajectory analysis the recommended way to use this set of options is to use the NAMD Tcl
scripting interface as described in Sec. 2.2.2 to run for 0 steps, so that NAMD prints the energy
without performing any dynamics.
• pairInteractionCol < column of PDB file containing pair interaction flags >
Acceptable Values: X, Y, Z, O, or B
Default Value: B
Description: Column of the PDB file to specify which atoms to use for pair interaction
calculations. This parameter may specify any of the floating point fields of the PDB file,
either X, Y, Z, occupancy, or beta-coupling (temperature-coupling).
NAMD supports the calculation of lateral pressure profiles as a function of the z-coordinate
in the system. The algorithm is based on that of Lindahl and Edholm (JCP 2000), with
modifications to enable Ewald sums based on Sonne et al (JCP 122, 2005).
The simulation space is partitioned into slabs, and half the virial due to the interaction
between two particles is assigned to each of the slabs containing the particles. This amounts
to employing the Harasima contour, rather than the Irving-Kirkwood contour, as was done
in NAMD 2.5. The diagonal components of the pressure tensor for each slab, averaged over
107
all timesteps since the previous output, are recorded in the NAMD output file. The units of
pressure are the same as in the regular NAMD pressure output; i.e., bar.
The total virial contains contributions from up to four components: kinetic energy, bonded in-
teractions, nonbonded interactions, and an Ewald sum. All but the Ewald sums are computed
online during a normal simulation run (this is a change from NAMD 2.5, when nonbonded
contributions to the Ewald sum were always computed offline). If the simulations are per-
formed using PME, the Ewald contribution should be estimated using a separate, offline
calculation based on the saved trajectory files. The nonbonded contribution using a cutoff
different from the one used in the simulation may also be computed offline in the same fashion
as for Ewald, if desired.
Pressure profile calculations may be performed in either constant volume or constant pressure
conditions. If constant pressure is enabled, the slabs thickness will be rescaled along with
the unit cell; the dcdUnitCell option will also be switched on so that unit cell information is
stored in the trajectory file.
NAMD 2.6 now reports the lateral pressure partitioned by interaction type. Three groups are
reported: kinetic + rigid bond restraints (referred to as “internal”, bonded, and nonbonded.
If Ewald pressure profile calculations are active, the Ewald contribution is reported in the
nonbonded section, and no other contributions are reported.
NAMD 2.6 also permits the pressure profile to be partitioned by atom type. Up to 15
atom groups may be assigned, and individual contribution of each group (for the “internal”
pressures) and the pairwise contributions of interactions within and between groups (for the
nonbonded and bonded pressures) are reported in the output file.
108
• pressureProfileEwald < Enable pressure profile Ewald sums >
Acceptable Values: on or off
Default Value: off
Description: When enabled, only the Ewald contribution to the pressure profile will be
computed. For trajectory analysis the recommended way to use this option is to use the
NAMD Tcl scripting interface as described in Sec. 2.2.2 to run for 0 steps, so that NAMD
prints the pressure profile without performing any dynamics.
The Ewald sum method is as described in Sonne et al. (JCP 122, 2005). The number of k
vectors to use along each periodic cell dimension is specified by the pressureProfileEwaldn
parameters described below.
• pressureProfileEwaldX < Ewald grid size along X >
Acceptable Values: Positive integer
Default Value: 10
Description:
• pressureProfileEwaldY < Ewald grid size along Y >
Acceptable Values: Positive integer
Default Value: 10
Description:
• pressureProfileEwaldZ < Ewald grid size along Z >
Acceptable Values: Positive integer
Default Value: 10
Description:
• pressureProfileAtomTypes < Number of atom type partitions >
Acceptable Values: Positive integer
Default Value: 1
Description: If pressureProfileAtomTypes is greater than 1, NAMD will calculate the
separate contributions of each type of atom to the internal, bonded, nonbonded, and total
pressure. In the case of the internal contribution, there will be n pressure profile data sets
reported on each PPROFILEINTERNAL line, where n is the number of atom types. All the
partial pressures for atom type 1 will be followed by those for atom type 2, and so forth.
The other three pressure profile reports will contain n(n + 1)/2 data sets. For example, if
there are n = 3 atom types, the six data sets arising from the three inter-partition and the
three intra-partition interactions will be reported in the following order: 1–1, 1–2, 1–3, 2–2,
2–3, 3–3. The total pressure profile, reported on the PRESSUREPROFILE line, will contain the
internal contributions in the data sets corresponding to 1–1, 2–2, etc.
• pressureProfileAtomTypesFile < Atom type partition assignments >
Acceptable Values: PDB file
Default Value: coordinate file
Description: If pressureProfileAtomTypes is greater than 1, NAMD will assign atoms
to types based on the corresponding value in pressureProfileAtomTypesCol. The type for
each atom must be strictly less than pressureProfileAtomTypes!
• pressureProfileAtomTypesCol < pressureProfileAtomTypesFile PDB column >
Acceptable Values: PDB file
109
Default Value: B
Description:
Here is an example snippet from a NAMD input that can be used to compute the Ewald
component of the pressure profile. It assumes that the coordinates were saved in the dcd file
pp03.dcd) every 500 timesteps.
Pme on
PmeGridSizeX 64
PmeGridSizeY 64
PmeGridSizeZ 64
exclude scaled1-4
1-4scaling 1.0
switching on
switchdist 9
cutoff 10
pairlistdist 11
pressureProfile on
pressureProfileSlabs 30
pressureProfileFreq 100
pressureProfileAtomTypes 6
pressureProfileAtomTypesFile atomtypes.pdb
pressureProfileEwald on
pressureProfileEwaldX 16
pressureProfileEwaldY 16
pressureProfileEwaldZ 16
set ts 0
firstTimestep $ts
110
....potenergy.dat” There is also a script to load the output into VMD and color each frame
according to target temperature. An example simulation folds a 66-atom model of a deca-alanine
helix in about 10 ns.
This implementation is designed to be modified by the user to implement exchanges of pa-
rameters other than temperature or via other temperature exchange methods. The scripts should
provide a good starting point for any simulation method requiring a number of loosely interacting
systems.
replica exchange.tcl is the master Tcl script for replica exchange simulations, it is run in
tclsh outside of NAMD and takes a replica exchange config file as an argument:
replica exchange.tcl uses code in namd replica server.tcl, a general script for driving NAMD
slaves, and spawn namd.tcl, a variety of methods for launching NAMD slaves.
show replicas.vmd is a script for loading replicas into VMD; first source the replica exchange
conf file and then this script, then repeat for each restart conf file or for example just do “vmd -e
load all.vmd”. This script will likely destroy anything else you are doing in VMD at the time,
so it is best to start with a fresh VMD. clone reps.vmd provides the clone reps commmand to
copy graphical representation from the top molecule to all other molecules.
A replica exchange config file should define the following Tcl variables:
• num runs, the number of runs before stopping (should be divisible by runs per frame ×
frames per restart).
• namd config file, the NAMD config file containing all parameters, needed for the simulation
except seed, langevin, langevinDamping, langevinTemp, outputEnergies, outputname,
dcdFreq, temperature, bincoordinates, binvelocities, or extendedSystem, which are
provided by replica exchange.tcl,
• initial pdb file, the initial coordinate pdb file for show replicas.vmd,
• fit pdb file, the coodinates that frames are fit to by show replicas.vmd (e.g., a folded
structure),
• server port, the port to connect to the replica server on, and
111
• spawn namd command, a command from spawn namd.tcl and arguments to launch NAMD
jobs.
The lib/replica/example/ directory contains all files needed to fold a 66-atom model of a
deca-alanine helix:
• alanin.params, parameters,
• alanin.psf, structure,
• restart 1.conf, config file to continue alanin folding another 10 ns, and
• load all.vmd, load all output into VMD and color by target temperature.
set num_replicas 8
set min_temp 300
set max_temp 600
set steps_per_run 1000
set num_runs 10000
set runs_per_frame 10
set frames_per_restart 10
set namd_config_file "alanin_base.namd"
set output_root "output/fold_alanin" ; # directory must exist
set psf_file "alanin.psf"
set initial_pdb_file "unfolded.pdb"
set fit_pdb_file "alanin.pdb"
set namd_bin_dir /Projects/namd2/bin/current/Linux64
set server_port 3177
set spawn_namd_command \
[list spawn_namd_ssh "cd [pwd]; [file join $namd_bin_dir namd2] +netpoll" \
[list beirut belfast] ]
112
7 Translation between NAMD and X-PLOR configuration param-
eters
NAMD was designed to provide many of the same molecular dynamics functions that X-PLOR
provides. As such, there are many similarities between the types of parameters that must be
passed to both X-PLOR and NAMD. This section describes relations between similar NAMD and
X-PLOR parameters.
113
• NAMD Parameter: switching
X-PLOR Parameter: SHIFt, VSWItch, and TRUNcation
Activating the NAMD option switching is equivalent to using the X-PLOR options SHIFt
and VSWItch. Deactivating switching is equivalent to using the X-PLOR option TRUNcation.
114
8 Sample configuration files
This section contains some simple example NAMD configuration files to serve as templates.
This file shows a simple configuration file for alanin. It performs basic dynamics with no output
files or special features.
# protocol params
numsteps 1000
# initial config
coordinates alanin.pdb
temperature 300K
seed 12345
# output params
outputname /tmp/alanin
binaryoutput no
# integrator params
timestep 1.0
115
This file is again for alanin, but shows a slightly more complicated configuration. The system
is periodic, a coordinate trajectory file and a set of restart files are produced.
# protocol params
numsteps 1000
# initial config
coordinates alanin.pdb
temperature 300K
seed 12345
# periodic cell
cellBasisVector1 33.0 0 0
cellBasisVector2 0 32.0 0
cellBasisVector3 0 0 32.5
# output params
outputname /tmp/alanin
binaryoutput no
DCDfreq 10
restartfreq 100
# integrator params
timestep 1.0
116
This file shows another simple configuration file for alanin, but this time with full electrostatics
using PME and multiple timestepping.
# protocol params
numsteps 1000
# initial config
coordinates alanin.pdb
temperature 300K
seed 12345
# periodic cell
cellBasisVector1 33.0 0 0
cellBasisVector2 0 32.0 0
cellBasisVector3 0 0 32.5
# output params
outputname /tmp/alanin
binaryoutput no
DCDfreq 10
restartfreq 100
# integrator params
timestep 1.0
fullElectFrequency 4
# full electrostatics
PME on
PMEGridSizeX 32
PMEGridSizeY 32
PMEGridSizeZ 32
117
This file demonstrates the analysis of a DCD trajectory file using NAMD. The file pair.pdb
contains the definition of pair interaction groups; NAMD will compute the interaction energy and
force between these groups for each frame in the DCD file. It is assumed that coordinate frames
were written every 1000 timesteps. See Sec. 6.11 for more about pair interaction calculations.
# initial config
coordinates alanin.pdb
temperature 0
# output params
outputname /tmp/alanin-analyze
binaryoutput no
# integrator params
timestep 1.0
118
incr ts 1000
}
coorfile close
119
9 Running NAMD
NAMD runs on a variety of serial and parallel platforms. While it is trivial to launch a serial
program, a parallel program depends on a platform-specific library such as MPI to launch copies
of itself on other nodes and to provide access to a high performance network such as Myrinet if one
is available.
For typical workstations (Windows, Linux, Mac OS X, or other Unix) with only ethernet net-
working (100 Megabit or Gigabit), NAMD uses the Charm++ native communications layer and
the program charmrun to launch namd2 processes for parallel runs (either exclusively on the local
machine with the ++local option or on other hosts as specified by a nodelist file). The namd2
binaries for these platforms can also be run directly (known as standalone mode) for single process
runs.
For workstation clusters and other massively parallel machines with special high-performance
networking, NAMD uses the system-provided MPI library (with a few exceptions) and standard
system tools such as mpirun are used to launch jobs. Since MPI libraries are very often incompatible
between versions, you will likely need to recompile NAMD and its underlying Charm++ libraries
to use these machines in parallel (the provided non-MPI binaries should still work for serial runs.)
The provided charmrun program for these platforms is only a script that attempts to translate
charmrun options into mpirun options, but due to the diversity of MPI libraries it often fails to
work.
9.1 Mac OS X Users Must Install the IBM XL C/C++ Run-Time Library
The IBM XL C/C++ compiler provides a significant performance boost to NAMD on PowerPC
G4 and G5 processors. Unfortunately, the runtime library cannot be statically linked, so you must
download it from http://ftp.software.ibm.com/aix/products/ccpp/vacpp-rte-macos/ and
install it based on the the README file in that directory. If the library is not installed, running
NAMD will product this error:
namd2 <configfile>
For multiprocessor workstations, Windows and Solaris released binaries are based on SMP
versions of Charm++ that can run multiple threads. For best performance use one thread per
processor with the +p option:
Since the SMP versions of NAMD are relatively new, there may be bugs that are only present
when running multiple threads. You may want to try running with charmrun (see below) if you
experience crashes.
120
For other multiprocessor workstations the included charmrun program is needed to run multiple
namd2 processes. The ++local option is also required to specify that only the local machine is
being used:
You may need to specify the full path to the namd2 binary.
group main
host brutus
host romeo
The “group main” line defines the default machine list. Hosts brutus and romeo are the two
machines on which to run the simulation. Note that charmrun may run on one of those machines,
or charmrun may run on a third machine. All machines used for a simulation must be of the same
type and have access to the same namd2 binary.
By default, the “rsh” command (“remsh” on HPUX) is used to start namd2 on each node
specified in the nodelist file. You can change this via the CONV RSH environment variable, i.e.,
to use ssh instead of rsh run “setenv CONV RSH ssh” or add it to your login or batch script.
You must be able to connect to each node via rsh/ssh without typing your password; this can be
accomplished via a .rhosts files in your home directory, by an /etc/hosts.equiv file installed by your
sysadmin, or by a .ssh/authorized keys file in your home directory. You should confirm that you
can run “ssh hostname pwd” (or “rsh hostname pwd”) without typing a password before running
NAMD. Contact your local sysadmin if you have difficulty setting this up. If you are unable to use
rsh or ssh, then add “setenv CONV DAEMON” to your script and run charmd (or charmd faceless,
which produces a log file) on every node.
You should now be able to try running NAMD as:
If this fails or just hangs, try adding the ++verbose option to see more details of the startup
process. You may need to specify the full path to the namd2 binary. Charmrun will start the
number of processes specified by the +p option, cycling through the hosts in the nodelist file as
many times as necessary. You may list multiprocessor machines multiple times in the nodelist file,
once for each processor.
You may specify the nodelist file with the “++nodelist” option and the group (which defaults
to “main”) with the “++nodegroup” option. If you do not use “++nodelist” charmrun will first
look for “nodelist” in your current directory and then “.nodelist” in your home directory.
Some automounters use a temporary mount directory which is prepended to the path returned
by the pwd command. To run on multiple machines you must add a “++pathfix” option to your
nodelist file. For example:
121
group main ++pathfix /tmp\_mnt /
host alpha1
host alpha2
There are many other options to charmrun and for the nodelist file. These are documented at
in the Charm++ Installation and Usage Manual available at http://charm.cs.uiuc.edu/manuals/
and a list of available charmrun options is available by running charmrun without arguments.
If your workstation cluster is controlled by a queueing system you will need build a nodelist
file in your job script. For example, if your queueing system provides a HOST FILE environment
variable:
Note that NUMPROCS is twice the number of nodes in this example. This is the case for
dual-processor machines. For single-processor machines you would not multiply $#NODES by
two.
Note that these example scripts and the setenv command are for the csh or tcsh shells. They
must be translated to work with sh or bash.
For best performance, run a single NAMD job on all available nodes and never run multiple
NAMD jobs at the same time. You should probably determine the number of processors via a
script, for example on Scyld:
122
You may safely suspend and resume a running NAMD job on these clusters using kill -STOP and
kill -CONT on the process group. Queueing systems typically provide this functionality, allowing
you to suspend a running job to allow a higher priority job to run immediately.
If you want to run multiple NAMD jobs simultaneously on the same cluster you can use the
charmrun options ++startpe and ++endpe to specify the range of nodes to use. The master node
(-1) is always included unless the ++skipmaster option is given. The requested number of processes
are assigned to nodes round-robin as with other network versions, or the ++ppn option can be
used to specify the number of processes per node. To limit the master node to one process use the
++singlemaster option.
For better performance on larger numbers of processors we recommend that you use the MPI
version of NAMD. To run this version, you must have MPI installed. Furthermore, you must set
two environment variables to tell MPI how to allocate certain internal buffers. Put the following
commands in your .cshrc or .profile file, or in your job file if you are running under a queuing
system:
123
setenv MPI_REQUEST_MAX 10240
setenv MPI_TYPE_MAX 10240
124
Charm++. The new NPTL pthreads library in RedHat 9 fixes these problems so an SMP port can
become the standard shipping binary version in the future.
On some large machines with very high bandwidth interconnects you may be able to in-
crease performance for PME simulations by adding either “+strategy USE MESH” or “+strategy
USE GRID” to the command line. These flags instruct the Charm++ communication optimization
library to reduce the number of messages sent during PME 3D FFT by combining data into larger
messages to be transmitted along each dimension of either a 2D mesh or a 3D grid, respectively.
While reducing the number of messages sent per processor from N to 2*sqrt(N) or 3*cbrt(N), the
total amount of data transmitted for the FFT is doubled or tripled.
Extremely short cycle lengths (less than 10 steps) will also limit parallel scaling, since the atom
migration at the end of each cycle sends many more messages than a normal force evaluation.
Increasing pairlistdist from, e.g., cutoff + 1.5 to cutoff + 2.5, while also doubling stepspercycle
from 10 to 20, may increase parallel scaling, but it is important to measure. When increasing
stepspercycle, also try increasing pairlistspercycle by the same proportion.
NAMD should scale very well when the number of patches (multiply the dimensions of the
patch grid) is larger or rougly the same as the number of processors. If this is not the case, it may
be possible to improve scaling by adding “twoAwayX yes” to the config file, which roughly doubles
the number of patches. (Similar options twoAwayY and twoAwayZ also exist, and may be used in
combination, but this greatly increases the number of compute objects. twoAwayX has the unique
advantage of also improving the scalability of PME.)
125
10 NAMD Availability and Installation
NAMD is distributed freely for non-profit use. NAMD 2.6 is based on the Charm++ messaging
system and the Converse communication layer (http://charm.cs.uiuc.edu/) which have been
ported to a wide variety of parallel platforms. This section describes how to obtain and install
NAMD 2.6.
10.4 Documentation
All available NAMD documentation is available for download without registration via the NAMD
web site http://www.ks.uiuc.edu/Research/namd/.
126
References
[1] M. P. Allen and D. J. Tildesley. Computer Simulation of Liquids. Oxford University Press,
New York, 1987.
[2] P. H. Axelsen and D. Li. Improved convergence in dual–topology free energy calculations
through use of harmonic restraints. J. Comput. Chem., 19:1278–1283, 1998.
[4] D. L. Beveridge and F. M. DiCapua. Free energy via molecular simulation: Applications to
chemical and biomolecular systems. Annu. Rev. Biophys. Biophys., 18:431–492, 1989.
[5] S. Boresch and M. Karplus. The role of bonded terms in free energy simulations: I. theoretical
analysis. J. Phys. Chem. A, 103:103–118, 1999.
[7] A. T. Brünger. X-PLOR, Version 3.1, A System for X-ray Crystallography and NMR. The
Howard Hughes Medical Institute and Department of Molecular Biophysics and Biochemistry,
Yale University, 1992.
[8] D. Chandler. Introduction to modern statistical mechanics. Oxford University Press, 1987.
[9] C. Chipot and D. A. Pearlman. Free energy calculations. the long and winding gilded road.
Mol. Sim., 28:1–12, 2002.
[10] C. Chipot and A. Pohorille, editors. Free energy calculations. Theory and applications in
chemistry and biology. Springer Verlag, 2007.
[11] E. Darve and A. Pohorille. Calculating free energies using average force. J. Chem. Phys.,
115:9169–9183, 2001.
[12] W. K. den Otter and W. J. Briels. Free energy from molecular dynamics with multiple con-
straints. Mol. Phys., 98:773–781, 2000.
[13] J. Gao, K. Kuczera, B. Tidor, and M. Karplus. Hidden thermodynamics of mutant proteins:
A molecular dynamics analysis. Science, 244:1069–1072, 1989.
[15] J. Hénin and C. Chipot. Overcoming free energy barriers using unconstrained molecular
dynamics simulations. J. Chem. Phys., 121:2904–2914, 2004.
[16] W. Humphrey and A. Dalke. VMD user guide (Version 0.94). Beckman Institute Technical
Report TB-94-07, University of Illinois, 1994.
127
[17] P. M. King. Free energy via molecular simulation: A primer. In W. F. Van Gunsteren,
P. K. Weiner, and A. J. Wilkinson, editors, Computer simulation of biomolecular systems:
Theoretical and experimental applications, volume 2, pages 267–314. ESCOM, Leiden, 1993.
[18] J. G. Kirkwood. Statistical mechanics of fluid mixtures. J. Chem. Phys., 3:300–313, 1935.
[19] P. A. Kollman. Free energy calculations: Applications to chemical and biochemical phenomena.
Chem. Rev., 93:2395–2417, 1993.
[20] N. Lu, D. A. Kofke, and T. B. Woolf. Improving the efficiency and reliability of free energy
perturbation calculations using overlap sampling methods. J. Comput. Chem., 25:28–39, 2004.
[21] A. E. Mark. Free energy perturbation calculations. In P. v. R. Schleyer, N. L. Allinger, T. Clark,
J. Gasteiger, P. A. Kollman, H. F. Schaefer III, and P. R. Schreiner, editors, Encyclopedia of
computational chemistry, volume 2, pages 1070–1083. Wiley and Sons, Chichester, 1998.
[22] J. A. McCammon and S. C. Harvey. Dynamics of Proteins and Nucleic Acids. Cambridge
University Press, Cambridge, 1987.
[23] D. A. Pearlman. A comparison of alternative approaches to free energy calculations. J. Phys.
Chem., 98:1487–1493, 1994.
[24] D. Rodriguez-Gomez, E. Darve, and A. Pohorille. Assessing the efficiency of free energy
calculation methods. J. Chem. Phys., 120:3563–3578, 2004.
[25] A. Roitberg and R. Elber. Modeling side chains in peptides and proteins: Application of the
locally enhanced sampling technique and the simulated annealing methods to find minimum
energy conformations. 95:9277–9287, 1991.
[26] C. Simmerling, T. Fox, and P. A. Kollman. Use of locally enhanced sampling in free energy
calculations: Testing and application to the α → β anomerization of glucose. 120(23):5771–
5782, 1998.
[27] C. Simmerling, M. R. Lee, A. R. Ortiz, A. Kolinski, J. Skolnick, and P. A. Kollman. Com-
bining MONSSTER and LES/PME to predict protein structure from amino acid sequence:
Application to the small protein CMTI-1. 122(35):8392–8402, 2000.
[28] M. Sprik and G. Cicotti. Free energy from constrained molecular dynamics. J. Chem. Phys.,
109:7737–7744, 1998.
[29] T. P. Straatsma and J. A. McCammon. Computational alchemy. Annu. Rev. Phys. Chem.,
43:407–435, 1992.
[30] G. M. Torrie and J. P. Valleau. Nonphysical sampling distributions in monte carlo free energy
estimation: Umbrella sampling. J. Comput. Phys., 23:187–199, 1977.
[31] W. F. van Gunsteren. Methods for calculation of free energies and binding constants: Successes
and problems. In W. F. Van Gunsteren and P. K. Weiner, editors, Computer simulation of
biomolecular systems: Theoretical and experimental applications, pages 27–59. Escom, The
Netherlands, 1989.
[32] R. W. Zwanzig. High–temperature equation of state by a perturbation method. i. nonpolar
gases. J. Chem. Phys., 22:1420–1426, 1954.
128
Index
1-4scaling parameter, 49 cutoff parameter, 45
cwd parameter, 21
abf command, 94 cylindricalBC parameter, 63
alias psfgen command, 35, 39 cylindricalBCAxis parameter, 63
amber parameter, 24 cylindricalBCCenter parameter, 63
ambercoor parameter, 24 cylindricalBCexp1 parameter, 63
applyBias parameter, 97 cylindricalBCexp2 parameter, 64
Atoms moving too fast, 44 cylindricalBCk1 parameter, 63
auto psfgen command, 36 cylindricalBCk2 parameter, 64
cylindricalBCl1 parameter, 63
Bad global exclusion count, 44
cylindricalBCl2 parameter, 63
BerendsenPressure parameter, 66
cylindricalBCr1 parameter, 63
BerendsenPressureCompressibility parameter,
cylindricalBCr2 parameter, 63
67
BerendsenPressureFreq parameter, 67 DCDfile parameter, 22
BerendsenPressureRelaxationTime parameter, DCDfreq parameter, 22
67 DCDUnitCell parameter, 22
BerendsenPressureTarget parameter, 67 delatom psfgen command, 37
binaryoutput parameter, 21 dielectric parameter, 49
binaryrestart parameter, 22 distFile parameter, 97
bincoordinates parameter, 21 dSmooth parameter, 96
binvelocities parameter, 21 dxi parameter, 95
BOUNDARY energy, 23
eField parameter, 70
callback command, 16 eFieldOn parameter, 70
cellBasisVector1 parameter, 64 error message
cellBasisVector2 parameter, 64 Atoms moving too fast, 44
cellBasisVector3 parameter, 64 Bad global exclusion count, 44
cellOrigin parameter, 64 exclude parameter, 48
checkpoint command, 17 ExcludeFromPressure parameter, 69
COMmotion parameter, 48 ExcludeFromPressureCol parameter, 69
consexp parameter, 56 ExcludeFromPressureFile parameter, 69
consForceFile parameter, 70 extCoordFilename parameter, 82
consForceScaling parameter, 70 extendedSystem parameter, 64
conskcol parameter, 56 extForceFilename parameter, 82
conskfile parameter, 56 extForces parameter, 82
consref parameter, 56 extForcesCommand parameter, 82
constantForce parameter, 69
constraints parameter, 56 fep parameter, 102
constraintScaling parameter, 56 fepCol parameter, 103
coord psfgen command, 39 fepEquilSteps parameter, 103
coordinate parameter, 94 fepFile parameter, 103
coordinates parameter, 20 fepOutFile parameter, 103
coordpdb psfgen command, 39 fepOutFreq parameter, 103
coorfile command, 17 FFTWEstimate parameter, 53
129
FFTWUseWisdom parameter, 53 LangevinPistonPeriod parameter, 68
FFTWWisdomFile parameter, 53 LangevinPistonTarget parameter, 68
first psfgen command, 36 LangevinPistonTemp parameter, 68
firsttimestep parameter, 45 langevinTemp parameter, 59
fixedAtoms parameter, 57 last psfgen command, 36
fixedAtomsCol parameter, 58 les parameter, 105
fixedAtomsFile parameter, 57 lesCol parameter, 106
fixedAtomsForces parameter, 57 lesFactor parameter, 106
FMA parameter, 51 lesFile parameter, 106
FMAFFT parameter, 51 lesReduceMass parameter, 106
FMAFFTBlock parameter, 51 lesReduceTemp parameter, 106
FMALevels parameter, 51 limitdist parameter, 46
FMAMp parameter, 51 longSplitting parameter, 54
FMAtheta parameter, 51
fMax parameter, 97 margin parameter, 47
forceConst parameter, 95 margin violations, 43
freeEnergy parameter, 83 maximumMove parameter, 59
freeEnergyConfig parameter, 83 measure command, 17
FullDirect parameter, 53 mergeCrossterms parameter, 23
fullElectFrequency parameter, 54 minBabyStep parameter, 58
fullSamples parameter, 96 minimization parameter, 58
minimize command, 16
GPRESSAVG, 23 minLineGoal parameter, 58
GPRESSURE, 23 minTinyStep parameter, 58
grocoorfile parameter, 27 MISC energy, 23
gromacs parameter, 26 molly parameter, 55
grotopfile parameter, 27 mollyIterations parameter, 55
guesscoord psfgen command, 39 mollyTolerance parameter, 55
moveBoundary parameter, 97
hgroupCutoff (Å) parameter, 47 movingConstraints parameter, 71
historyFile parameter, 96 movingConsVel parameter, 71
MTSAlgorithm parameter, 54
IMDfreq parameter, 75
multiply psfgen command, 37
IMDignore parameter, 75
mutate psfgen command, 37
IMDon parameter, 75
IMDport parameter, 75 nonbondedFreq parameter, 54
IMDwait parameter, 75 nonbondedScaling parameter, 49
inFiles parameter, 96 numsteps parameter, 45
130
outputTiming parameter, 24 psfcontext stats psfgen command, 38
131
sphericalBCexp1 parameter, 62 useSettle parameter, 50
sphericalBCexp2 parameter, 62 usMode parameter, 97
sphericalBCk1 parameter, 62
sphericalBCk2 parameter, 62 vdwGeometricSigma parameter, 49
sphericalBCr1 parameter, 62 velDCDfile parameter, 22
sphericalBCr2 parameter, 62 velDCDfreq parameter, 23
splitPatch parameter, 46 velocities parameter, 20
stepspercycle parameter, 45 velocityQuenching parameter, 58
StrainRate parameter, 69
wrapAll parameter, 65
structure parameter, 20
wrapNearest parameter, 65
SurfaceTensionTarget parameter, 69
wrapWater parameter, 65
switchdist parameter, 46
writepdb psfgen command, 40
switching parameter, 46
writepsf psfgen command, 39
tclBC parameter, 79 writeXiFreq parameter, 97
tclBCArgs parameter, 79
xiMax parameter, 95
tclBCScript parameter, 79
xiMin parameter, 95
tclForces parameter, 76
XSTfile parameter, 64
tclForcesScript parameter, 76
XSTfreq parameter, 65
tCouple parameter, 60
tCoupleCol parameter, 60 zeroMomentum parameter, 49
tCoupleFile parameter, 60
tCoupleTemp parameter, 60
TEMPAVG, 23
temperature parameter, 48
timestep parameter, 45
TMD parameter, 72
TMDFile parameter, 73
TMDFinalRMSD parameter, 73
TMDFirstStep parameter, 73
TMDInitialRMSD parameter, 73
TMDk parameter, 72
TMDLastStep parameter, 73
TMDOutputFreq parameter, 73
topology psfgen command, 35
TOTAL2 energy, 23
TOTAL3 energy, 23
twoAwayX, 125
twoAwayY, 125
twoAwayZ, 125
132