Molecular Dynamics Simulations in Gromacs: Presented by Jan Schulze
Molecular Dynamics Simulations in Gromacs: Presented by Jan Schulze
in GROMACS
presented by
Jan Schulze
Outline
2. MD simulations in GROMACS
▪ Main steps in performing MD simulations
Δ𝐫1 Δ𝐫1
Δ𝐫2 V(r1,…,rN) Δ𝐫2 V(r1,…,rN)
t1 Δ𝐫3 t2 Δ𝐫3 t3
Δ𝐫𝑁 Δ𝐫𝑁
Periodic boundary
conditions: Avoid simulation of wall effects in bulk systems.
▪ Allow atom to “pass” the wall, but relocate it to the opposite wall.
▪ Atoms can interact through periodic walls as well.
▪ Leads to bulk-like behavior, even at the walls.
Time and
length scales: Interactions on a molecular level are very fast and
occur on a very small length scale
▪ Characteristic length scale: Nanometers
▪ Characteristic time scale: Femtoseconds (10 - 6 ns)
Number of molecules: Affects computational effort but also the quality of data
▪ Too small: High statistical influence in simulation results,
low-quality data, results loose on generality
▪ Too high: Simulation takes “forever”
1. Define molecular
structure of components
Energy minimization
simulation
minimization.tpr
oplsaa.ff/forcefield.itp MEG.itp
MEG.pdb
Energy minimization
simulation
minimization.tpr
oplsaa.ff/forcefield.itp MEG.itp
MEG.pdb
MEG.pdb
reference to file
combination of files or
Analysis information flow
Simulation
Energy minimization
simulation
minimization.tpr
oplsaa.ff/forcefield.itp MEG.itp
MEG.pdb
ffnonbonded.itp ffnonbonded.itp
Step 2 – Topology & force field Step 1 – Define molecular structure
oplsaa.ff/forcefield.itp Component_1.itp
1. Define molecular
structure of components
The OPLS force field
Set of functional forms
2. Set up force field, ▪ Implementation of OPLS functional terms (and many more) is
make topology
already done in GROMACS library
Parameters
▪ Describe how atoms interact with other atoms
▪ User has to provide parameters that match with particular system
force field file (.itp) Many parameter sets already implemented in GROMACS
that we have to create User (only) has to refer to correct parameter set for every atom
(one for every species)
This is realized as specification of an atom type for every atom
Functional forms
of OPLS force field:
1. Define molecular
structure of components Tasks in step 2
▪ State correct atom type for every atom in every molecule
2. Set up force field, ▪ Generate .itp force field file for every molecule
make topology ▪ Finally, generate .top topology for the system
Ethylene Glycol
5 opls_804 1 UNK
MEG H04 1 0.1066 1.0080
6 opls_805 1 UNK
MEG H05 1 (as well as bonds, angles or dihedrals)
0.1066 1.0080
7 opls_806 1 UNK
MEG H06 1 0.1065 1.0080
8 opls_807 1 UNK
MEG H07 1 0.1065 1.0080
9 opls_808 1 UNK
MEG H08 1 0.4097 1.0080
10 opls_809 1 UNK
MEG H09 1 0.4097 1.0080
[ bonds ]
; i j funct http://zarbi.chem.yale.edu/ligpargen/
2 1 1 0.1529 224262.400
3 2 1 0.1410 267776.000
4 1 1 0.1410 267776.000
5 1 1 0.1090 284512.000
6 1 1 0.1090 284512.000
7 2 1 0.1090 284512.000
8 2 1 0.1090 284512.000
9 3 1 0.0945 462750.400
10 4 1 0.0945 462750.400 Index sets for bonds, angles, torsion
[ angles ]
; i j k funct c0
1 2 3 1 109.500 418.400
2 1 4 1 109.500 418.400
2 1 5 1 110.700 313.800
2 1 6 1 110.700 313.800
1 2 7 1 110.700 313.800
1 2 8 1 110.700 313.800
2 3 9 1 108.500 460.240
1 4 10 1 108.500 460.240
Molecular
4 1 Dynamics
5 1Simulations
109.500 in GROMACS
292.880 MEG.itp
11.12.2017 Jan Schulze 16
5 1 6 1 107.800 276.144
Atom types
1. Define molecular
structure of components
reference to file
combination of files or
Analysis information flow
Simulation
Energy minimization
simulation
minimization.tpr
sim_settings.mdp topology.top
P minim_settings.mdp box_file.gro
reference to file
combination of files or
Analysis information flow
Simulation
Energy minimization
simulation
minimization.tpr
sim_settings.mdp topology.top
P minim_settings.mdp box_file.gro
P
oplsaa.ff/forcefield.itp
P MEG.itp
P MEG.pdb
P
ffnonbonded.itp
P ffnonbonded.itp
P
Analysis
Main Simulation
Energy minimization
simulation
Step 5 – Energy minimization
P P
sim_settings.mdp
P topology.top minim_settings.mdp
P box_file.gro
oplsaa.ff/forcefield.itp
P MEG.itp
P MEG.pdb
P
ffnonbonded.itp
P P
ffnonbonded.itp reference to file
combination of files or
information flow
Analysis
Main Simulation
GROMACS generates
main_simulation.tpr minimization.gro minimization.trr more files ...
a lot of output files
Energy minimization
simulation
minimization.tpr
P P
sim_settings.mdp
P topology.top minim_settings.mdp
P box_file.gro
oplsaa.ff/forcefield.itp
P MEG.itp
P MEG.pdb
P
ffnonbonded.itp
P P
ffnonbonded.itp reference to file
combination of files or
information flow
Subsequent
Analysis
simulation
Simulation
simulation.tpr
minimization.tpr
P P
sim_settings.mdp
P topology.top minim_settings.mdp
P box_file.gro
oplsaa.ff/forcefield.itp
P MEG.itp
P MEG.pdb
P
ffnonbonded.itp
P P
ffnonbonded.itp reference to file
combination of files or
information flow
1. Define molecular
structure of components
▪ Equations of motion for velocities and positions of the atoms are not only influenced by
interactions but also coupled with control algorithms for pressure and temperature.
> 1, if T < T0
< 1, if T > T0