1 / 26

Molecular dynamics

Computational Physics Project. Predictor-Corrector method Verlet Integration. Molecular dynamics. Guy Halioua 302748546. Technion – Israel Institute of Technology. Preface – Molecular Dynamics. Simulation method for exploring Dynamic systems Based on Newton’s laws of motion

lori
Download Presentation

Molecular dynamics

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Computational Physics Project • Predictor-Corrector method • Verlet Integration Moleculardynamics Guy Halioua 302748546 Technion – Israel Institute of Technology

  2. Preface – Molecular Dynamics • Simulation method for exploring Dynamic systems • Based on Newton’s laws of motion • Solve problems with multiple bodies

  3. General Algorithm for MD

  4. Integration Methods Solve a second order ODE: • Predictor Corrector - Multiple values method • Verlet Integration – Numerical approximations to the derivatives

  5. Predictor - Corrector Predict a primitive guess for the values of and by the formulas: While:

  6. Predictor - Corrector Calculate the accelerations for time t+∆t based on the prediction made earlier.

  7. Predictor - Corrector Correct the primitive guess for the values of and made earlier by the formulas: While:

  8. Predictor - Corrector Predictor Corrector coefficients for second-order equations Taken from D.C Rapaport’s Book: “The Art of Molecular Dynamics Simulation”

  9. Verlet Integration Taylor Expand of and

  10. Verlet Integration While can be found from Newton’s equations of motion: And the velocity is found by the mean value theorem:

  11. Verlet Integration Accuracy analysis: Velocity Coordinate Looking for a better approximation Overall accuracy

  12. Velocity Verlet Integration Simply a Taylor Expand of and while is taken from the motion equation using

  13. MD Simulation1D Row of Linear Oscillators Defining the problem: row of masses, divided by linear oscillators (k,l) Determine the Dynamics of the system

  14. MD Simulation1D Row of Linear Oscillators Defining the potential function: • Elastic potential • Force

  15. MD Simulation1D Row of Linear Oscillators Choosing parameters: Mass Lattice’s const’ Oscillator’s const’ Oscillator’s free length No. of particles Size of time step No. of time steps

  16. MD Simulation1D Row of Linear Oscillators Choosing initial conditions: • Coordinates: Lattice organization around the origin • Velocities: randomly picked, range [-0.3,0.3]using Matlab’s random number generator

  17. MD Simulation1D Row of Linear Oscillators Programming • Two programs in C for computing the positions, velocities and energies at all the time steps. • Input is a file with the initial velocities

  18. MD Simulation1D Row of Linear Oscillators Expected results: • Solution of 1 oscillator – sine (cosine) wave • Expected solution for multiple oscillators, multiple sine (cosine) waves.

  19. MD Simulation1D Row of Linear Oscillators Results - Predictor Corrector

  20. MD Simulation1D Row of Linear Oscillators Results – Verlet Integration

  21. MD Simulation1D Row of Linear Oscillators Results – animation: Verlet Integration Predictor – Corrector

  22. MD Simulation1D Row of Linear Oscillators Results – Differences:

  23. MD Simulation1D Row of Linear Oscillators Results – Differences: • Max Difference ≈ 1.2e-4 [m] • Typical system size- a=0.5 m • % max difference: 0.024% IdenticalResults

  24. MD Simulation1D Row of Linear Oscillators Energy analysis – Predictor Corrector

  25. MD Simulation1D Row of Linear Oscillators Energy analysis – Verlet Integration

  26. MD Simulation1D Row of Linear Oscillators Conclusions • Energy and momentum conservation • Identical results in 2 different methods • Compatible with theory LogicalResults

More Related