Finite Difference Methods and ODE - PowerPoint PPT Presentation

1 / 28
About This Presentation
Title:

Finite Difference Methods and ODE

Description:

We could start to integrate the first equation for y(x) if we knew the function z(x) ... If the system is ergodic this can also be evaluated by, ... – PowerPoint PPT presentation

Number of Views:90
Avg rating:3.0/5.0
Slides: 29
Provided by: rzg1
Category:

less

Transcript and Presenter's Notes

Title: Finite Difference Methods and ODE


1
  • Finite Difference Methods and ODE
  • Molecular Dynamics
  • (e.g. D W Heermann, Computer Simulation Methods
    in Theoretical Physics, 2nd ed. (Springer-Verlag,
    1990) 3.1)

2
Finite difference replacement
  • x-h x xz

3
(No Transcript)
4

5
Applications
  • Ordinary Differential Equations
  • Partial Differential Equations

6
Typical coupled ordinary differential equations
We could start to integrate the first equation
for y(x) if we knew the function z(x). We could
find z(x) if we could solve the second equation,
unfortunately this requires that we already know
y(x)! just what we set out to find.
7
If number of equations not too large and
functions F, G etc. not too complicated can use
predictor-corrector methods, etc.
8
Many-body problemsthese conditions are not
satisfied.
Prototype 2nd order ODE is Newtons Law,
9
In truncated form these give us Verlets algorithm
10
Verlets algorithm
11
Can calculate phase space trajectory of a system
of particles, x(t), v(t)
  • Start with X(0), V(0)
  • Calculate x(t)
  • Step the calculation forward, in steps of t at a
    time to find x(t)

Truncation error x(t)-X(t) depending on t
But unstable due to round-off error, x(t) not
near X(t) !
12
Verlets Velocity Algorithm
13
Truncating (2a) and (2b) gives us the stable
Verlet velocity algorithm
Application to classical Molecular Dynamics
14
Molecular Dynamics
In a system of N particles the number of terms in
calculating the forces (-grad(U)) at any one time
is 3N(N-1)/2
A sample problem to calculate the thermal
properties of an isolated cluster of atoms
interacting through a Lennard-Jones
potential. The energy is fixed, this is
microcanonical molecular dynamics
15
For simplicity we restrict the motions to two
dimensions e.g. on a surface.
16
Lennard-Jones Potential
17
                                                
                                      
Converted by Mathematica      September 26, 2001
18
For a system of N particles, the interaction
energy
19
(No Transcript)
20
with a similar N equations for the y-components.
21
These equations are to be integrated, from an
initially specified configuration, using Verlets
velocity algorithm.
What value should be used for t?
As small as possible to minimise truncation error
which will eventually cause the energy not to
be conserved as time goes on
22
Argon r03.8 10-10 m, ?/kB119K, M39.948u
(1u931.44MeV/c2)
Natural unit of time
t0.01 corresponds to a physical time of 2.45
10-14 secs
23
Procedure
  • Setup
  • Assign 2N initial positions and velocities at
    t0
  • Calculate the total energy
  • Calculate the 2N components of force, equation
    (3) above
  • Find positions at time t
  • Iteration
  • Calculate the 2N force components
  • Calculate positions at next time step
  • Calculate the 2N velocity components

24
kinetic energy K is
25
Iterate for a number of steps, monitoring the
kinetic energy and when it seems to have
stabilised estimate the equivalent temperature
from, (valid at equilibrium)
26
Studying thermal properties
The thermal average of any physical quantity,
A(x), is defined by
where p(x,T)dx is the probability distribution of
its configurations, e.g. the Boltzmann
distribution for the canonical ensemble.
If the system is ergodic this can also be
evaluated by,
27
This is so provided the system has relaxed to the
desired temperature, thermal properties can be
estimated, e.g. the specific heat by finding the
average of the kinetic energy, and its
reciprocal, and using the formula,
28
Minimisation by Molecular Dynamics
Simulated Annealing
  • Start with the system at a high temperature
  • Explore the configuration space until in
    equilibrium region
  • Reduce temperature, i.e. rescale velocities
  • Repeat above steps
Write a Comment
User Comments (0)
About PowerShow.com