BMEN 398: MATLAB Module: Higher Order Differential Equations; SIMULINK Fall 2005 Updated 8/21/2005 Hart

Similar documents
: TEACHING DIFFERENTIAL EQUATIONS WITH AN ENGINEERING FOCUS

ME8230 Nonlinear Dynamics

Lecture Notes on Metric Spaces

Modification of a Sophomore Linear Systems Course to Reflect Modern Computing Strategies

Modeling Mechanical Systems

Finite Element Modules for Demonstrating Critical Concepts in Engineering Vibration Course

Lab 1: Dynamic Simulation Using Simulink and Matlab

CHAPTER 6 STATE SPACE: FREQUENCY RESPONSE, TIME DOMAIN

The student will experimentally determine the parameters to represent the behavior of a damped oscillatory system of one degree of freedom.

Using Simulink to analyze 2 degrees of freedom system

Math 115 HW #10 Solutions

1-DOF Forced Harmonic Vibration. MCE371: Vibrations. Prof. Richter. Department of Mechanical Engineering. Handout 8 Fall 2011

In the presence of viscous damping, a more generalized form of the Lagrange s equation of motion can be written as

. For each initial condition y(0) = y 0, there exists a. unique solution. In fact, given any point (x, y), there is a unique curve through this point,

University of Alberta ENGM 541: Modeling and Simulation of Engineering Systems Laboratory #5

Developing a Multisemester Interwoven Dynamic Systems Project to Foster Learning and Retention of STEM Material

SKMM 3023 Applied Numerical Methods

University of Alberta ENGM 541: Modeling and Simulation of Engineering Systems Laboratory #7. M.G. Lipsett & M. Mashkournia 2011

Numerical Methods with Matlab: Implementations and Applications. Gerald W. Recktenwald

Using web-based Java pplane applet to graph solutions of systems of differential equations

Dynamics of structures

AC : DEVELOPMENT OF VISUALIZATION TOOLS FOR ONE AND MULTIPLE DOF DYNAMIC SYSTEMS

Solving Differential Equations Using MATLAB

Simulink Modeling Tutorial

MATHEMATICAL MODEL OF DYNAMIC VIBRATION ABSORBER-RESPONSE PREDICTION AND REDUCTION

APPENDIX 1 MATLAB AND ANSYS PROGRAMS

Dynamic Modelling of Mechanical Systems

Modeling of Dynamic Systems in Simulation Environment MATLAB/Simulink SimMechanics

IJSRD - International Journal for Scientific Research & Development Vol. 4, Issue 07, 2016 ISSN (online):

1-DOF Vibration Characteristics. MCE371: Vibrations. Prof. Richter. Department of Mechanical Engineering. Handout 7 Fall 2017

2. Determine whether the following pair of functions are linearly dependent, or linearly independent:

Software Verification

Essential Ordinary Differential Equations

Teaching State Variable Feedback to Technology Students Using MATLAB and SIMULINK

Green Lab. MAXIMA & ODE2. Cheng Ren, Lin. Department of Marine Engineering National Kaohsiung Marine University

Section 5. Graphing Systems

MATH 100 Introduction to the Profession

Simulink Tutorial 1 CPE562

Graphical User Interface (GUI) for Torsional Vibration Analysis of Rotor Systems Using Holzer and MatLab Techniques

Modelling, identification and simulation of the inverted pendulum PS600

These notes are based mostly on [3]. They also rely on [2] and [1], though to a lesser extent.

MA 102 Mathematics II Lecture Feb, 2015

Systems of Ordinary Differential Equations

Lecture 2. Introduction to Differential Equations. Roman Kitsela. October 1, Roman Kitsela Lecture 2 October 1, / 25

Car Dynamics using Quarter Model and Passive Suspension; Part V: Frequency Response Considering Driver-seat

Section Mass Spring Systems

ES.1803 Topic 13 Notes Jeremy Orloff

Modeling and Experimentation: Mass-Spring-Damper System Dynamics

Numerical Integration of Ordinary Differential Equations for Initial Value Problems

Modeling and Simulation Revision IV D R. T A R E K A. T U T U N J I P H I L A D E L P H I A U N I V E R S I T Y, J O R D A N

System Simulation using Matlab

a. Follow the Start-Up Procedure in the laboratory manual. Note the safety rules.

Software Verification

Read textbook CHAPTER 1.4, Apps B&D

18.03SC Practice Problems 14

ES205 Analysis and Design of Engineering Systems: Lab 1: An Introductory Tutorial: Getting Started with SIMULINK

A First Course on Kinetics and Reaction Engineering Supplemental Unit S5. Solving Initial Value Differential Equations

New implicit method for analysis of problems in nonlinear structural dynamics

Structural Dynamics. Spring mass system. The spring force is given by and F(t) is the driving force. Start by applying Newton s second law (F=ma).

Physics 53. Dynamics 2. For every complex problem there is one solution that is simple, neat and wrong. H.L. Mencken

Step 1: Mathematical Modeling

Manifesto on Numerical Integration of Equations of Motion Using Matlab

Topic 5 Notes Jeremy Orloff. 5 Homogeneous, linear, constant coefficient differential equations

Trajectory Planning, Setpoint Generation and Feedforward for Motion Systems

CE 6701 Structural Dynamics and Earthquake Engineering Dr. P. Venkateswara Rao

y 2y = 4 x, Name Form Solution method

Math 343 Lab 7: Line and Curve Fitting

LAB #6 The Swaying Building

How Do You Teach Vibrations to Technology Students?

SEISMIC RESPONSE OF SINGLE DEGREE OF FREEDOM STRUCTURAL FUSE SYSTEMS

ET3-7: Modelling II(V) Electrical, Mechanical and Thermal Systems

Linear System Theory

MATHEMATICAL MODELLING, MECHANICS AND MOD- ELLING MTHA4004Y

Dynamical Systems. Mechanical Systems

Module 4: Dynamic Vibration Absorbers and Vibration Isolator Lecture 19: Active DVA. The Lecture Contains: Development of an Active DVA

18.12 FORCED-DAMPED VIBRATIONS

DIFFERENTIAL EQUATIONS

WILEY. Differential Equations with MATLAB (Third Edition) Brian R. Hunt Ronald L. Lipsman John E. Osborn Jonathan M. Rosenberg

THE subject of the analysis is system composed by

DIFFERENTIAL EQUATIONS

MEC3403. Dynamics II. Introductory book. Faculty of Engineering and Surveying

Vector Fields and Solutions to Ordinary Differential Equations using MATLAB/Octave

Linear System Theory

DIFFERENTIAL EQUATIONS

16.30/31, Fall 2010 Recitation # 13

Evaluate the following limit without using l Hopital s Rule. x x. = lim = (1)(1) = lim. = lim. = lim = (3 1) =

Tuning TMDs to Fix Floors in MDOF Shear Buildings

Numerical Methods for the Solution of Differential Equations

Elementary ODE Review

F = ma, F R + F S = mx.

DIFFERENTIAL EQUATIONS

General Response of Second Order System

BTU 1113 Physics. Chapter 2: Kinematics. by Nadzirah Bte Mohd Mokhtar Faculty of Engineering Technology

General Physics I, Spring Vectors

EE/ME/AE324: Dynamical Systems. Chapter 4: Block Diagrams

Modeling and Simulation Revision III D R. T A R E K A. T U T U N J I P H I L A D E L P H I A U N I V E R S I T Y, J O R D A N

Dynamic Simulation of the EMS Maglev Vehicle-Guideway-Controller Coupling System

Developing a Virtual Model of a Second Order System to Simulation Real Laboratory Measurement Problems

18. Impulse and step responses

The Mathematical Sciences Initiative. and. The Engineering Calculus Strea1n M!IC:HIGAN STATE M ICHI GAN STATE UNIVERSITY.

Transcription:

BMEN 398: MATLAB Module: Higher Order Differential Equations; SIMULINK Fall 2005 Updated 8/21/2005 Hart Higher Order ODEs: (Rao, 2002) Although we can now write MATLAB code to find numerical solutions to (a set of) 1 st order differential equations, many physical systems are governed by higher order differential equations. Fortunately, an ordinary differential equation of order n can always be re-written as a system of n first order ordinary differential equations. Consider a general n th order ODE: a n (x) d n y n + a n1(x) d n1 y n1 +...+ a 1(x) dy + a 0(x)y = g(x) By using the following substitutions, y = y 1 dy = dy 1 = y 2 d 2 y 2 = dy 2 = y 3... d n1 y = dy n1 n1 = y n d n y = dy n n then the original n th order ODE can be written as an equivalent system of n 1 st order ODE s: dy 1 = f 1 (y 1, y 2,..., y n, x) y 2 dy 2 = f 2 (y 1, y 2,..., y n, x) y 3... dy n1 = f n1 (y 1, y 2,..., y n, x) y n dy n = f n (y 1, y 2,..., y n, x) F(y 1, y 2,..., y n, x) or re-written in vector notation as: 1

d y = f ( y, x ) where y = y 1 $ y 2 y n % & ' and f = $ f 1 f 2 f n % & ' Example (Dabney and Harman, 1998): Consider a spring-mass-damper system as shown: Ignoring friction, the governing equation of motion (a 2 nd order differential equation) is: where x = displacement = x = velocity d 2 x = x = acceleration 2 m d 2 x 2 or + c + kx = F mx + c + kx = F and m is mass; c is damping; k is stiffness, and F is a forcing function. In order to solve this, we will re-write the 2 nd order equation as two 1 st order equations: 2

First, write the 2 nd order equation in terms of the 2 nd order derivative term: mx + cx + kx = F x = c m x k m x F now, with 1 2 x 2, then = c m x 2 k m x 1 F This is now just a system of two 1 st order differential equations, and it s a straightforward modification of the programs developed for the cell tissue example to solve. The needed constants are: c = 1.0 k = 2lb/ft m = 5slugs and the initial conditions are: x t =0 = 1 t =0 = 0 MATLAB code to solve these two coupled, 1 st order differential equations is in the code: Lumpmain.m LumpFun.m 3

SIMULINK MATLAB provides an intuitive and visually appealing graphical environment for solution of control systems problems, SIMULINK. The idea is to use a collection of connected function blocks that can be assembled to fashion a wide variety of engineering systems that hides much of the mathematics required to model the system. These function blocks include mathematical operator blocks, and as a brief introduction to SIMULINK, we are going to solve the same spring-dashpot-mass example as above by means of these blocks. This very simple introduction provides the basis to explore SIMULINK, and you may find it particularly useful for the quantitative study physiological systems. To open SIMULINK, first open MATLAB, and type simulink In class we will discover how to open a file, choose appropriate blocks and make connections so that we end up with the following SIMULINK version of the 2 nd order differential equation that represents the spring-dashpot-mass system: We will run this in class, with the output reflected by what is drawn on the scope: 4

References: Chapman, S.J., MATLAB Programming for Engineers, Brooks/Cole Publishers, Third Edition, 2004. Dabney, J.B., Harman, T.L., Student Edition of SIMULINK User s Guide (Version 2) 1998. The Mathworks, Learning MATLAB 7, 1984-2004. S.S. Rao, Applied Numerical Methods for Engineers and Scientists, Prentice Hall, 2002. Associated files: Lumpmain.m LumpFun.m 5