E91: Dynamics. E91: Dynamics. Numerical Integration & State Space Representation

Similar documents
Rectilinear motion. Lecture 2: Kinematics of Particles. External motion is known, find force. External forces are known, find motion

Consistency & Convergence

ORDINARY DIFFERENTIAL EQUATIONS EULER S METHOD

Lecture 2: Numerical Methods for Differentiations and Integrations

Numerical Solution of Ordinary Differential Equations

Handout # 6 (MEEN 617) Numerical Integration to Find Time Response of SDOF mechanical system. and write EOM (1) as two first-order Eqs.

Appendix B. The Finite Difference Scheme

6.3.4 Modified Euler s method of integration

CHAPTER 5 NUMERICAL EVALUATION OF DYNAMIC RESPONSE

Chapter 12. Ordinary Differential Equation Boundary Value (BV) Problems

Numerical Simulation of Wave Propagation Using the Shallow Water Equations

PART 8. Partial Differential Equations PDEs

Solving Linear Ordinary Differential Equations using Singly Diagonally Implicit Runge-Kutta fifth order five-stage method

NUMERICAL DIFFERENTIATION

Numerical Methods. ME Mechanical Lab I. Mechanical Engineering ME Lab I

Lecture 21: Numerical methods for pricing American type derivatives

ME 501A Seminar in Engineering Analysis Page 1

November 5, 2002 SE 180: Earthquake Engineering SE 180. Final Project

Note 10. Modeling and Simulation of Dynamic Systems

Numerical Solution of Ordinary Differential Equations

Hongyi Miao, College of Science, Nanjing Forestry University, Nanjing ,China. (Received 20 June 2013, accepted 11 March 2014) I)ϕ (k)

NUMERICAL METHODS FOR FIRST ORDER ODEs

Parametric fractional imputation for missing data analysis. Jae Kwang Kim Survey Working Group Seminar March 29, 2010

One-sided finite-difference approximations suitable for use with Richardson extrapolation

On the Interval Zoro Symmetric Single-step Procedure for Simultaneous Finding of Polynomial Zeros

A new Approach for Solving Linear Ordinary Differential Equations

Numerical Solutions of a Generalized Nth Order Boundary Value Problems Using Power Series Approximation Method

Lecture 2 Solution of Nonlinear Equations ( Root Finding Problems )

4DVAR, according to the name, is a four-dimensional variational method.

Finite Element Modelling of truss/cable structures

Summary with Examples for Root finding Methods -Bisection -Newton Raphson -Secant

Outline. Review Numerical Approach. Schedule for April and May. Review Simple Methods. Review Notation and Order

Irregular vibrations in multi-mass discrete-continuous systems torsionally deformed

NON-CENTRAL 7-POINT FORMULA IN THE METHOD OF LINES FOR PARABOLIC AND BURGERS' EQUATIONS

2 Finite difference basics

: Numerical Analysis Topic 2: Solution of Nonlinear Equations Lectures 5-11:

Solution of the Navier-Stokes Equations

EEE 241: Linear Systems

6.3.7 Example with Runga Kutta 4 th order method

Transfer Functions. Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: ( ) system

Line Drawing and Clipping Week 1, Lecture 2

New Method for Solving Poisson Equation. on Irregular Domains

Implicit Integration Henyey Method

CinChE Problem-Solving Strategy Chapter 4 Development of a Mathematical Model. formulation. procedure

Numerical Heat and Mass Transfer

SOLVING NON-LINEAR SYSTEMS BY NEWTON s METHOD USING SPREADSHEET EXCEL Tay Kim Gaik Universiti Tun Hussein Onn Malaysia

A Hybrid Variational Iteration Method for Blasius Equation

Week3, Chapter 4. Position and Displacement. Motion in Two Dimensions. Instantaneous Velocity. Average Velocity

COMPARISON OF SOME RELIABILITY CHARACTERISTICS BETWEEN REDUNDANT SYSTEMS REQUIRING SUPPORTING UNITS FOR THEIR OPERATIONS

Module 3 LOSSY IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur

12. The Hamilton-Jacobi Equation Michael Fowler

Additional Codes using Finite Difference Method. 1 HJB Equation for Consumption-Saving Problem Without Uncertainty

The Minimum Universal Cost Flow in an Infeasible Flow Network

Chapter Newton s Method

Grid Generation around a Cylinder by Complex Potential Functions

Instituto Tecnológico de Aeronáutica FINITE ELEMENTS I. Class notes AE-245

Calculus of Variations Basics

Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Spring 2018 Instructor: Dr. Sateesh Mane.

Adjoint Methods of Sensitivity Analysis for Lyapunov Equation. Boping Wang 1, Kun Yan 2. University of Technology, Dalian , P. R.

Formal solvers of the RT equation

A NUMERICAL COMPARISON OF LANGRANGE AND KANE S METHODS OF AN ARM SEGMENT

Chapter 4 The Wave Equation

% & 5.3 PRACTICAL APPLICATIONS. Given system, (49) , determine the Boolean Function, , in such a way that we always have expression: " Y1 = Y2

Least squares cubic splines without B-splines S.K. Lucas

NUMERICAL SCHEME INFLUENCE ON PSEUDO DYNAMIC TESTS RESULTS

Newton s Method for One - Dimensional Optimization - Theory

2.29 Numerical Fluid Mechanics

Computational Geodynamics: Advection equations and the art of numerical modeling

Comparison of Second Order Numerical Techniques for Linear and Non-Linear ODEs

Modeling Convection Diffusion with Exponential Upwinding

THE VIBRATIONS OF MOLECULES II THE CARBON DIOXIDE MOLECULE Student Instructions

Lecture 16 Statistical Analysis in Biomaterials Research (Part II)

As it can be observed from Fig. a) and b), applying Newton s Law for the tangential force component results into: mg sin mat

A MODIFIED METHOD FOR SOLVING SYSTEM OF NONLINEAR EQUATIONS

2.29 Numerical Fluid Mechanics Fall 2011 Lecture 12

ACTM State Calculus Competition Saturday April 30, 2011

THE ARIMOTO-BLAHUT ALGORITHM FOR COMPUTATION OF CHANNEL CAPACITY. William A. Pearlman. References: S. Arimoto - IEEE Trans. Inform. Thy., Jan.

Modelli Clamfim Equazioni differenziali 7 ottobre 2013

CIS526: Machine Learning Lecture 3 (Sept 16, 2003) Linear Regression. Preparation help: Xiaoying Huang. x 1 θ 1 output... θ M x M

Report on Image warping

arxiv: v1 [math.ho] 18 May 2008

The equation of motion of a dynamical system is given by a set of differential equations. That is (1)

Design and Optimization of Fuzzy Controller for Inverse Pendulum System Using Genetic Algorithm

Modelli Clamfim Equazioni differenziali 22 settembre 2016

Modeling of Dynamic Systems

ON THE IMPLICIT INTEGRATION OF DIFFERENTIAL-ALGEBRAIC EQUATIONS OF MULTIBODY DYNAMICS. by Dan Negrut

Army Ants Tunneling for Classical Simulations

Difference Equations

Introduction to Vapor/Liquid Equilibrium, part 2. Raoult s Law:

Calculation of time complexity (3%)

6 Supplementary Materials

Comparison Solutions Between Lie Group Method and Numerical Solution of (RK4) for Riccati Differential Equation

Advanced Topics in Optimization. Piecewise Linear Approximation of a Nonlinear Function

Physics 2A Chapter 3 HW Solutions

Digital Signal Processing

Lecture 10 Support Vector Machines II

Review of Taylor Series. Read Section 1.2

CHAPTER 4d. ROOTS OF EQUATIONS

Errors for Linear Systems

Modelli Clamfim Equazione del Calore Lezione ottobre 2014

Transcription:

E91: Dnamcs Numercal Integraton & State Space Representaton

The Algorthm In steps of Δ f ( new ) f ( old ) df ( d old ) Δ

Numercal Integraton of ODEs d d f() h Δ Intal value problem: Gven the ntal state at 0 ( 0 ), to compute the whole trajector () ' 1 -, (0) 0 Eplct Euler Soluton

Euler s Method Eplct: evaluate dervatve usng values at the begnnng of the tme step h f ( ) O( ) 1 h Not ver accurate (global accurac O(h)) & requres small tme steps for stablt Implct: Evaluate dervatve usng values at the end of the tme step h f ( ) O( ) 1 h 1 Ma requre teraton snce the answer depends upon what s calculated at the end. Stll not ver accurate (global accurac O(h)). Uncondtonall stable for all tme step szes.

Truncaton errors Local truncaton error Global truncaton error 1 1 o 1 o 1

Stablt A numercal method s stable f errors occurrng at one stage of the process do not tend to be magnfed at later stages. A numercal method s unstable f errors occurrng at one stage of the process tend to be magnfed at later stages. In general, the stablt of a numercal scheme depends on the step sze. Usuall, large step szes lead to unstable solutons. Implct methods are n general more stable than eplct methods.

Second-order Runge-Kutta (mdpont method) Second-order accurac s obtaned b usng the ntal dervatve at each step to fnd a mdpont halfwa across the nterval, then usng the mdpont dervatve across the full wdth of the nterval. In the above fgure, flled dots represent fnal functon values, open dots represent functon values that are dscarded once ther dervatves have been calculated and used. A method s called nth order f ts error term s O(h n1 )

Classc 4th-order R-K method ). ( of s error Global ). ( of s error Local sze. step the s where ), ( ), ( ), ( ), ( ) ( 6 3 4 1 3 4 3 1 1 4 3 1 1 h O h O h hk h f k k h h f k k h h f k f k k k k k h

State Space

Modelng State

Modelng State cont d

State Space and Tme

ODE n one varable E91: Dnamcs Integraton n State Space

Mass-Sprng-Damper Sstem ) ( t f k c m & && f(t) k c & Free-bod dagram m f(t) m t f m C m K ) ( 1 1 1 & & & m t f m C m K ) ( 0 1 0 &

Dnamc Smulaton Eample Gven 0 ( 0, 0), solve for (t) for t[0, T]. Intal condtons ODE solver (ode45) dfferental equatons (dff_msd.m) output (demo_msd.m)

Smulaton Results 0.5 m 1.0 kg C 1.0 N*sec/m K 100.0 N/m Dsplacement 0-0.5 0 1 3 4 5 6 7 8 9 10 4 Veloct 0 - -4-6 0 1 3 4 5 6 7 8 9 10 Tme (s)

Stff ODEs Eample

Stff ODEs Stff sstems are characterzed b some sstem components whch combne ver fast and ver slow behavor. Requres effcent step sze control that adapt the step sze dnamcall, as onl n certan phases the requre ver small step szes. Implct method s the cure! Nonlnear sstems: solvng mplct models b lnearzaton (semmplct methods) Rosenbrock generalzatons of RK method Bader-Deuflhard sem-mplct method Predctor-corrector methods

Matlab Solvers for Stff Problems ode15s Varable-order solver based on the numercal dfferentaton formulas (NDFs). Optonall t uses the backward dfferentaton formulas (BDFs). Multstep solver. If ou suspect that a problem s stff or f ode45 faled or was ver neffcent, tr ode15s frst. ode3s Based on a modfed Rosenbrock formula of order One-step solver Ma be more effcent than ode15s at crude tolerances ode3t An mplementaton of the trapezodal rule usng a "free" nterpolant Use ths solver f the problem s onl moderatel stff and ou need a soluton wthout numercal dampng

Matlab Solvers for Nonstff Problems ode45 Eplct Runge-Kutta (4,5) formula One-step solver Best functon to appl as a "frst tr" for most problems ode3 Eplct Runge-Kutta (,3) One-step solver Ma be more effcent than ode45 at crude tolerances and n the presence of mld stffness. ode113 Varable order Adams-Bashforth-Moulton PECE solver Multstep solver It ma be more effcent than ode45 at strngent tolerances and when the ODE functon s partcularl epensve to evaluate.

References Numercal Intal Value Problems n Ordnar Dfferental Equatons, Gear, C.W., Englewood Clffs, NJ: Prentce-Hall,1971. Numercal Recpes n C : The Art of Scentfc Computng Wllam H. Press, Bran P. Flanner, Saul A. Teukolsk, Wllam T. Vetterlng, Cambrdge Unverst Press, 199. (onlne at http://www.lbrar.cornell.edu/nr/bookcpdf.html) Dr. Vja Kumar Unverst of Pennslvana and Dr. Peng Song Rutgers Unverst

Smulator vs. a Smulaton Objectve Monolthc vs. Modular User Interface