3. Calculating and Minimizing Energy

This chapter covers potential energy and energy minimization calculations as they are executed in QUANTA using the CHARMm program. Read this chapter to understand basic information about CHARMm, the QUANTA-CHARMm interface, and how potential energy and energy minimization calculations are set up and completed.

For more detailed information about CHARMm, consult CHARMm Principles and the CHARMm Dictionary. For more information on forcefields and their uses, please see Forcefield-Based Simulations.

The exercises in this chapter use structures that were created in an earlier chapter. If you did not create and store the MSFs orange.msf and sodium.msf files, go through the exercises in Chapter 1 and do so. If you need to restart QUANTA, refer to the restart procedure in the Preface.


Understanding basic CHARMm operations

QUANTA uses the CHARMm program to execute many of the calculations needed for modeling. CHARMm is a general and flexible software application developed and maintained at Harvard University to model the structure and behavior of molecular systems. See the References at the end of this chapter for more information.

A variety of systems, from isolated small molecules to solvated complexes of large biological macromolecules, can be simulated using CHARMm.

CHARMm uses empirical energy functions to describe the forces on atoms in molecules. These functions, plus the parameters for the functions, constitute the CHARMm forcefield. CHARMm uses these functions to rapidly calculate conformational energies, local minima, barriers to rotation, energy surfaces, and time-dependent dynamic behavior.


The CHARMm energy functions

The CHARMm energy functions include internal coordinate terms and pairwise nonbond interaction terms. The total energy can be expressed by the equation:

Eq. 1    

The internal energy terms include:

The external (i.e., nonbond) energy terms include:

The extra energy terms include:

The hydrogen-bond function is available but is not included by default in CHARMm calculations.


CHARMm theory

The standalone CHARMm 31b1 documentation can be found on the web here:

http://www.accelrys.com/doc/life/charmm/31b1/doc/Charmm31.Html


CHARMm calculations

CHARMm uses data from these three sources to calculate energies:

The PSF identifies, by number and type, all atoms contained in the structure. Individual atomic masses and charges are included in this file. Additionally, the PSF lists all intramolecular parameters that contribute to the CHARMm energy function. These parameters include bonds, bond angles, torsion angles, and out-of-plane angles. A PSF is constructed from the data contained in an RTF and the CHARMm parameter file. For more information on PSFs and RTFs, see Chapter 1 of QUANTA Basic Operations.

The CHARMm parameter file defines force constants and reference geometries for each type of atom and interaction contained in structures. Cartesian coordinates are provided to CHARMm or are calculated by CHARMm from the standard geometry data contained in an RTF and the reference values stored in the CHARMm parameter file.


QUANTA interaction with CHARMm

QUANTA provides interactive access to CHARMm through a menu-driven graphical interface. QUANTA allows complex modeling problems to be solved by users with relatively little experience with CHARMm. In addition, QUANTA enables experienced CHARMm users to tap all of CHARMm's inherent flexibility.

Along with sending commands to CHARMm, QUANTA also sends the appropriate molecular definition and Cartesian coordinates required for the requested calculation. The molecular definition is contained in an RTF selected from the $CHM_DATA directory, created by ChemNote or the Molecular Editor, or located in a PSF constructed by QUANTA. The Cartesian coordinates are contained in an MSF.

QUANTA provides an easy mechanism to set up, run, and monitor a variety of CHARMm calculations on structures. Some of these calculations, such as energy, minimization, and dynamics calculations, are explicitly called. These functions are selected from the Modeling palette that is displayed when QUANTA is in the Molecular Modeling mode. Other calculations are started automatically by QUANTA applications such as Sequence Builder.

The CHARMm menu, opened from the menu bar, controls both CHARMm access and calculation setup. Table 17 lists the menu items and provides a brief description of each.

Table 17. CHARMm menu functions 
Selection
Description
Select CHARMm Host

Opens a pull-right menu with choices for interactive, batch, or NQS jobs. When a selection is made, the names of available CHARMm hosts are listed. The selected host is used for subsequent invocations of CHARMm. If no host is specified, QUANTA tries to run CHARMm locally.

Initialization Options

Opens a dialog box with a variety of initialization options, including the option to enter additional initialization commands.

CHARMm Process

Opens a pull-right menu that includes selections for starting, terminating, and reporting the status of interactive, batch, and NQS jobs. Does not detect the status of CHARMm jobs detached from QUANTA or started stand-alone.

Energy Terms

Allows the specification of energy terms to be included in the calculation. When possible, use all available energy terms.

Update Parameters

Allows the specification of parameters that control nonbond terms in CHARMm energy calculations.

Minimization Options

Allows the selection of a minimization technique and defines additional specifications that control the minimization calculation.

Dynamics Options

Allows the definition of specifications that control dynamic animation calculations.

Constraints Options

Opens a pull-right menu that allows the set up of constraints that cause CHARMm to fix or restrict the motion of atoms during minimization.

SHAKE Options

Allows the removal of very high-frequency vibrations from consideration in dynamics simulations.

Parameters

Opens a pull-right menu with Specify Files, Save Parameters, and Set Options Files selections. Choosing the Set Options selection opens a dialog box to select options on missing and relevant parameters and on report generation.

CHARMm Mode

Opens a pull-right menu with PSF, RTF, MMFF and MMFFS modes, PSF Terms, and RTF Options selections. The PSF Terms selection controls energy terms that are generated. The RTF Options selection controls the format of PSFs as well as the terms included in an RTF.

Get Fourth Parameter

Returns various per-atom scalar values or forces from CHARMm to MSF Extra Information so that the information is available for further display and calculation within QUANTA.

Periodic Boundaries

Allows entry of specific boundaries using shape matrix, lattice constants, or data from an MSF.

Optimize Hydrogens

Sends the HBUILD command to CHARMm for the current active structure.

Solvate Structure

Allows selection of a solvent and image model for solvation. Initiates the process.

Send CHARMm Command

Allows sending of CHARMm command(s) to CHARMm from QUANTA. Initializes CHARMm if it is not already running.

Stream CHARMm File

Allows sending a command directly to CHARMm from QUANTA. Initializes CHARMm if it is not already running.

Capture Commands

Opens a pull-right menu with On, Off, Suspends, and Restart selections. Allows CHARMm commands sent from QUANTA to be captured in a script file and used again at a later time.

Settings

Opens a pull-right menu that includes Show Setup, Save Setup, and Restore Setup. Allows viewing of any portion of the current CHARMm setup, saving the setup, or replacing the current setup file with the contents of a saved setup file.

Results from CHARMm calculations are periodically sent back to QUANTA. Some results, such as energies, are displayed in the viewing area and in the textport. If new coordinates are calculated for a structure, these coordinates are incorporated into the MSF and the structure is redisplayed in the viewing area.

You have several options for saving MSF changes that result from CHARMm calculations or other structural modifications. These options are accessed through the dialog box that is displayed when Save Changes is selected in the Modeling palette. The Modeling palette is displayed whenever QUANTA is in Molecular Modeling mode. The options for saving changes are listed and described in Table 18.

Table 18. Save Changes Options dialog box
Option
Description
Create New
Generation

Creates a new version of an MSF. This is the default action unless another default is specified within the Set MSF Savings Options selection in the Preferences menu.

Overwrite

Places the modified coordinates in the MSF by overwriting the current file. The previous conformation is lost.

Save to New Filename

Writes coordinates to a new file after a new base filename is entered in a dialog box.

Abort Saving to Disk

Retains coordinates in memory, but does not update the MSF on disk.


Generating a potential energy value

A CHARMm empirical energy calculation produces a potential energy value. A single-point energy calculation is useful in comparing conformations, computing thermodynamic properties, calculating interaction energies and forces, and evaluating structures during conformational searching. In addition to energy, CHARMm also calculates the forces on each atom in a molecular system.

When you request an energy calculation, CHARMm is automatically started from QUANTA. It remains running throughout the QUANTA session, accepting requests from QUANTA until it is explicitly stopped or the QUANTA session is ended.

Complete the following exercise to become familiar with the potential energy calculation process.

1.   Visually set up orange.msf and sodium.msf for calculations.

In the File menu, select Open to display the File Librarian dialog box.

Select sodium.msf and orange.msf from the scrolling list of MSFs then select the Replace and Open buttons. The structures are displayed in the viewing area.

Select Move Atom from the Modeling palette. Pick the sodium ion and move it near the sulfide group of the organic sulfide molecule using the Translate dials on the Dial Emulator palette.

2.   Save the coordinates for the new location of the sodium ion and display distance monitors.

Select Save Changes from the Modeling palette. In a dialog box that opens, select the option:

Create a new generation of sodium.msf

Select Distance from the Geometry palette. Show Distance Monitors is checked and highlighted in the palette by default.

Select the sodium ion and then select one of the three oxygen atoms on the organic sulfide molecule. Repeat this procedure two more times. You see a visual representation of the close ionic bonds that hold sodium and the rest of the molecule together.

Select Distance again to inactivate the selection.

3.   Calculate the CHARMm potential energy.

Select CHARMm Energy from the Modeling palette. The tool is checked and highlighted.

CHARMm automatically starts and status information indicating the progress of the CHARMm calculation is displayed on the message line.

Additional status information, similar to the information listed below, is displayed in the textport.

RJRDMAIN: server created
CHARMm changing to directory /usr/marj/accelrys_quanta
CHARMm job watsoncharmm22r2exe0 started on watson
UNIT 99 OPENED FOR READ ONLY ACCESS TO charmm.cis
INPUT STREAM SWITCHING TO UNIT 99
RDTITL> *.....
RDTITL> * CHARMM STARTUP FILE FOR QUANTA RDTITL *
CHARMM>! Redirect the CHARMM output
CHARMM> open write unit 7 Card name CHARMM.LOG line
UNIT 7 OPENED FOR WRITE ACCESS TO CHARMM.LOG
Line Buffering was set for I/O unit 7 if applicable.
CHARMM> outu 7
Using RTF as CHARMm data structure

4.   Complete the CHARMm calculation.

When the calculation is complete, the potential energy is displayed in the upper-right corner of the viewing area. CHARMm Energy is no longer checked and highlighted on the Modeling palette.

A breakdown of the energy contributions similar to the text below is displayed in the textport. Your results will depend on the calculation parameters you chose and the position of the sodium ion.

	The total CHARMm energy is: -32.8911
The individual contributions are as follows:
Bond energy : 0.7448
Angle energy : 25.7481
Dihedral energy : 11.0324
Improper energy : 7.3459
Lennard-Jones energy : 225131.1582
Electrostatic energy :-121.8766
Constraints, other : 0.0016


Performing a minimization

CHARMm minimization locates the molecular conformation with the lowest potential energy. Minimization is often used to prepare a structure for molecular dynamics.

CHARMm offers a choice of minimization techniques. With these choices, global minimum-energy conformations for small molecules or local minimum-energy conformations for larger molecular systems can be determined. You choose the best minimization technique for your structure. Table 19 lists the choices and describes each.

Table 19. Minimization techniques
Method
Description
Steepest Descents

A first-derivative method that improves a very poor conformation. Does not generally converge, but rapidly improves the conformation. The default method.

Conjugate Gradient

A first-derivative method that slowly converges to a local minimum. Suitable for molecular systems that start with reasonable conformations. Shows better convergence than steepest descents and allows larger coordinate shifts. Very poor conformations are more likely to fail than with steepest descents.

Powell Conjugate Gradient

A more efficient implementation of the conjugate gradient method. Does not provide an automatic facility to update the nonbond and hydrogen-bond interaction lists and is therefore recommended only in limited cases.

Newton-Raphson

Newton-Raphson minimization. Exhibits rapid convergence. Includes a facility for avoiding saddle points. Often requires excessive storage requirements or long computation time for large molecules. Restricted to molecular systems with 200 or fewer atoms.

Adopted Basis Newton-Raphson

Applies the Newton-Raphson algorithm to a subspace of the coordinate vector spanned by the displacement coordinates of the last positions. Similar to conjugate gradients, but results in fewer energy evaluations. Can be used to efficiently minimize very large molecular systems. No atom limitations in CHARMm.

When you run a minimization, define the minimization method and parameters first by choosing Minimization Options from the CHARMm menu in the menu bar. Table 20 lists the parameters you must define in the dialog box that is displayed when you select Minimization Options.

Table 20. Minimization Options dialog box
Parameter
Description
Number of Minimization Steps

If a tolerance is met before the maximum number of iterations, the calculation ends.

Coordinate Update Frequency

Number of minimization steps between each coordinate update from CHARMm to the QUANTA display and to the CHARMm log file.

Energy Gradient Tolerance

Tolerance applied to the energy gradient during each cycle of minimization. If the average gradient is less than the tolerance, the calculation ends.

Energy Value Tolerance

Tolerance applied to the differences between the energy values at each step during a cycle of minimization. If the energy difference is less than the tolerance, the calculation ends.

Initial Step Size

Initial step size for the minimization. For a detailed explanation, see CHARMm Principles. The default is 0.020.

Step Value Tolerance

If the step size is less than this tolerance, the calculation ends.

Run a minimization by selecting CHARMm Minimization from the Modeling palette. If CHARMm is not already running, it is automatically initialized when you select CHARMm Minimization.

The next exercise goes through the process of setting up and running a minimization calculation for the structures in orange.msf and sodium.msf.

1.   With the structures displayed in the viewing area, select the minimization technique and parameters.

Display the CHARMm menu and select Minimization Options. A dialog box allows you to select a minimization method and specify associated parameters controlling the calculation.

Select the option:

Steepest Descents

Enter the values:

Number of Minimization Steps: 50
Coordinate Update Frequency: 5
Energy Gradient Tolerance: 0.00001
Energy Value Tolerance: 0.000
Initial Step Size: 0.020
Step Value Tolerance: 0.000

Select the OK button. The minimization technique and associated parameters are defined, and the dialog box is cleared from the screen.

2.   Start the calculation.

From the Modeling palette, select CHARMm Minimization. CHARMm automatically starts the minimization calculation, using the specified minimization technique and parameters.

Status information is printed in the message line indicating the progress of the CHARMm calculation. Additional status information is displayed in the Textport. Undo Changes, Save Changes, and Reject Changes are activated in the Modeling palette.

As the calculation proceeds, the coordinates representing a new conformation of the displayed structure are periodically sent back to QUANTA. The points at which these coordinates are sent to QUANTA is controlled by the Coordinate Update Frequency option in the Minimization Setup dialog box.

The structure is redisplayed with the new coordinates. In addition, the energy value calculated from these new coordinates is displayed in the upper right corner of the viewing area. The textport displays a minimization log similar to.

Minimization method: Steepest Descents Total steps = 50
At step number 5 energy = -19.5813; rms force = 7.349291
At step number 15 energy = -22.4063; rms force = 7.018281
At step number 20 energy = -23.1046; rms force = 6.854839
At step number 25 energy = -24.0076; rms force = 2.107744
At step number 30 energy = -24.2339; rms force = 7.462957
At step number 35 energy = -25.1297; rms force = 2.279270
At step number 40 energy = -25.5521; rms force = 1.715047
At step number 45 energy = -26.0209; rms force = 3.248627
At step number 50 energy = -26.4346; rms force = 2.168422

When the calculation is finished, the final conformation of the structure is displayed in the viewing area. The final energy is displayed in the viewing area and in the textport.


Performing repeated minimizations

If the requested Energy Gradient Tolerance or Energy Value Tolerance is not met before reaching the maximum number of minimization steps defined in the Minimization Setup dialog box, minimization calculations can be repeated. A repeat minimization calculation can use the same minimization method and parameters or a new method and new parameters.

Complete the following exercise to continue the minimization process for the structures in orange.msf and sodium.msf.

1.   Select a new minimization technique.

Display the CHARMm menu and select Minimization Options. A dialog box allows you to select a minimization method and to specify associated parameters controlling the calculation.

Select the option:

Adopted-Basis Newton Raphson

Enter the values:

Number of Minimization Steps: 50
Coordinate Update Frequency: 5
Energy Gradient Tolerance: 0.0000
Energy Value Tolerance: 0.0001
Initial Step Size: 0.020
Step Value Tolerance: 0.000

Select the OK button. The minimization technique and associated parameters are defined, and the dialog box is cleared from the screen.

2.   Start the second calculation.

From the Modeling palette, select CHARMm Minimization. CHARMm automatically starts the minimization calculation, using the specified minimization technique and parameters.

Status information is printed in the message line and textport.

As the calculation proceeds, the coordinates representing a new molecular conformation of the displayed structure are periodically sent back to QUANTA.

When the calculation is complete, the structure is redisplayed with new coordinates. In addition, the energy value calculated from these new coordinates is displayed in the upper right corner of the viewing area and in the textport.


Saving or rejecting calculation results

When a minimization calculation has produced an appropriate structure, the new coordinates of the minimized structure can be saved in an MSF by selecting Save Changes in the Modeling palette.

If you do not want to save minimized coordinates, select Reject Changes in the Modeling palette. When Reject Changes is selected, the minimized structure is replaced by the structure that was last saved to disk. All coordinate changes, whether made by the minimization calculation or by any other calculation, such as Move Fragment, are lost.

The following exercise goes through the process of saving the structures in orange.msf and sodium.msf.

1.   Save minimization results.

From the Modeling palette, select Save Changes.

A dialog box allows you to reject or save current changes for the file sodium.msf.

Select the option:

Save as a new generation of sodium.msf

Click Save to save the minimization results.

In the dialog box that opens for the orange structure, select the option:

Save as a new generation of orange.msf

Click Save to save the minimization results.

2.   Rename and save the structures as a single MSF.

Display the File menu and select Save As. In the Write Options dialog box, select the following write options:

Write out current connectivity
Write out current bondtypes
Use the new MSF now

Select the OK button. In a File Librarian dialog box, enter the name orangeII and click Save. The new file orangeII.msf is displayed in the Molecule Management Table and the textport reads:

35 atoms selected for molecular structure orangeII.msf 35 atoms will be displayed


The Merck Molecular Force Field

The Merck Molecular Force Field (MMFF), developed by Halgren at the Merck Research laboratories, is designed for use with a large variety of chemical systems. Its pivotal application is the study of receptor-ligand interactions involving proteins or nucleic acids as receptors and a wide range of chemical structures as ligands. The forcefield can describe ligand and receptor in isolation as well as bound.

MMFF is a computationally derived energy expression that can accurately be applied to condensed-phase and aqueous processes. It uses a unique functional form for describing van der Waals interactions and employs novel combination rules that systematically correlate van der Waals parameters with those that describe experimentally characterized interactions involving rare-gas atoms. The MMFF energy expression is:

Eq. 2    

where:

EBij bond stretching

EAijk angle bending

EBAijk stretch-bend interactions

EOOPijk;l out-of-plane bending at tri-coordinate centers

ETijkl torsion interactions

Evdwij van der Waals interactions

EQij electrostatic interactions

Constituent terms of the energy expression are calculated in kcal/mol. They are described in detail elsewhere.2,3

To allow straightforward application to condensed-phase simulations employing explicit solvent molecules, MMFF uses a dielectric constant in its electrostatic interaction terms.

1.   Select CHARMm mode from the CHARMm menu.

2.   Select MMFF from the CHARMm mode pull-right menu. A textport message reads:

The task is now complete.


Summary

This chapter describes the basis and procedures for running potential energy and energy minimization calculations. These calculations are executed in QUANTA using the CHARMm program created and maintained by Harvard University.

QUANTA provides interactive access to CHARMm through a menu-driven graphical interface. When you request an energy calculation in QUANTA, CHARMm is automatically started and remains running until it is explicitly stopped or the QUANTA session is ended.

Energy functions plus parameters for the functions constitute the CHARMm forcefield. Much of QUANTA's modeling analysis is based on the CHARMm forcefield.

CHARMm uses data from three sources to calculate energies: a principle structure file (PSF), CHARMm parameters, and Cartesian coordinates for all atoms. A CHARMm empirical energy calculation produces a single potential energy value.

Sequential potential energies and their rate of change are the basis of energy minimization. CHARMm minimization locates the molecular conformation with the lowest potential energy. You may select one or any combination of five methods used in CHARMm for a minimization calculation. The results of a calculation may be accepted and saved or rejected


References

1.   B. R. Brooks, R. E. Bruccoleri, B. D. Olafason, D. J. States, S. Swaminathan, M. Karplus "CHARMm: A program for macromolecular energy, minimization, and dynamics calculations", J. Comp. Chem. 4 187-217.

2.   Halgren, T. A., J. Amer. Chem. Soc. 114 7827-7843 (1992).

3.   Halgren, T. A., The Merck Molecular Force Field, privately published paper available from Accelrys.

4.   Forcefield-Based Simulations, Accelrys, San Diego.


© 2006 Accelrys Software Inc.