System Control Theory Lab

Slides:



Advertisements
Similar presentations
PLOTTING PHASE PORTRAITS WITH MATLAB:
Advertisements

Dynamics of a four-bar linkage
Differential Equations Math Review with Matlab: Finding Solutions to Differential Equations S. Awad, Ph.D. M. Corless, M.S.E.E. D. Cinpinski E.C.E. Department.
MEEG 5113 Modal Analysis Set 3.
Ch 3.8: Mechanical & Electrical Vibrations
Terms Test 1 - Wednesday, 13/08/2014, 5pm MCLT101 and 103 Event Name: ENGR110 Test Event Type: Terms test Date(s): Wednesday, 13/08/2014 Time: 17:10-18:00.
Oscillators fall CM lecture, week 3, 17.Oct.2002, Zita, TESC Review forces and energies Oscillators are everywhere Restoring force Simple harmonic motion.
Math 5900 – Summer 2011 Lecture 1: Simple Harmonic Oscillations Gernot Laicher University of Utah - Department of Physics & Astronomy.
Laplace Transforms Important analytical method for solving linear ordinary differential equations. - Application to nonlinear ODEs? Must linearize first.
Illustrations We use quantitative mathematical models of physical systems to design and analyze control systems. The dynamic behavior is generally described.
HossamTalaat - MATLAB Course - KSU - 21/1/24 1 IEEE Student Branch - College of Engineering - KSU Getting started with Simulink By Prof. Hossam Talaat.
Chapter 3 1 Laplace Transforms 1. Standard notation in dynamics and control (shorthand notation) 2. Converts mathematics to algebraic operations 3. Advantageous.
Lecture 2 Differential equations
Simple Harmonic Motion
Scale physical model Mathematical model Numerical model How to Model Physical Systems
Using Simscape™ for Modeling Vibration Problems:
Work and Energy. Outcomes Upon completion of this unit you will be able to: Analyze force problems in terms of energy. Define the term "work" as it relates.
ME 392 Chapter 7 Single Degree of Freedom Oscillator ME 392 Chapter 7 Single Degree of Freedom Oscillator March 26, 2012 week 11 Joseph Vignola.
1 Tips for solving Project 1 Reactor SO 3 SO 2 +O 2.
2-1 (a),(b) (pp.50) Problem: Prove that the systems shown in Fig. (a) and Fig. (b) are similar.(that is, the format of differential equation is similar).
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Feb 18, /34 Mechanical Engineering at Virginia Tech What to bring and what to study One 8.5 X 11 formula sheet, one side only, no examples. Save.
Prepared by Mrs. Azduwin Binti Khasri
Chapter 7. Free and Forced Response of Single-Degree-of-Freedom Linear Systems 7.1 Introduction Vibration: System oscillates about a certain equilibrium.
Mass spring damper system Tutorial Test 1. Derive the differential equation and find the transfer function for the following mass spring damper system.
Autar Kaw Humberto Isaza Transforming Numerical Methods Education for STEM Undergraduates.
SECOND ORDER LINEAR Des WITH CONSTANT COEFFICIENTS.
Mathematical Applications using MATLAB (Cont….)
Laplace Transform. Prepared By : Akshay Gandhi : Kalpesh kale : Jatin Patel : Prashant Dhobi : Azad.
ES 240: Scientific and Engineering Computation. Chapter 1 Chapter 1: Mathematical Modeling, Numerical Methods and Problem Solving Uchechukwu Ofoegbu Temple.
Using CAMP-G to solve the following spring/damper/mass system: F m1m1 m2m2 k1k1 k2k2 b1b1 b2b2 where: k 1 = 40 N/m b 1 = 3 N-s/m m 1 = 2 kg k 2 = 60 N/m.
System Models.
, Free vibration Eigenvalue equation EIGENVALUE EQUATION
Engineering Applications using MATLAB
Lecture 3 Ordinary Differential equations Purpose of lecture: Solve 1 st order ODE by substitution and separation Solve 2 nd order homogeneous ODE Derive.
Dr. Tamer Samy Gaafar Lec. 3 Mathematical Modeling of Dynamic System.
Differential Equations Linear Equations with Variable Coefficients.
Ch 1.1: Basic Mathematical Models; Direction Fields Differential equations are equations containing derivatives. The following are examples of physical.
Biomedical Control Systems (BCS) Module Leader: Dr Muhammad Arif muhammadarif Batch: 10 BM Year: 3 rd Term: 2 nd Credit Hours (Theory):
Analogous Behavior Concepts: Circuit theory, Translational Mechanics Equations: voltage (V) = current (i) x resistance (R) Force (f) = Velocity (v) x Damper.
State Equations BIOE Processes A process transforms input to output States are variables internal to the process that determine how this transformation.
1 Chapter 3 State Variable Models The State Variables of a Dynamic System The State Differential Equation Signal-Flow Graph State Variables The Transfer.
Automatic Control Theory CSE 322
Feedback Control Systems (FCS)
Lesson 20: Process Characteristics- 2nd Order Lag Process
Modeling and Simulation Dr. Mohammad Kilani
ME 270 Vehicle Analysis By: Kevin McClain.
Differential Equations
Control Engineering ( ) G-14
Mathematical Modelling of Mechanical and Electrical Systems
Mathematical Models of Systems Objectives
Damped Forced Vibrations Analysis Using CAMP-G® and Simulink® Modeled Solutions to Problem (
Mathematical Models of Physical Systems
One degree of freedom vibration analysis
Chapter 2 Response to Harmonic Excitation
Mathematical Modeling of Control Systems
Mechanical Engineering at Virginia Tech
Tests will be available Tuesday – Nov. 4th
ME321 Kinematics and Dynamics of Machines
ME321 Kinematics and Dynamics of Machines
Getting Started With Simulink
Solve the differential equation y ' + 5y = 5e x
PLOTTING PHASE PORTRAITS WITH MATLAB:
ME321 Kinematics and Dynamics of Machines
Modeling & Simulation of Mechanical Systems in MATLAB
VIBRATION.
VIBRATION.
Systems of Equations Solve by Graphing.
. Modeling OBJECTIVE Revision on Laplace transform
Aim: How do we explain the motion of a particle attached to a spring?
Presentation transcript:

System Control Theory Lab Mathematical Modeling of Physical Systems

Mass-Spring System Model Consider the following Mass-Spring system shown in the figure. Where Fs(x) is the spring force, F( ̇x’) is the friction coefficient, x(t) is the displacement and Fa(t) is the applied force:

Ma+F(v)+Fs(x)=Fa(t) In the case where: F(v)=Bv= Bdx(t)/dt Fs(x)=Kx(t) The differential equation for the above Mass-Spring system can then be written as follows B is called the friction coefficient and K is called the spring constant. The linear differential equation of second order (2) describes the relationship between the displacement and the applied force. The differential equation can then be used to study the time behavior of x(t) under various changes of the applied force.

Solving the differential equation using MATLAB: The objectives behind modeling the mass-damper system can be many and may include Understanding the dynamics of such system Studying the effect of each parameter on the system such as mass M, the friction coefficient B, and the elastic characteristic Fs(x). Designing a new component such as damper or spring. Reproducing a problem in order to suggest a solution. Now how to solve Ordinary differential equation.(we will proceed in 2 steps )

e.g: Assume the spring force Fs(x)=0 which means that K=0. Equation ( above) becomes So now Matlab : First (create a MATLAB-function cruise_speed.m ) function dvdt=cruise_speed(t, v) %flow rate M=750; %(Kg) B=30; %( Nsec/m) Fa=300; %N % dv/dt=Fa/M-B/M v dvdt=Fa/M-B/M*v;

Second create a new MATLAB m-file and write v0= 0; %(initial speed) [t,v]=ode45('cruise_speed', [0 125],v0); plot(t,v); grid on; title('cruise speed time response to a constant traction force Fa(t) ')

There are many other MATLAB ODE solvers such as ode23, ode45, ode113, ode15s, etc… The function dsolve will result in a symbolic solution. Do ‘doc dsolve’ to know more. In MATLAB write >>dsolve(‘Dv=Fa/M-B/M*v’, ‘v(0)=0’) Note that using MATLAB ODE solvers are able to solve linear or nonlinear ODE’s. We will see in part II of this experiment another approach to solve a linear ODE differently. Higher order systems can also be solved similarly.

Mass spring example Assume the spring force Fs (x)=Kx^r (t). The mass-spring damper is now equivalent to

The ode45 solver can be now be used: 1_ create a MATLAB-function mass_spring.m Function dXdt=mass_spring(t, X) %flow rate M=750; %(Kg) B=30; %( Nsec/m) Fa=300; %N K=15; %(N/m) r=1; % dX/dt dXdt(1,1)=X(2); dXdt(2,1)=-B/M*X(2)-K/M*X(1)^r+Fa/M; 2_ in MATLAB write >> X0=[0; 0]; %(initial speed and position) >> options = odeset('RelTol',[1e-4 1e-4],'AbsTol',[1e-5 1e-5],'Stats','on'); >>[t,X]=ode45('mass_spring', [0 200],X0);

HOME WORK Exercise 1 : Plot the position and the speed in separate graphs. Change the value of r to 2 and 3. Superpose the results and compare with the linear case r=1 and plot all three cases in the same plot window. Please use different figures for velocity and displacement. Exercise 2 Consider the mechanical system depicted in the figure. The input is given by ( ), and the output is given by ( ). Determine the differential equation governing the system and using MATLAB, write a m-file and plot the system response such that forcing function f(t)=1. Let , and . Show that the peak amplitude of the output is about 1.8.