Lecture 9 PPT
๐งฌ Molecular Dynamics (MD) Simulations โ Complete Educational Summary
๐ Source:
โญ What is Molecular Dynamics (MD)?
๐ก Core idea
Molecular Dynamics is a computer simulation method used to mimic how atoms move in real life.
The main concept:
- Atoms interact via a potential energy function
- From this energy โ we can calculate forces
- Using Newtonโs laws, we compute how atoms move over time
๐ In simple terms: MD = solving physics equations to create a โmovieโ of atomic motion.
This makes MD a kind of computational microscope, because:
- We cannot experimentally observe the motion of every atom in a protein over time
- MD allows us to visualize this at femtosecond resolution
โฑ๏ธ Basic MD Algorithm
Time is divided into very small steps:
- Typical time step: 1โ2 femtoseconds (10โปยนโต s)
At each step:
- Calculate forces on every atom using a force field
- Update:
- Position
- Velocity
Then repeat millions to trillions of times.
๐ฌ Applications of MD
MD is extremely powerful and widely used.
๐ Drug binding and allostery
MD can help determine:
- Where a drug binds
- How binding changes protein structure
- How binding at one site affects another site (allosteric effects)
This helps design better drugs.
โ๏ธ Understanding protein mechanisms
MD can simulate:
- Transition between active โ inactive states
- Signal propagation through receptors
- Structural coupling between domains
This helps understand how proteins work dynamically, not just statically.
๐งฉ Protein folding
MD can study:
- How unfolded proteins find their native folded structure
- Folding pathways and intermediates
However:
โ ๏ธ MD is not usually the best method to predict final folded structure from scratch.
๐ MD beyond proteins
Also used for:
- DNA / RNA
- Lipid membranes
- Carbohydrates
- Materials science systems
โก How Forces are Calculated
Potential energy function
The system has total potential energy:
U(x)
which depends on positions of all atoms.
This function is called a:
๐ Force field
From energy we compute force:
F(x) = - abla U(x)
Meaning:
- Force points toward lower energy
- Larger energy change โ stronger force
At energy minima โ force = 0
Force Vector
For a system with N atoms
- There are 3N coordinates
- Therefore also 3N force components
Example:
- Atom 1 โ force in x, y, z
- Atom 2 โ force in x, y, z
- etc.
๐งฎ Equations of Motion
Newtonโs Second Law:
F = ma
Also:
- Velocity = derivative of position
- Acceleration = derivative of velocity
Thus:
rac{dx}{dt} = v
rac{dv}{dt} = rac{F(x)}{m}
These form a large system of ordinary differential equations.
๐ Analytical solutions are impossible โ must solve numerically.
๐ Numerical Integration
Simplest update:
x_{i+1} = x_i + delta t v_i
v_{i+1} = v_i + delta t rac{F(x_i)}{m}
Better method used in practice:
โญ Leapfrog Verlet integration
Why?
- Time-symmetric
- More stable for long simulations
- Conserves energy better
๐ฏ Key Properties of MD
๐ Atoms never stop moving
Even at equilibrium:
- Atoms vibrate continuously
- Simulation samples the Boltzmann distribution
Probability of a structure:
p(x) propto e^{-U(x)/k_BT}
๐ฅ Energy conservation
Total energy:
- Potential + kinetic
Should stay constant.
But:
- Numerical rounding errors cause slow drift
- Therefore simulations often use thermostats to control temperature.
๐ง Importance of Solvent
Ignoring water causes major artifacts.
Two approaches:
๐ง Explicit solvent
- Simulate water molecules directly
- More accurate
- More computationally expensive
๐ซ๏ธ Implicit solvent
- Mathematical approximation
- Faster
- Less realistic
โพ๏ธ Periodic Boundary Conditions
Real systems contain ~10ยฒยณ molecules.
Simulations contain only:
- 100โ1,000,000 molecules
To mimic bulk environment:
- Simulation box is replicated infinitely
- Particle leaving one side enters from opposite side
Like Pac-Man world ๐
๐ง Limitations of MD
โณ Timescale problem
Time step โ 2 fs Protein events:
- ns โ ฮผs โ ms โ seconds
Thus:
- Millions โ trillions of steps needed
Even today:
- Microsecond simulations are computationally demanding.
๐ฏ Force field approximations
Force fields:
- Are not perfect
- May give incorrect dynamics or stability
Experience is required to interpret MD results.
๐ No bond breaking in classical MD
Standard MD:
- Bonds remain fixed
But real systems can have:
- Disulfide exchange
- Protonation changes
Advanced methods exist (QM/MM etc.).
๐ป MD Software
Popular packages:
- GROMACS
- AMBER
- NAMD
- Desmond
- OpenMM
- CHARMM
Visualization tools:
- โญ VMD (very common)
- PyMOL (alternative)
๐งฑ Force Fields
Main families:
- CHARMM
- AMBER
- OPLS-AA
Important:
โ ๏ธ Force field name โ software name (e.g. CHARMM force field vs CHARMM program)
New research:
- Neural-network force fields trained on quantum data.
๐ Why MD is Computationally Expensive
Reasons:
- Huge number of time steps
- Many force calculations each step
- Non-bonded interactions scale as:
N^2
This dominates runtime.
Speed-up strategies
- Cutoff distance for van der Waals forces
- Parallel computing
- GPU acceleration
- Constraint algorithms (freeze fast vibrations)
- Enhanced sampling methods
Specialized hardware chips for MD are also being developed.
๐ฒ Monte Carlo Simulation โ Alternative Method
Instead of Newtonโs laws:
- Make random structural changes
- Accept or reject based on energy.
Metropolis criterion
If energy decreases โ accept If increases โ accept with probability:
e^{-Delta U / k_BT}
After long time โ samples Boltzmann distribution.
โ๏ธ Simulated annealing
Gradually lowering temperature:
- Helps find low-energy structures
- Used for structure optimization.
๐ค Machine Learning Direction
New methods:
- Learn to sample equilibrium states directly
- Can give huge speedups
- But do not provide real dynamical trajectories (no โmovieโ).
โญ Final Big Picture
MD simulations allow us to:
โ Observe atomic motion โ Study protein mechanisms โ Explore folding pathways โ Understand drug interactions โ Complement experiments
But challenges remain:
โ ๏ธ Timescales โ ๏ธ Force-field accuracy โ ๏ธ Computational cost