Presentation on theme: "Time averages and ensemble averages"— Presentation transcript:
1 Time averages and ensemble averages Values such as pressure or heat capacity generally depend upon the positions and momenta of the N particles that comprise the system. The instantaneous value of the property A can thus be written as :Average value of the property A can be calculated using integral approach:
2 Time averages and ensemble averages For macroscopic numbers of atoms or molecules (of the order of 1023, Avogadro's number is × 1023 ) it is not feasible to determine an initial configuration of the system, and to later integrate equation of the motion which describe its temporal evolution.Boltzmann and Gibbs developed statistical mechanics, in which a single system evolving in time is replaced by a large number of replications of the same system that are considered simultaneously. The time average is replaced by an ensemble average:
3 A brief description of the Molecular Dynamics method Molecular dynamics calculates the “real” dynamics, i.e. behavior of the system, from which the time averages of the system’s properties can be calculated.Molecular dynamics is a deterministic method, which means that the state of the system at any future time can be predicted from its current state.At each step, the forces on the atoms are computed and combined with the current positions and velocities to generate new positions and velocities a short time ahead. The force acting on each atom is assumed to be constant during the time interval. The atoms are then moved to the new positions, an updated set of forces is computed and new dynamics cycle goes on.
4 A brief description of the Molecular Dynamics method Successive configuration of the molecular system ca be obtained by integrating Newton’s laws of motion. Positions and momenta of the particles of the given molecular system are described by the trajectories obtained by the successive integration of the Newton’s equations which are mathematical description of the following natural rules:A body continues to move in a straight line at a constant velocity unless a force acts upon it;Force equals the rate of change of momentum;To every action there is an equal and opposite reaction;The trajectories are obtained by solving the differential equations of the Newton’s second law:
5 Simple modelsHard sphere potentialSquare well potential
6 Simple models Four-step procedure Identify next pair of spheres to collide and calculate when the collision will occur;Calculate the position of collision;Determine the new velocities after collisionRepeat steps 1, 2 and 3 until finishedThe new velocities of the colliding spheres are calculated by applying the principle of the conservation of the linear momentum.
7 Molecular Dynamics with continuous potentials First MD with continuous potentials done in 1964 (simulation of argon by Rahman).Finite difference method: the integration is broken down into many small stages, each separated in time by a fixed time dt.
8 Verlet algorithmThe most widely used method in molecular dynamics programs is the Verlet algorithm. It uses the positions and accelerations at time t, and the positions from the previous step, r(t-δt) to calculate new positions at t+δt, r(t+δt). Relations between positions and velocities at those two moments in time can be written as:Those two relations can be added to give:The velocities do not explicitly appear in the Verlet algorithm. They can be calculated in several ways. A very simple approach is to divide the difference in positions at times t+δt and t-δt by 2δt, i.e.Another approach calculates velocities at the half step :Practical application of this algorithm is straightforward and memory requirements are modest, only positions at two time steps have to be recorded r(t), r(t-δt), and the acceleration a(t). The only drawback is that the new position r(t + δt) is obtained by adding small term δ2ta(t) to the difference of two much larger terms 2r(t) and r(t-δt), which requires high precision for r in the numerical calculation.
9 Verlet algorithmThe leap-frog method is the variation of Verlet algorithm. It uses the following relations:The name of this method comes from its nature, i.e., velocities make ‘leap-frog’ jumps over the positions to give their values at
10 Verlet algorithmThe velocity Verlet algorithm gives positions, velocities and accelerations at the same time and does not compromise precision:
11 Verlet algorithm Beeman Algorithm Better velocities, better energy conservationMore expensive to calculate
12 Evaluate integration methods Fast, minimal memory, easy to programCalculation of force is time consumingConservation of energy and momentumTime-reversibleLong time step can be used
13 Which algorithm is appropriate Cost effectiveEnergy conservationRoot-mean-square fluctuationTotal, 0.02 kcal/molKE and PE, 5 kcal/mol
14 Choosing the time step Too small: covering small conformation space Too large: instabilitySuggested time stepsTranslation, 10 fsFlexible molecules and rigid bonds, 2fsFlexible molecules and bonds, 1fs
15 Multiple time step dynamics Reversible reference system propagation algorithm (r-RESPA)Forces within a system classified into a number of groups according to how rapidly the force changesEach group has its own time step, while maintaining accuracy and numerical stabilityPseudo-code on page 364 using velocity Verlet
16 Molecular dynamics setup Initial configurationInitial velocities (Maxwell-Boltzmann)Force fieldCutoff: doesn’t save time by itself. But can combine with neighbor list and speed-up the simulation
17 Running molecular dynamics EquilibrationSpecial care is needed for inhomogeneous systemCalculating the temperatureNc is the number of constraints, so 3N – Nc is the total number of degrees of freedomBoundary conditionsNo boundaryPeriodic boundary conditionNon-periodic: reaction zone, harmonic constraint boundary atoms
18 Constraint dynamics High frequency modes takes all the computer time Low frequency modes correspond to conformational changesConstraint: system is forced to satisfy certain conditionsSHAKE: constraint the bond vibration