Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computational Physics (Lecture 20)

Similar presentations


Presentation on theme: "Computational Physics (Lecture 20)"— Presentation transcript:

1 Computational Physics (Lecture 20)

2 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.

3 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.

4 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.

5 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.

6 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.

7 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.

8 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.

9 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 Ω ,

10 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

11 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.

12 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.

13 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.

14 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).

15 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.

16 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.

17 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

18 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.

19 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.

20 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.

21 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.

22 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).

23 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.

24 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.

25 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

26 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.

27 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.

28 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.

29 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).

30 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.

31 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.

32 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.

33 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:

34 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).


Download ppt "Computational Physics (Lecture 20)"

Similar presentations


Ads by Google