Computational Physics (Lecture 20)

Slides:



Advertisements
Similar presentations
Time averages and ensemble averages
Advertisements

Simulazione di Biomolecole: metodi e applicazioni giorgio colombo
The Kinetic Theory of Gases
Pressure and Kinetic Energy
Statistical mechanics
Review Of Statistical Mechanics
Biological fluid mechanics at the micro‐ and nanoscale Lecture 7: Atomistic Modelling Classical Molecular Dynamics Simulations of Driven Systems Anne Tanguy.
Advanced Molecular Dynamics Velocity scaling Andersen Thermostat Hamiltonian & Lagrangian Appendix A Nose-Hoover thermostat.
Molecular Dynamics at Constant Temperature and Pressure Section 6.7 in M.M.
Lecture 13: Conformational Sampling: MC and MD Dr. Ronald M. Levy Contributions from Mike Andrec and Daniel Weinstock Statistical Thermodynamics.
Survey of Molecular Dynamics Simulations: Week 2 By Will Welch For Jan Kubelka CHEM 4560/5560 Fall, 2014 University of Wyoming.
Lecture 15: Capillary motion
Rotational Equilibrium and Rotational Dynamics
Mechanics of Rigid Bodies
Lecture of : the Reynolds equations of turbulent motions JORDANIAN GERMAN WINTER ACCADMEY Prepared by: Eng. Mohammad Hamasha Jordan University of Science.
Joo Chul Yoon with Prof. Scott T. Dunham Electrical Engineering University of Washington Molecular Dynamics Simulations.
Ch 23 pages Lecture 15 – Molecular interactions.
STATIC EQUILIBRIUM [4] Calkin, M. G. “Lagrangian and Hamiltonian Mechanics”, World Scientific, Singapore, 1996, ISBN Consider an object having.
1 Scalar Properties, Static Correlations and Order Parameters What do we get out of a simulation? Static properties: pressure, specific heat, etc. Density.
Room 2032 China Canada Winnipeg Manitoba.
BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013.
Javier Junquera Molecular dynamics in the microcanonical (NVE) ensemble: the Verlet algorithm.
A PPLIED M ECHANICS Lecture 02 Slovak University of Technology Faculty of Material Science and Technology in Trnava.
Molecular Dynamics Simulation Solid-Liquid Phase Diagram of Argon ZCE 111 Computational Physics Semester Project by Gan Sik Hong (105513) Hwang Hsien Shiung.
1 CE 530 Molecular Simulation Lecture 17 Beyond Atoms: Simulating Molecules David A. Kofke Department of Chemical Engineering SUNY Buffalo
Minimization v.s. Dyanmics A dynamics calculation alters the atomic positions in a step-wise fashion, analogous to energy minimization. However, the steps.
Basics of molecular dynamics. Equations of motion for MD simulations The classical MD simulations boil down to numerically integrating Newton’s equations.
1 CE 530 Molecular Simulation Lecture 6 David A. Kofke Department of Chemical Engineering SUNY Buffalo
8. Selected Applications. Applications of Monte Carlo Method Structural and thermodynamic properties of matter [gas, liquid, solid, polymers, (bio)-macro-
Chemical Reactions in Ideal Gases. Non-reacting ideal gas mixture Consider a binary mixture of molecules of types A and B. The canonical partition function.
In the Hamiltonian Formulation, the generalized coordinate q k & the generalized momentum p k are called Canonically Conjugate quantities. Hamilton’s.
9/24/2014PHY 711 Fall Lecture 131 PHY 711 Classical Mechanics and Mathematical Methods 10-10:50 AM MWF Olin 103 Plan for Lecture 13: Finish reading.
1 CE 530 Molecular Simulation Lecture 23 Symmetric MD Integrators David A. Kofke Department of Chemical Engineering SUNY Buffalo
HEAT TRANSFER FINITE ELEMENT FORMULATION
1 Dynamics Differential equation relating input torques and forces to the positions (angles) and their derivatives. Like force = mass times acceleration.
Ludwid Boltzmann 1844 – 1906 Contributions to Kinetic theory of gases Electromagnetism Thermodynamics Work in kinetic theory led to the branch of.
Phy 303: Classical Mechanics (2) Chapter 3 Lagrangian and Hamiltonian Mechanics.
Interacting Molecules in a Dense Fluid
Molecular dynamics (2) Langevin dynamics NVT and NPT ensembles
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
Molecular dynamics (4) Treatment of long-range interactions Computing properties from simulation results.
Review Of Statistical Mechanics Continued
1 Statistical Mechanics and Multi- Scale Simulation Methods ChBE Prof. C. Heath Turner Lecture 17 Some materials adapted from Prof. Keith E. Gubbins:
©D.D. Johnson and D. Ceperley MSE485/PHY466/CSE485 1 Scalar Properties, Static Correlations and Order Parameters What do we get out of a simulation?
Canonical Equations of Motion -- Hamiltonian Dynamics
Molecular dynamics (3) Equations of motion for (semi) rigid molecules. Restrained MD.
Statistical Mechanics and Multi-Scale Simulation Methods ChBE
Computational Physics (Lecture 18) PHY4061. Molecular dynamics simulations Most physical systems are collections of interacting objects. – a drop of water.
Purdue Aeroelasticity
Computational Physics (Lecture 10) PHY4370. Simulation Details To simulate Ising models First step is to choose a lattice. For example, we can us SC,
ME451 Kinematics and Dynamics of Machine Systems Dynamics of Planar Systems November 4, 2010 Chapter 6 © Dan Negrut, 2010 ME451, UW-Madison TexPoint fonts.
Computational Physics (Lecture 10)
Figure 1. Spring characteristics
Figure 1. Spring characteristics
Overview of Molecular Dynamics Simulation Theory
The units of g(): (energy)-1
Entropy in statistical mechanics. Thermodynamic contacts:
PHYS 1443 – Section 003 Lecture #18
Fundamentals of Molecular Dynamics Simulations
Computational Physics (Lecture 18)
Computational Physics (Lecture 19)
Lecture 41 Statistical Mechanics and Boltzmann factor
Scalar Properties, Static Correlations and Order Parameters
Thermal Properties of Matter
Molecular Dynamics.
Continuous Systems and Fields
Advanced Molecular Dynamics
© Sharif University of Technology - CEDRA By: Professor Ali Meghdari
Figure 1. Spring characteristics
PHY 711 Classical Mechanics and Mathematical Methods
Presentation transcript:

Computational Physics (Lecture 20)

Constant pressure, temperature, and bond length when we want to compare the simulation results with the experimental measurements: environmental parameters, such as temperature or pressure, are the result of thermal or mechanical contact of the system with the environment or the result of the equilibrium of the system. For a macroscopic system, we deal with average quantities by means of statistical mechanics, so it is highly desirable for the simulation environment to be as close as possible to a specific ensemble.

The example of atomic cluster systems is closely related to the microcanonical ensemble, which has the total energy of the system conserved. It is important that we also be able to find ways to deal with constant-temperature and/or constant-pressure conditions.

There have been many efforts to model realistic systems with simulation boxes by introducing some specific procedures. However, all these procedures do not introduce any new concepts in physics. They are merely numerical techniques to make the simulation boxes as close as possible to the physical systems under study.

Constant pressure: the Andersen scheme The scheme for dealing with a constant-pressure environment was devised by Andersen (1980) with the introduction of an environmental variable, the instantaneous volume of the system, in the effective Lagrangian. When the Lagrange equation is applied to the Lagrangian, the equations of motion for the coordinates of the particles and the volume result. The constant pressure is then a result of the zero average of the second-order time derivative of the volume.

The effective Lagrangian of Andersen (1980) is given by: where the last two terms are added to deal with the constant pressure from the environment.

The parameter M can be viewed here as an effective inertia associated with the expansion and contraction of the volume Ω, and P0 is the external pressure, which introduces a potential energy P0 Ω to the system under the assumption that the system is in contact with the constant-pressure environment.

The coordinate of each particle ri is rescaled with the dimension of the simulation box, L = Ω 1/3, because the distance between any two particles changes with L and the coordinates independent of the volume are then given by xi = ri /L, which are not directly related to the changing volume. Now you probably understand why we have the concept of fractional coordinates.

This effective Lagrangian is not the result of any new physical principles or concepts but is merely a method of modeling the effect of the environment in realistic systems. Now if we apply the Lagrange equation to the above Lagrangian, we obtain the equations of motion for the particles and the volume Ω ,

gi = fi / mi and P is given by: Which can be interpreted as the instantaneous pressure of the system and has a constant average P0, because

After we have the effective equation of motion, the algorithm can be worked out quite easily. We will use: to simplify the notation. If we apply the velocity version of the Verlet algorithm, the difference equations for the volume and the rescaled coordinates are given by: Where the values with index k= ½ are intermediate values before the pressure and force are updated, with: which are usually evaluated immediately after the volume and the coordinates are updated.

In practice, we first need to set up the initial positions and velocities of the particles and the initial volume and its time derivative. The initial volume is determined from the given particle number and density, and its initial time derivative is usually set to be zero. The initial coordinates of the particles are usually arranged on a densely packed lattice, for example, a face-centered cubic lattice, and the initial velocities are usually drawn from the Maxwell distribution. One should test the program with different Ms in order to find the value of M that minimizes the fluctuation.

A generalization of the Andersen constant-pressure scheme was introduced by Parrinello and Rahman (1980; 1981) to allow the shape of the simulation box to change as well. This generalization is important in the study of the structural phase transition. With the shape of the simulation box allowed to vary, the particles can easily move to the lattice points of the structure with the lowest free energy.

The idea of Parrinello and Rahman Where xi is the coordinate of the ith particle in the vector representation of the simulation box, with: Here A is the matrix representation of (a, b, c) in Cartesian coordinates and B = AT A. Instead of a single variable Omega, there are nine variables Aij, with i, j = 1, 2, 3; This allows both the volume size and the shape of the simulation box to change. The equations of motion for xi and Aij can be derived by applying the Lagrange equation to the above Lagrangian. An external stress can also be included (Parrinello and Rahman, 1981).

Constant temperature: the Nosė scheme The constant-pressure scheme discussed above is usually performed with an ad hoc constant-temperature constraint, which is done by rescaling the velocities during the simulation to ensure the relation between the total kinetic energy and the desired temperature in the canonical ensemble.

This rescaling can be shown to be equivalent to a force constraint up to first order in the time step τ . The constraint method for the constant-temperature simulation is achieved by introducing an artificial force −η pi , which is similar to a frictional force if η is greater than zero or to a heating process if η is less than zero.

The equations of motion are modified under this force to Where pi is the momentum of the ith particle and η is the constraint parameter that can be obtained for the relevant Lagrange multiplier (Evans et al., 1983) in the Lagrange equations with: Which can be evaluated at every time step. Here G is the total number of degrees of freedom of the system, and Ep is the total potential energy. So one can simulate the canonical ensemble averages from the equation for ri and vi

Here we will briefly discuss the Nose scheme. The most popular constant-temperature scheme is that of Nose (1984a; 1984b), who introduced a fictitious dynamical variable to take the constant-temperature environment into account. The idea is very similar to that of Andersen for the constant-pressure case. In fact, one can put both fictitious variables together to have simulations for constant pressure and constant temperature together. Here we will briefly discuss the Nose scheme.

The velocity is rescaled with time: We can introduce a rescaled effective Lagrangian: where s and vs are the coordinate and velocity of an introduced fictitious variable that rescales the time and the kinetic energy in order to have the constraint of the canonical ensemble satisfied. The rescaling is achieved by replacing the time element dt with dt/s and holding the coordinates unchanged, that is, xi = ri . The velocity is rescaled with time: We can then obtain the equation of motion for the coordinate xi and the variable s by applying the Lagrange equation. Hoover (1985; 1999) showed that the Nose Lagrangian leads to a set of equations very similar to the result of the constraint force scheme discussed at the beginning of this subsection.

The Nose equations of motion are given in the Hoover version by Where η is given in a differential form, And the original variables s, introduced by Nose, is related to η by: with s0 as the initial value of s at t = t0.

We can discretize the above equation set easily with either the Verlet algorithm or one of the Gear schemes. Note that the behavior of the parameter s is no longer directly related to the simulation; It is merely a parameter Nose introduced to accomplish the microscopic processes happening in the constant-temperature environment.

We can also combine the Andersen constant-pressure scheme with the Nose constant-temperature scheme in a single effective Lagrangian Which is worked out in details in the original work of Nose (1984a, 1984b). Another constant-temperature scheme was introduced by Berendsen et al. (1984) with the parameter η given by: Which can be interpreted as a similar form of the constraint that differs from the Hoover-Nose form in the choice of η. For a review on the subject, see Nose (1991).

Constant bond length Another issue we have to deal with in practice is that for large molecular systems, such as biopolymers, the bond length of a pair of nearest neighbors does not change very much even though the angle between a pair of nearest bonds does. If we want to obtain accurate simulation results, we have to choose a time step much smaller than the period of the vibration of each pair of atoms. This costs a lot of computing time and might exclude the applicability of the simulation to more complicated systems, such as biopolymers.

A procedure commonly known as the SHAKE algorithm (Ryckaert, Ciccotti,and Berendsen, 1977; van Gunsteren and Berendsen, 1977) was introduced to deal with the constraint on the distance between a pair of particles in the system. The idea of this procedure is to adjust each pair of particles iteratively to have in each time step.

Here dij is the distance constraint between the ith and j th particles and Δ is the tolerance in the simulation. The adjustment of the position of each particle is performed after each time step of the molecular dynamics simulation. Assume that we are working on a specific pair of particles and for the i th constraint and that we would like to have

where rij = r j − ri is the new position vector difference after a molecular time step starting from r(0)i j and the adjustments for the l − 1 constraints have been completed. Here δrij = δrj − δri is the total amount of adjustment needed for both particles.

One can show, in conjunction with the Verlet algorithm, that the adjustments needed are given by: With gij as a parameter to be determined. The center of mass of these two particles remains the same during the adjustment. If we substitute delta ri and delta rj, we obtain: Where μ ij = mi mj / (mi +mj) is the reduced mass of the two particles. If we keep only the linear term in gij, we have: which is reasonable, because gi j is a small number during the simulation.

For more details on the algorithm, see Ryckaert et al. (1977). More importantly, by the end of the iteration, all the constraints will be satisfied as well; all gi j go to zero at the convergence. Equation (8.100) is used to estimate each gi j for each constraint in each iteration. After one has the estimate of gi j for each constraint, the positions of the relevant particles are all adjusted. The adjustments have to be performed several times until the convergence is reached. For more details on the algorithm, see Ryckaert et al. (1977). This procedure has been used in the simulation of chain-like systems as well as of proteins and nucleic acids.

Structure and dynamics of real materials A numerical simulation of a specific material starts with a determination of the interaction potential in the system. In most cases, the interaction potential is formulated in a parameterized form, which is usually determined separately from the available experimental data, first principles calculations, and condition of the system under study. The accuracy of the interaction potential determines the validity of the simulation results. Accurate model potentials have been developed for many realistic materials, for example, the Au (100) surface (Ercolessi, Tosatti, and Parrinello, 1986) and Si3N4 ceramics (Vashishta et al., 1995).

We then need to set up a simulation box under the periodic boundary condition. Because most experiments are performed in a constant-pressure environment, we typically use the constant-pressure scheme developed by Andersen (1980) or its generalization (Parrinello and Rahman, 1980; 1981). The size of the simulation box has to be decided together with the available computing resources and the accuracy required for the quantities to be evaluated.

The temperature can be changed by rescaling the velocities. The initial positions of the particles are usually assigned at the lattice points of a closely packed structure, for example, a face-centered cubic structure. The initial velocities of the particles are drawn from the Maxwell distribution for a given temperature. The temperature can be changed by rescaling the velocities. This is extremely useful in the study of phase transitions with varying temperature, such as the transition between different lattice structures, glass transition under quenching, or liquid–solid transition when the system is cooled down slowly.

The advantage of simulation over actual experiment also shows up when we want to observe some behavior that is not achievable experimentally due to the limitations of the technique or equipment. For example, the glass transition in the Lennard–Jones system is observed in molecular dynamics simulations but not in the experiments for liquid Ar, because the necessary quenching rate is so high that it is impossible to achieve it experimentally.

Studying the dynamics of different materials requires a more general time dependent density – density correlation function: With the time dependent density operator given by: If the system is homogeneous, we can integrate out r` in the time-dependent density-density correlation function to reach the van Hove time dependent distribution function:

where g(r) is the pair distribution and S(k) is The dynamical structure factor measured in an experiment, for example, neutron scattering, is given by the Fourier transform of G(r, t) as: The above equation reduces to the static case with: If we realize that: and where g(r) is the pair distribution and S(k) is the angular average of S(k).