Advance Thermodynamic Molecuar Dynamic Simulation: TA: Cuong Luu
Advance Thermodynamic Molecuar Dynamic Simulation: TA: Cuong Luu
Newton’s Fi mi ai
Law:
Taylor expansion:
Verlet’s Method
Steps to Run MD Simulation
Initial
Index file Force field
Configuration
Run file
Submit to
supercomputer
Example
Investigation the behavior of propane – Kerogen
mixture
Choose:
• 2514: Kerogen molecules
• 1944: Propane molecules
Propane:
• Molecule name: PRO C3
• 3 atoms/molecule
C1
C2
Kerogen
• Amorphous structure
• Structure can be found on literature
Kerogen
• Molecule name: C
• Atom name: C
How to Make Configuration File
• Configuration files contain: For example
Molecules name, atom name, atom id, coordinate
• File type “.gro”. It is actually a text file, open by, for example:
editpad software: http://www.editpadlite.com/
How to Make Configuration File (cont)
Line 1st: Name Kerogen
Line 2nd: Total atom number 8346
1C C 1 2.574 3.053 1.539
2C C 2 3.224 3.141 1.697
Mol Mol & Atom Atom X, Y, Z 3C C 3 2.218 3.672 1.667
# Name # 4C C 4 3.042 3.431 1.941
2513C C 2513 2.066 5.886 1.692
(i5, 2a5, i5, 3f8.3) 2514C C 2514 3.557 4.690 1.978
1258PRO C1 2515 0.125 0.075 2.583
1258PRO C2 2516 0.206 0.204 2.544
1258PRO C3 2517 0.331 0.164 2.466
1259PRO C1 2518 0.625 0.075 2.583
• Fortran
• Matlab
• C
Example
Force field
Molecule1.itp Molecule2.itp
Forcefield.top
Format of Bond Force Field file (.itp)
1.
PRO 3
2.
; nr type resnr resid atom cgnr charge mass
1 CH3 1 PRO C1 1 0.000
2 CH2 1 PRO C2 2 0.000
3 CH3 1 PRO C3 3 0.000
3.
1 2 1 0.153 259408
2 3 1 0.153 259408
4.
5.
1 2 3 1 111.000 520.0712
[ moleculetype ]
Force Field of Propane
; Name nrexcl
PRO 3
[ atoms ]
; nr type resnr resid atom cgnr charge mass
[ bonds ]
; ai aj fu c0, c1, ...
1 2 1 0.153 259408
2 3 1 0.153 259408
[ pairs ]
; ai aj fu c0, c1, ...
[ angles ]
; ai aj ak fu
1 2 3 1 111.000 520.0712
Force Field of Kerogen
; **Graphite**
[ moleculetype ]
; name nrexcl
C 1
[ atoms ]
; nr type resnr residu atom cgnr
charge
1 C 1 C C 1 0.00000
Non-Bond Interaction
;***************************
; Non-bonded interactions *
;***************************
[ atomtypes ]
;name at.num mass charge ptype sigma [nm] eps [kJ/mol]
C2 6 14.02700 0.000 A 0.3905 0.493712 ; CH2
C1 6 15.03500 0.000 A 0.3905 0.732200 ; CH3
C3 6 15.03500 0.000 A 0.3905 0.732200 ; CH3
C 6 12.01100 0.0000 A 0.3400 0.148992 ; Graphite / Kerogen
Forcefield (.top)
[ defaults ]
1.
; nbfunc comb-rule gen-pairs fudgeLJ fudgeQQ
4. [ molecules ]
;molecule name nr.
C 2514
PRO 1944
Forcefield (.top) (cont)
[ defaults ]
; nbfunc comb-rule gen-pairs fudgeLJ fudgeQQ
1 2 yes 1.0 1.0
#include "/scratch/cuongluu/Thermoclass/Kerogen/topology/ffpropanenb.itp"
#include "/scratch/cuongluu/Thermoclass/Kerogen/topology/propane.itp"
#include "/scratch/cuongluu/Thermoclass/Kerogen/topology/graphite.itp"
[ system ]
Kerogen
[ molecules ]
;molecule name nr.
C 2514
PRO 1944
Run Simulation
Files
Run
Equilibrium
No
Check
Yes
Production
run
Property
Run file (.mdp)
Question 1. What information should be changed
in .mdp file?
; RUN CONTROL PARAMETERS
integrator = md
; Start time and timestep in ps
tinit =0
dt = 0.001
nsteps = 3000000
cd /directory
date
date
Example
#!/bin/sh
#
#BSUB -q debug
#
#
#BSUB -n 16
#BSUB -R "span[ptile=16]"
#
#BSUB -o /scratch/cuongluu/Thermoclass/Kerogen/Output_%J.txt
#BSUB -e /scratch/cuongluu/Thermoclass/Kerogen/Errors_%J.txt
#
#BSUB -W 00:30
#
#BSUB -J "kerogen"
#
#BSUB -u [email protected]
#
cd /scratch/cuongluu/Thermoclass/Kerogen
date