TUTORIAL no. 2 Monte Carlo simulations: Lennard Jones gas G. Lattanzi Università degli studi di Bari “Aldo Moro” Trieste, July 10 th, 2012 CECAM school.

Slides:



Advertisements
Similar presentations
PRAGMA – 9 V.S.S.Sastry School of Physics University of Hyderabad 22 nd October, 2005.
Advertisements

Monte Carlo Simulation Wednesday, 9/11/2002 Stochastic simulations consider particle interactions. Ensemble sampling Markov Chain Metropolis Sampling.
How to setup the initial conditions for a Molecular Dynamic Simulation
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.
Introduction to Statistical Thermodynamics (Recall)
Computational simulation of Molecular dynamics Talk given at the theory group, School of Physics, USM 31 Oct pm.
Computational Solid State Physics 計算物性学特論 第2回 2.Interaction between atoms and the lattice properties of crystals.
Two important lines of research in the behavior of proteins are - Given the sequence : predict the structure of the protein - Given the structure : predict.
Bayesian Reasoning: Markov Chain Monte Carlo
Monte Carlo Simulation Methods - ideal gas. Calculating properties by integration.
Simulation of water carbon nanotube system including chloroform Lin Chen Advisor: David Smith October 4, 2006.
MAE 552 – Heuristic Optimization Lecture 6 February 6, 2002.
Simulated Annealing Van Laarhoven, Aarts Version 1, October 2000.
Continuous Time Monte Carlo and Driven Vortices in a Periodic Potential V. Gotcheva, Yanting Wang, Albert Wang and S. Teitel University of Rochester Lattice.
Monte Carlo Simulation of Ising Model and Phase Transition Studies By Gelman Evgenii.
Advanced methods of molecular dynamics Monte Carlo methods
Monte-Carlo simulations of the structure of complex liquids with various interaction potentials Alja ž Godec Advisers: prof. dr. Janko Jamnik and doc.
Room 2032 China Canada Winnipeg Manitoba.
Free energies and phase transitions. Condition for phase coexistence in a one-component system:
Monte Carlo Simulation of Liquid Water Daniel Shoemaker Reza Toghraee MSE 485/PHYS Spring 2006.
F.F. Assaad. MPI-Stuttgart. Universität-Stuttgart Numerical approaches to the correlated electron problem: Quantum Monte Carlo.  The Monte.
Monte Carlo Simulation: Simulate an Isothermal-Isobaric Ensemble Timothy Tie Dong Bing School of Physics, Computer Lab 25 th Jan 2013.
Molecular Dynamics Simulation Solid-Liquid Phase Diagram of Argon ZCE 111 Computational Physics Semester Project by Gan Sik Hong (105513) Hwang Hsien Shiung.
Chicago, July 22-23, 2002DARPA Simbiosys Review 1 Monte Carlo Particle Simulation of Ionic Channels Trudy van der Straaten Umberto Ravaioli Beckman Institute.
Basic Monte Carlo (chapter 3) Algorithm Detailed Balance Other points.
TUTORIAL no. 1 Random numbers G. Lattanzi Università degli studi di Bari “Aldo Moro” Trieste, July 9 th, 2012 CECAM school on Numerical simulations F.
Basics of molecular dynamics. Equations of motion for MD simulations The classical MD simulations boil down to numerically integrating Newton’s equations.
Module 1: Statistical Issues in Micro simulation Paul Sousa.
Force Fields and Numerical Solutions Christian Hedegaard Jensen - within Molecular Dynamics.
Monte Carlo Methods in Statistical Mechanics Aziz Abdellahi CEDER group Materials Basics Lecture : 08/18/
Adsorption on Single-Walled Carbon Nanohorns Adam Scrivener.
Simulated Annealing.
For a new configuration of the same volume V and number of molecules N, displace a randomly selected atom to a point chosen with uniform probability inside.
8. Selected Applications. Applications of Monte Carlo Method Structural and thermodynamic properties of matter [gas, liquid, solid, polymers, (bio)-macro-
Surface and Bulk Fluctuations of the Lennard-Jones Clusrers D. I. Zhukhovitskii.
Plan Last lab will be handed out on 11/22. No more labs/home works after Thanksgiving. 11/29 lab session will be changed to lecture. In-class final (1hour):
Structural origin of non-Newtonian rheology Computer simulations on a solution of telechelic associating polymers J. Stegen +, J. Billen°, M. Wilson °,
Protein Folding and Modeling Carol K. Hall Chemical and Biomolecular Engineering North Carolina State University.
Time-dependent Schrodinger Equation Numerical solution of the time-independent equation is straightforward constant energy solutions do not require us.
Molecular Modelling - Lecture 2 Techniques for Conformational Sampling Uses CHARMM force field Written in C++
Chapter 9: Molecular-dynamics Integrate equations of motion-- classical! Discrete form of Newton’s second law Forces from interaction potential For a simple.
Path Integral Quantum Monte Carlo Consider a harmonic oscillator potential a classical particle moves back and forth periodically in such a potential x(t)=
7. Metropolis Algorithm. Markov Chain and Monte Carlo Markov chain theory describes a particularly simple type of stochastic processes. Given a transition.
Monte Carlo method: Basic ideas. deterministic vs. stochastic In deterministic models, the output of the model is fully determined by the parameter values.
An Introduction to Monte Carlo Methods in Statistical Physics Kristen A. Fichthorn The Pennsylvania State University University Park, PA
Monte Carlo in different ensembles Chapter 5
1/18/2016Atomic Scale Simulation1 Definition of Simulation What is a simulation? –It has an internal state “S” In classical mechanics, the state = positions.
Monte Carlo methods (II) Simulating different ensembles
Javier Junquera Importance sampling Monte Carlo. Cambridge University Press, Cambridge, 2002 ISBN Bibliography.
MC Simulation Lab 7: 2-Dimensional Lennard-Jones Simple Liquid (Off-Lattice) and Its Phase Transition.
Basic Monte Carlo (chapter 3) Algorithm Detailed Balance Other points non-Boltzmann sampling.
Monte Carlo Simulation of Canonical Distribution The idea is to generate states i,j,… by a stochastic process such that the probability  (i) of state.
Kevin Stevenson AST 4762/5765. What is MCMC?  Random sampling algorithm  Estimates model parameters and their uncertainty  Only samples regions of.
Computational Physics (Lecture 4) PHY4370. Random Variable, density function and distribution function.
Introduction to Computer Simulation of Physical Systems (Lecture 4) Simulating Particle Motion (CONTINUED) PHYS 3061.
Computational Physics (Lecture 10) PHY4370. Simulation Details To simulate Ising models First step is to choose a lattice. For example, we can us SC,
Pattern Formation via BLAG Mike Parks & Saad Khairallah.
Monte Carlo Simulation of the Ising Model Consider a system of N classical spins which can be either up or down. The total.
Systematic errors of MC simulations Equilibrium error averages taken before the system has reached equilibrium  Monitor the variables you are interested.
The Monte Carlo Method/ Markov Chains/ Metropolitan Algorithm from sec in “Adaptive Cooperative Systems” -summarized by Jinsan Yang.
Computational Physics (Lecture 10)
Van Laarhoven, Aarts Version 1, October 2000
Advanced Statistical Computing Fall 2016
By Rohit Ray ESE 251 Simulated Annealing.
Maria Okuniewski Nuclear Engineering Dept.
Markov chain monte carlo
Common Types of Simulations
VQMC J. Planelles.
Presentation transcript:

TUTORIAL no. 2 Monte Carlo simulations: Lennard Jones gas G. Lattanzi Università degli studi di Bari “Aldo Moro” Trieste, July 10 th, 2012 CECAM school on Numerical simulations F. Becca & G. Lattanzi SISSA

Metropolis Algorithm in a nutshell 1.Select a particle at random and calculate its energy U(o), which is a function of the positions of all the particles. 2.Attempt a displacement of the selected particle. 3.Compute the new energy U(n) and ΔU=U(n)-U(o). 4.Accept the move with probability: In this exercise, we will set up a Monte Carlo simulation of a gas of Lennard Jones particles. You can choose your favourite programming language.

Lennard-Jones potential

Reduced units Unit of length: σ Unit of energy, ε Unit of mass, m All the other units descend from these. For instance, the unit of time is: while the unit of temperature is: In these units, the vdW interaction potential becomes:

Periodic boundary conditions

Truncation of interactions

Initialization: parameters We start with a simple sytem of N=100 particles with Lennard-Jones interactions in a 3D cubic box. Number of particles: N=100 Density: ρ=0.5 particles/σ 3 Simulation box: cubic Size of the box: L=(N/ρ) 1/3 Cutoff: r C =L/2 Starting configuration. We may choose to place the N particles randomly, or on a cubic lattice. We are interested in equilibrium properties, hence our results MUST not depend on the initial configuration. If they do, our simulation is simply WRONG.

Total energy and tricks of the trade The formula that computes the total configurational energy is: Trick 1. If we write the formula in this way, it is easier to code it in a double loop. Trck 2. It is also easy to calculate the difference in energy between the old and new configuration, by simply counting the interactions of the selected particle. Trick 3. It is advisable to calculate the distance squared between two particles, in order to avoid loosing time on the sqrt() operation, which is not needed for practical purposes.

Trial moves We MUST select the particle for which we attempt the displacement RANDOMLY. We ensure in this way that the underlying Markov chain remains symmetric. Translational move: We need to calculate the energy difference now, in order to apply the Metropolis criterion and decide whether to accept the move or not.

Metropolis Algorithm 1.Select a particle at random. 2.Attempt a displacement of the selected particle. 3.Compute ΔU=U(n)-U(o). 4.Accept the move with probability: Rule of thumb. Δ should be not too small or not too large: it should correspond to an acceptance rate of 30-50%.

Exercise: the Lennard-Jones gas Parameters: Number of particles: N=100 Density: ρ=0.5 particles/σ 3 Simulation box: cubic Size of the box: L=(N/ρ) 1/3 Cutoff: r C =L/2 Temperature = Make a suitable test to check for periodic boundary conditions. 2.Acceptance: make sure that your acceptance rate is between 30 and 50%. 3.Equilibrate the system: calculate the total energy U for each configuration, its average and the correlation function. 4.Obtain for different temperatures and the specific heat 5.Check your result with the specific heat evaluated from the fluctuation analysis: