1cs542g-term1-2007 Notes  Final exam: December 10, 10am-1pm X736 (CS Boardroom)  Another extra class this Friday 1-2pm.

Slides:



Advertisements
Similar presentations
Numeric Integration Methods Jim Van Verth Red Storm Entertainment
Advertisements

Formal Computational Skills
Chapter 6 Differential Equations
MATLAB EXAMPLES Initial-value problems
Numerical Computation Lecture 4: Root Finding Methods - II United International College.
Lecture 5 Newton-Raphson Method
1cs533d-winter-2005 Notes  Assignment 1 is not out yet :-)  courses/533d-winter-2005.
Integration Techniques
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 5 Numerical Integration Prof. Chung-Kuan Cheng 1.
Ordinary Differential Equations
ME751 Advanced Computational Multibody Dynamics
1cs542g-term Notes. 2 Solving Nonlinear Systems  Most thoroughly explored in the context of optimization  For systems arising in implicit time.
1cs542g-term Notes  Notes for last part of Oct 11 and all of Oct 12 lecture online now  Another extra class this Friday 1-2pm.
1cs533d-term Notes  For using Pixie (the renderer) make sure you type “use pixie” first  Assignment 1 questions?
1cs542g-term Notes  Extra class this Friday 1-2pm  Assignment 2 is out  Error in last lecture: quasi-Newton methods based on the secant condition:
1Notes. 2 Triangle intersection  Many, many ways to do this  Most robust (and one of the fastest) is to do it based on determinants  For vectors a,b,c.
1cs533d-winter D: Animation Physics  533d-winter-2005  Course schedule Slides online, but you need to.
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 5 Numerical Integration Spring 2010 Prof. Chung-Kuan Cheng 1.
1cs542g-term Notes  Extra class this Friday 1-2pm  If you want to receive s about the course (and are auditing) send me .
CSE245:Lec4 02/24/2003. Integration Method Problem formulation.
CS533D - Animation Physics
Multistep methods previous methods use information at xi to predict yi+1 multistep methods use information from xi-1, xi-2, etc. leads to better results.
Open Methods Chapter 6 The Islamic University of Gaza
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Implicit ODE Solvers Daniel Baur ETH Zurich, Institut.
1cs533d-winter-2005 Notes  Assignment 2 instability - don’t worry about it right now  Please read D. Baraff, “Fast contact force computation for nonpenetrating.
1Notes. 2 Time integration for particles  Back to the ODE problem, either  Accuracy, stability, and ease-of- implementation are main issues  Obviously.
Finite Difference Methods to Solve the Wave Equation To develop the governing equation, Sum the Forces The Wave Equation Equations of Motion.
Chapter 16 Integration of Ordinary Differential Equations.
Ordinary Differential Equations (ODEs)
Chapter 3 Root Finding.
Dynamics 101 Jim Van Verth Red Storm Entertainment
Numerical Solution of Ordinary Differential Equation
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 10. Ordinary differential equations. Initial value problems.
1 Chapter 6 Numerical Methods for Ordinary Differential Equations.
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Explicit ODE Solvers Daniel Baur ETH Zurich, Institut.
Section 6.1: Euler’s Method. Local Linearity and Differential Equations Slope at (2,0): Tangent line at (2,0): Not a good approximation. Consider smaller.
MA/CS 375 Fall MA/CS 375 Fall 2002 Lecture 13.
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 8. Nonlinear equations.
First, some left-overs… Lazy languages Nesting 1.
Solving Non-Linear Equations (Root Finding)
ITERATIVE TECHNIQUES FOR SOLVING NON-LINEAR SYSTEMS (AND LINEAR SYSTEMS)
Erin Catto Blizzard Entertainment Numerical Integration.
ME451 Kinematics and Dynamics of Machine Systems
Modeling and simulation of systems Numerical methods for solving of differential equations Slovak University of Technology Faculty of Material Science.
Newton's Method for Functions of Several Variables Joe Castle & Megan Grywalski.
Numerical Methods Applications of Loops: The power of MATLAB Mathematics + Coding 1.
Review Taylor Series and Error Analysis Roots of Equations
Computer Animation Algorithms and Techniques
Integration of 3-body encounter. Figure taken from
1 Nonlinear Equations Jyun-Ming Chen. 2 Contents Bisection False Position Newton Quasi-Newton Inverse Interpolation Method Comparison.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. ~ Ordinary Differential Equations ~ Stiffness and Multistep.
Chapter 3 Roots of Equations. Objectives Understanding what roots problems are and where they occur in engineering and science Knowing how to determine.
Boundary Value Problems l Up to this point we have solved differential equations that have all of their initial conditions specified. l There is another.
Scientific Computing Multi-Step and Predictor-Corrector Methods.
Large Timestep Issues Lecture 12 Alessandra Nardi Thanks to Prof. Sangiovanni, Prof. Newton, Prof. White, Deepak Ramaswamy, Michal Rewienski, and Karen.
linear  2.3 Newton’s Method ( Newton-Raphson Method ) 1/12 Chapter 2 Solutions of Equations in One Variable – Newton’s Method Idea: Linearize a nonlinear.
Solving Non-Linear Equations (Root Finding)
5. Integration method for Hamiltonian system. In many of formulas (e.g. the classical RK4), the errors in conserved quantities (energy, angular momentum)
Numerical Analysis – Differential Equation
Announcements Read Chapters 11 and 12 (sections 12.1 to 12.3)
ME451 Kinematics and Dynamics of Machine Systems Numerical Integration. Stiffness: Implicit Methods. October 30, 2013 Radu Serban University of Wisconsin-Madison.
Particle Systems. Applications Particle systems are broadly defined for: Explosion Cloth Fluid And more… It is integrated into many animation software,
Recursive Methods for Finding Roots of Functions Bisection & Newton’s Method.
Optimization in Engineering Design 1 Introduction to Non-Linear Optimization.
Game Technology Animation V Generate motion of objects using numerical simulation methods Physically Based Animation.
Sec 21: Generalizations of the Euler Method Consider a differential equation n = 10 estimate x = 0.5 n = 10 estimate x =50 Initial Value Problem Euler.
Solving Ordinary Differential Equations
INTEGRATOR CLASSIFICATION & CHARACTERISTICS
CS B553: Algorithms for Optimization and Learning
CSE245: Computer-Aided Circuit Simulation and Verification
Presentation transcript:

1cs542g-term Notes  Final exam: December 10, 10am-1pm X736 (CS Boardroom)  Another extra class this Friday 1-2pm

2cs542g-term Other implicit methods  Implicit mid-point  Trapezoidal rule  A-stable, but only conditionally monotone Trapezoidal rule: 1/2 step of FE, 1/2 step of BE Implicit mid-point: very closely related  Aliasing on imaginary axis

3cs542g-term Even more  Implicit multistep methods: Adams(-Bashforth)-Moulton Backwards Differentiation Formula (BDF)  Implicit Runge-Kutta Might need to solve for multiple intermediate values simultaneously…

4cs542g-term Solving Nonlinear Equations  First in 1D: g(x)=0 Bisection Secant method Newton’s method  General case: g and x both n-dimensional Newton is the standard  More can go wrong (than in optimization) E.g. Jacobian can be unsymmetric  Similar robustifying tricks apply Modifying the Jacobian, line search, …  Convergence is simpler to identify!

5cs542g-term Newton applied to BE  Initial guess: At least use previous y Can even use an explicit method to predict y  For a single step, stability might not be a problem  Iteration:

6cs542g-term Extra options  Semi-implicit methods, “lagging” Run a single step of Newton Equivalently, linearize around current y, solve linear problem for next y Linear stability analysis unchanged, but practice suggests not as robust (e.g. mass-spring problem)  If Newton fails to converge, try again with smaller time step Equations become easier to solve

7cs542g-term F=ma  Not always a good thing to reduce 2nd order equations to 1st order system  Example: “symplectic Euler” or “velocity Verlet” (naming is still a bit mixed up)  If acceleration depends on velocity, may need to go implicit to retain second order accuracy

8cs542g-term Example problem: gravity  Take n point masses (“n-body problem”)  Force between two points:  Total force on a point: sum of forces from all (n-1) other points  Big bottleneck: O(n 2 ) work to simply evaluate acceleration

9cs542g-term Fast approximation  A cluster of points far away can be approximated as a single point at the centre of mass  How accurate?