South China University of Technology Oscillator motions Xiaobao Yang Department of Physics

Slides:



Advertisements
Similar presentations
Lecture on Numerical Analysis Dr.-Ing. Michael Dumbser
Advertisements

Example Project and Numerical Integration Computational Neuroscience 03 Lecture 11.
Chapter 6 Differential Equations
Eric Prebys, FNAL.  We have focused largely on a kinematics based approach to beam dynamics.  Most people find it more intuitive, at least when first.
Dr. Guy Tel-Zur Computational Physics Differential Equations Autumn Colors, by Bobby Mikul, Mikul Autumn Colors,
HAMPIRAN NUMERIK SOLUSI PERSAMAAN DIFERENSIAL (lanjutan) Pertemuan 12 Matakuliah: METODE NUMERIK I Tahun: 2008.
Solving Second order differential equations numerically, 2
Oscillators fall CM lecture, week 3, 17.Oct.2002, Zita, TESC Review forces and energies Oscillators are everywhere Restoring force Simple harmonic motion.
CE5504 – Surface Water Quality Modeling CE5504 Surface Water Quality Modeling Lab 2. Numerical Methods and Population Growth Modeling.
11 September 2007 KKKQ 3013 PENGIRAAN BERANGKA Week 10 – Ordinary Differential Equations 11 September am – 9.00 am.
Simple Harmonic Motion. Analytical solution: Equation of motion (EoM) Force on the pendulum constants determined by initial conditions. The period of.
Numerical Integration CE5504 – Surface Water Quality Modeling  non-idealized loading functions  variable parameters  multi-segment systems  non-linear.
The simple pendulum Energy approach q T m mg PH421:Oscillations F09
Numerical Solutions of Ordinary Differential Equations
Chapter 16 Integration of Ordinary Differential Equations.
Differential Equations and Boundary Value Problems
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Explicit ODE Solvers Daniel Baur ETH Zurich, Institut.
PART 7 Ordinary Differential Equations ODEs
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Explicit ODE Solvers Daniel Baur ETH Zurich, Institut.
1 421: Oscillations 2 Are oscillations ubiquitous or are they merely a paradigm? Superposition of brain neuron activity.
Motion of a mass at the end of a spring Differential equation for simple harmonic oscillation Amplitude, period, frequency and angular frequency Energetics.
Erin Catto Blizzard Entertainment Numerical Integration.
EE3561_Unit 8Al-Dhaifallah14351 EE 3561 : Computational Methods Unit 8 Solution of Ordinary Differential Equations Lesson 3: Midpoint and Heun’s Predictor.
Physics 311 Classical Mechanics Welcome! Syllabus. Discussion of Classical Mechanics. Topics to be Covered. The Role of Classical Mechanics in Physics.
Oscillators fall CM lecture, week 4, 24.Oct.2002, Zita, TESC Review simple harmonic oscillators Examples and energy Damped harmonic motion Phase space.
Computational Method in Chemical Engineering (TKK-2109)
DOUBLE PENDULUM By: Rosa Nguyen EPS 109 – Fall 2011.
Final review Help sessions scheduled for Dec. 8 and 9, 6:30 pm in MPHY 213 Your hand-written notes allowed No numbers, unless you want a problem with numbers.
Numerical Solutions of ODE
MA/CS 375 Fall MA/CS 375 Fall 2002 Lecture 12.
Ordinary Differential Equations (ODEs) 1Michael Sokolov / Numerical Methods for Chemical Engineers / Explicit ODE Solvers Michael Sokolov ETH Zurich, Institut.
Effect of nonlinearity on Head-Tail instability 3/18/04.
ARO309 - Astronautics and Spacecraft Design
Integration for physically based animation CSE 3541 Matt Boggus.
5. Integration method for Hamiltonian system. In many of formulas (e.g. the classical RK4), the errors in conserved quantities (energy, angular momentum)
Introduction to the Runge-Kutta algorithm for approximating derivatives PHYS 361 Spring, 2011.
Lecture 6: Time Response 1.Time response determination Review of differential equation approach Introduce transfer function approach 2.MATLAB commands.
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Dynamics Primer Lectures Dermot O’Dwyer. Objectives Need some theory to inderstand general dynamics Need more theory understand the implementation of.
Ch. 8: Summary So Far We’re doing the “2 body”, conservative central force problem! 2 bodies (m 1 & m 2 ) with a central force directed along the line.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapters 22 and 23.
Unit 3 Electricity & Magnetism Magnetic Field, Currents & Plasmas Physics 5h Students know changing magnetic fields produce electric fields, thereby inducing.
PA114 Waves and Quanta · Unit 1: Oscillations PA114 Waves and Quanta Unit 1: Oscillations and Oscillators (Introduction) Tipler, Chapter 14
Chapter 8 Solving Second order differential equations numerically.
Computational Physics (Lecture 12) PHY4370. The Euler and Picard methods Numerically, we can rewrite the velocity as: Here, i is the ith time step. Let.
Waves and Quanta PA114 Unit 1: Oscillations and Oscillators
Test 2 review Test: 7 pm in 203 MPHY
ELEC 401 MICROWAVE ELECTRONICS Lecture 2
Engineering Problem Solution
The nonlinear beam-plasma system: O’Neil formulation
Integrators of higher order
A PRESENTATION ON VIBRATION
Larmor Orbits The general solution of the harmonic oscillator equation
Computational Physics (Lecture 13)
Ordinary Differential Equations
Computational Physics (Lecture 12)
ZCE 111 Assignment 12.
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L4&5.
ELEC 401 MICROWAVE ELECTRONICS Lecture 2
Ordinary differential equaltions:
Sec:5.4 RUNGE-KUTTA METHODS.
Numerical Analysis Lecture 37.
Investigating the Behavior of Electrons in Different Quantum Systems
Numerical Analysis Lecture 38.
Numerical solution of first-order ordinary differential equations
Chapter 18: Elementary Differential Equations
Physics 319 Classical Mechanics
Sec 23: Runge–Kutta Methods
Numerical solution of first-order ordinary differential equations 1. First order Runge-Kutta method (Euler’s method) Let’s start with the Taylor series.
Presentation transcript:

South China University of Technology Oscillator motions Xiaobao Yang Department of Physics

Simulation of Quasi-crystals

Annealing simulation Phase Transitions

Charged particle in electromagnetic field

One particle fx1(ii)=q1*E0+q1*B*vy1(ii); fy1(ii)=-q1*B*vx1(ii); vx1(ii+1)=vx1(ii)+fx1(ii)/m1*dt; vy1(ii+1)=vy1(ii)+fy1(ii)/m1*dt; x1(ii+1)=x1(ii)+vx1(ii)*dt; y1(ii+1)=y1(ii)+vy1(ii)*dt; fx1(ii+1)=q1*E0+q1*B*vy1(ii+1); fy1(ii+1)=-q1*B*vx1(ii+1); vx1(ii+1)=vx1(ii)+0.5*(fx1(ii)+fx1(ii+1))/m1*dt; vy1(ii+1)=vy1(ii)+0.5*(fy1(ii)+fy1(ii+1))/m1*dt; x1(ii+1)=x1(ii)+0.5*(vx1(ii)+vx1(ii+1))*dt; y1(ii+1)=y1(ii)+0.5*(vy1(ii)+vy1(ii+1))*dt;

Two particles fx1(ii)=q1*E0+q1*B*vy1(ii)-k*q1*q2*(x2(ii)-x1(ii))/norm([x2(ii)-x1(ii) y2(ii)-y1(ii)])^3; fy1(ii)=-q1*B*vx1(ii)-k*q1*q2*(y2(ii)-y1(ii))/norm([x2(ii)-x1(ii) y2(ii)-y1(ii)])^3; fx2(ii)=q2*E0+q2*B*vy2(ii)+k*q1*q2*(x2(ii)-x1(ii))/norm([x2(ii)-x1(ii) y2(ii)-y1(ii)])^3; fy2(ii)=-q2*B*vx2(ii)+k*q1*q2*(y2(ii)-y1(ii))/norm([x2(ii)-x1(ii) y2(ii)-y1(ii)])^3; vx1(ii+1)=vx1(ii)+fx1(ii)/m1*dt; vy1(ii+1)=vy1(ii)+fy1(ii)/m1*dt; x1(ii+1)=x1(ii)+vx1(ii)*dt; y1(ii+1)=y1(ii)+vy1(ii)*dt; vx2(ii+1)=vx2(ii)+fx2(ii)/m1*dt; vy2(ii+1)=vy2(ii)+fy2(ii)/m1*dt; x2(ii+1)=x2(ii)+vx2(ii)*dt; y2(ii+1)=y2(ii)+vy2(ii)*dt;

the motion of electrons in atoms the behavior of currents and voltages in electronic circuits planetary orbits a pendulum oscillatory and periodic phenomena

Simple Harmonic Motion Euler method

Problem with Euler Method Energy not conserved with Euler method. Why? Euler-Cromer method illustration

Review of the numerical methods dynamical variable vector The accuracy of this algorithm is relatively low: Euler method

If we carry out the integration with g(y, t) given from this equation, we obtain a new algorithm with preparation of We can always include more points in the integral to obtain algorithms with apparently higher accuracy, but we will need the values of more points in order to start the algorithm. This becomes impractical if we need more than two points in order to start the algorithm. Is there a more practical method? Alternative way to improve the accuracy

The Runge-Kutta method A more practical method that requires only the first point in order to start or to improve the algorithm is the Runge–Kutta method. Remember Martin Wilhelm Kutta Carl Runge

R-K method in Appendix A

Application Illustration! Rk32.m

We can also formally write the solution at t + τ as where α i (with i = 1, 2,...,m) and ν i j (with i = 2, 3,...,m and j < i ) are parameters to be determined. What is the physical meaning of the expansion?

2 nd Order Runge-Kutta method Set m=2 Now if we perform the Taylor expansion for c 2 up to the term O(τ 2 ), we have

2 nd Order Runge-Kutta method Typically, there are m Eqs and m + m(m −1)/2 unknowns. E.g., we may choose: Note:These coefficients would result in a modified Euler method …

Review of R-K method

Application

4 th Order Runge-Kutta method The well-known fourth-order Runge–Kutta algorithm is given by

Making the pendulum more interesting ►Adding dissipation ►Adding a driving force ►Nonlinear pendulum illustrations

Homework Exercise 3.1, 3.2, 3.6, Sending your home work to Both Results and source codes are required. For lecture notes, refer to 主题:学号 + 姓名 + 第?次作业