| CHARMm Principles |

This chapter describes the CHARMm energy function and energy minimization algorithms that can be used to refine structures or locate stationary points for conformational searching for dynamics simulations.
This chapter explains Script examples are included throughout the chapter.

The total energy is expressed by the following equation:
In order to perform all of these functions, you are afforded a great deal of flexibility in using the empirical energy function. Indeed, almost everything can be customized, from parameters and the specification of individual energy terms to user-supplied energy routines.
The first two terms account for bond length and bond angle deformations. Harmonic approximation used for bond stretching and angle bending terms is valid at ordinary temperatures and in the absence of chemical reaction. The dihedral angle (torsion) energy term is a four-atom potential based on the dihedral angle about an axis defined by the middle pair of atoms.
The improper torsional potential is designed to maintain chirality about a tetrahedral extended heavy atom, such as an amino acid alpha carbon without an explicit hydrogen, and to maintain planarity about sp2 hybridized atoms, such as carbonyl carbons with a quadratic distortion potential. Without such a term, out-of-plane potentials tend to be quartic. Additionally, this term provides a better force field near the minimum energy geometry, a consideration that is important for dynamics calculations and vibrational analysis.
For distance-dependent, shifted groups and extended modifications of this equation, see Brooks et al. (1983).
For a detailed explanation of this equation, see Brooks et al. (1983).
Nonbonded energy terms
Electrostatic and van der Waals interactions together are called nonbonded interactions.
.
The van der Waals energy is approximated in the CHARMm empirical energy function by the Lennard-Jones potential energy function. This function is often referred to as a 6-12 potential because the attractive force is proportional to R-6, while the repulsive force is modeled by R-12.
External terms are defined by nonbonded and hydrogen-bonded lists specified by the user. Nonbonded interactions refer to van der Waals terms and electrostatic interactions between atom pairs.
The nonbonded list is primarily generated with the UPDATE command, although it can be generated or modified by providing nonbond-list specifications with other commands that include the following:
Updating nonbonded lists
For a typical macromolecule, nonbonded interactions represent the bulk of the energy evaluation time. The efficiency of the nonbonded calculation is increased by including only atom pairs that are closer than the cutoff distance in a nonbonded list. The cutoff distance criterion, while computationally efficient, has some disadvantages. The possibility always exists that the overall nonbonded interactions at long range are not negligible because such interactions are very numerous. However, the slope of the van der Waals and electrostatic potentials in this region is very small. Because the nonbonded interaction vanishes at a greater rate than the total energy, the cutoff makes very little difference for most calculations.
Dielectric constant
The dielectric constant is an experimentally derived property of the bulk solvent that reflects the polarizability of the solvent molecules. A polarizable solvent such as water has a greater dielectric constant than less polar liquids. Electrostatic interactions in such high dielectric polarizable solvents are greatly attenuated.
Hydrogen bonds
The generation of hydrogen bonds is one of the major steps in evaluating the energy of a system. The process of hydrogen bond generation involves looking at all possible pairs of hydrogen bond donors and acceptors and selecting those that are good. The meaning of good is determined by the parameters described below. The generation routine is also responsible for constructing positions for all uncoordinated hydrogens and adding them to the coordinate list.
However, certain choices for the hydrogen boned selection process will never conserve energy in a dynamics run. This is true, for example, if you use the extended-atom representation for your calculations.
The function used in CHARMm to calculate the hydrogen bond energy is:

Note that hydrogen bond energy is not included as a default energy term. The current CHARMm parameter set has been derived in such a way that hydrogen bond effects are described by the combination of electrostatic and van der Waals forces.
*...
* Copyright (c) 1994
* Molecular Simulations Inc.
* All Rights Reserved
*
! Open and read an all hydrogen amino acid topology file
OPEN READ UNIT 11 FILE NAME "$CHM_DATA/AMINOH.BIN"
READ RTF UNIT 11 FILE
CLOSE UNIT 11
! Open and read the parameter file
OPEN READ UNIT 12 FILE NAME "$CHM_DATA/PARM.BIN"
READ PARA UNIT 12 FILE
! Read the enkephalin sequence
READ SEQUENCE CARD
* Pentapeptide sequence for met-enkephalin
*
TYR GLY GLY PHE MET
! Generate the PSF with a segment identifier of ENKP.
GENERATE ENKP SETUP
! Construct initial Cartesian coordinates
IC PARAMETERS
IC SEED 1 N 1 CA 1 C
! Copy coordinates to comparison set
COOR COPY COMP
! Update nonbonded lists
UPDATE RDIE SHIFT VSHIFT
! Get energy using standard routines
FAST 0
ENERGY
ENERGY COMP
GETE PRINT
FAST 1
! Get energy using optimized routines
ENERGY
! Get nonbonded energy only
SKIPE ALL EXCL VDW ELEC
ENERGY
! Restore default energy terms
SKIPE EXCL ALL
ENERGY
STOP

CHARMm has five different minimization methods, all working in Cartesian space, that provide a flexible array of iterative methods to facilitate energy minimization. Although the resulting conformation may only represent a local minimum, even macromolecules can be energy minimized efficiently using a number of these techniques.
All of the minimization methods take a molecular structure to a local minimum in the potential energy surface. There is no guarantee that this will be a global minimum. Small molecular systems can be minimized to a global minimum, but multiple runs from different starting points should be done to confirm that a global minimum has indeed been found.
With macromolecules, a very low probability exists that a local minimum will be the global minimum. In fact, a global minimum may never be found because of the complexity of the potential energy surface.
Using minimization
Minimization used as part of a programmed conformational search can yield many unique minima that can be useful in understanding large parts of the molecule's conformational space.
Minimization methods
Each of the minimization methods available in CHARMm, together with implementation considerations is listed below:
Convergence criteria
As minimization is proceeding, CHARMm computes the values of several terms that can be monitored for energy convergence. These are:
Note that although a zero RMS gradient is a necessary condition for a minimum, it is not a satisfying condition (that is, saddle points on the potential energy surface have zero gradient but are not minima).
Minimization requirements
Because all energy minimizations involve calculating the potential energy of the system, you must have a PSF, coordinates, and a parameter file available. Hydrogen bonded and nonbonded lists must also be created prior to any energy evaluation and subsequent minimization.
Example: Minimizing enkephalin
Energy minimization is used in this example to relax the initial Cartesian coordinates of a pentapeptide generated from idealized internal coordinates.
*...
* Copyright (c) 1994
* Molecular Simulations Inc.
* All Rights Reserved
*
! Open and read the topology and parameter files (binary)
OPEN READ UNIT 11 FILE NAME "$CHM_DATA/AMINOH.BIN"
READ RTF UNIT 11 FILE
CLOSE UNIT 11
OPEN READ UNIT 12 FILE NAME "$CHM_DATA/PARM.BIN"
READ PARAMETERS UNIT 12 FILE
CLOSE UNIT 12
! Read the sequence information and generate the PSF
READ SEQUENCE CARDS
* Enkephalin sequence
*
5
TYR GLY GLY PHE MET
GENERATE ENKP SETUP
OPEN READ UNIT 08 CARD NAME ENKPINI.CRD
READ COOR CARD UNIT 08
CLOSE UNIT 08
FAST 1
UPDATE RDIE SHIFT VSHIFT CUTNB 16.0 INBFRQ 10 IHBFRQ 0
! First set of minimization
MINIMIZE CONJ NSTEP 100 NPRINT 10
! Second set of minimization
MINIMIZE ABNR NSTEP 200 NPRINT 10
! Write out the minimize coordinates
OPEN WRITE UNIT 04 CARD NAME ENKPMIN.CRD
WRITE COORDINATES CARD UNIT 04
* Minimized enkephalin coordinates
*
STOP
The following files are used or generated in this example:
*...
* Copyright (c) 1994
* Molecular Simulations Inc.
* All Rights Reserved
*...
* This CHARMm command file generates a PSF for crambin
* and performs several minimizations on the structure
* and computes the changes relative to the starting
* coordinates.
*...
*
! Open and read an all hydrogen amino acid topology file (binary)
! and parameter file
OPEN READ UNIT 11 FILE NAME "$CHM_DATA/AMINOH.BIN"
READ RTF UNIT 11 FILE
CLOSE UNIT 11
! Open and read the parameter file (binary)
OPEN READ UNIT 12 FILE NAME "$CHM_DATA/PARM.BIN"
READ PARA UNIT 12 FILE
CLOSE UNIT 12
! Read the sequence information and generate the PSF
READ SEQUENCE CARDS
* Sequence for crambin as taken from PDB file
*
46
THR THR CYS CYS PRO SER ILE VAL ALA ARG SER ASN PHE
ASN VAL CYS ARG LEU PRO GLY THR PRO GLU ALA ILE CYS
ALA THR TYR THR GLY CYS ILE ILE ILE PRO GLY ALA THR
CYS PRO GLY ASP TYR ALA ASN
! Generate the PSF with a segment identifier of 1CRN.
! and set up the internal coordinate tables.
GENERATE 1CRN SETUP
! Patch disulfide bonds in to the PSF
PATCH DISU 1CRN 3 1CRN 40 SETUP
PATCH DISU 1CRN 4 1CRN 32 SETUP
PATCH DISU 1CRN 16 1CRN 26 SETUP
! Read the PDB coordinates
OPEN READ UNIT 13 CARD NAME 1CRN.PDB
READ COORDINATES PDB UNIT 13
CLOSE UNIT 13
! Build and optimize all hydrogen positions
HBUILD
! Build any remaining coordinates
IC FILL PRESERVE
IC PARAMETERS
IC BUILD
! Setting up comparison coordinate set for future analysis
COOR COPY COMP
! Write the coordinates to disk
OPEN WRITE UNIT 13 CARD NAME CRNINI.CRD
WRITE COORDINATES CARD UNIT 13
* Crambin initial coordinates
*
UPDATE RDIE SHIFT VSHIFT
! First set of minimization
MINIMIZE SD NSTEP 100 INBFRQ -1 CUTNB 30 STEP 0.010 NPRINT 10
! Comparisons based on RMS
COOR RMS MASS
! Second set of minimization
MINIMIZE SD NSTEP 150 INBFRQ -1 CUTNB 30 STEP 0.0050 NPRINT 10
! Comparisons based on RMS
COOR RMS MASS
! Internal coordinate comparisons; select and print
! only the phi/psi internal coordinates
IC FILL
IC DIFF
IC KEEP SECO SELE ATOM * * N .OR. ATOM * * CA END
IC KEEP THIR SELE ATOM * * CA .OR. ATOM * * C END
IC DELE FOUR SELE ATOM * * O END
IC PURG
IC PRIN
! Write out crambin minimized coordinates
OPEN WRITE UNIT 04 CARD NAME CRNMIN.CRD
WRITE COORDINATES CARD UNIT 04
* Crambin coordinates after 250 steps of SD minimization
*
STOP

Fletcher, R. (ed.), Optimization, Academic Press, New York and London, 1969.
Flectcher, R. and Reeves, C. M., The Computer Journal, 7 149 (1964).
Powell, M. J. D., "Restart Procedure for the Conjugate Gradient Method," Mathematical Programming, 12 241 (1977).
Press, W. H., Flannery, B. P., Teukolshy, S. A., and Vetrrling, W. T., Numerical Recipes: The Art of Scientific Computing, University Press, Cambridge, 1987.
Gunsteren, W. F. and Karplus, M., J. Comp. Chem., 1 266 (1980).