PLOTTING PHASE PORTRAITS WITH MATLAB:

Slides:



Advertisements
Similar presentations
Coulomb or Dry Friction Damping.
Advertisements

PLOTTING PHASE PORTRAITS WITH MATLAB:
Lecture 3: Signals & Systems Concepts
Frequency response When a linear system is subjected to a sinusoidal input, its steady state response is also a sustained sinusoidal wave, with the same.
Revision Previous lecture was about Harmonic Oscillator.
MEEG 5113 Modal Analysis Set 3.
Ch 3.8: Mechanical & Electrical Vibrations
Fundamentals of Lyapunov Theory
Oscillators fall CM lecture, week 3, 17.Oct.2002, Zita, TESC Review forces and energies Oscillators are everywhere Restoring force Simple harmonic motion.
Mechanical Vibrations
Poincare Map. Oscillator Motion  Harmonic motion has both a mathematical and geometric description. Equations of motionEquations of motion Phase portraitPhase.
Free Vibrations – concept checklist You should be able to: 1.Understand simple harmonic motion (amplitude, period, frequency, phase) 2.Identify # DOF (and.
Ch 3.9: Forced Vibrations We continue the discussion of the last section, and now consider the presence of a periodic external force:
Analysis of the Rossler system Chiara Mocenni. Considering only the first two equations and ssuming small z The Rossler equations.
EXAMPLES: Example 1: Consider the system Calculate the equilibrium points for the system. Plot the phase portrait of the system. Solution: The equilibrium.
Automatic Control Theory-
Chapter 19 MECHANICAL VIBRATIONS
DESCRIBING FUNCTION ANALYSIS:
Periodic Motion and Theory of Oscillations m 0 X Restoring force F x = -kx is a linear function of displacement x from equilibrium position x=0. Harmonic.
February 7, John Anderson, GE/CEE 479/679 Earthquake Engineering GE / CEE - 479/679 Topic 6. Single Degree of Freedom Oscillator Feb 7, 2008 John.
Mechanical Vibrations In many mechanical systems: The motion is an oscillation with the position of static equilibrium as the center.
Phase Diagrams Quick Review of Linear Oscillator (Ch.3) Consider a 1d Linear Oscillator: Its state of motion is completely specified if two quantities.
Brief Survey of Nonlinear Oscillations Li-Qun Chen Department of Mechanics, Shanghai University, Shanghai , China Shanghai Institute of Applied.
System Control Theory Lab
Aerospace Engineering Laboratory II Vibration of Beam
Chapter 7. Free and Forced Response of Single-Degree-of-Freedom Linear Systems 7.1 Introduction Vibration: System oscillates about a certain equilibrium.
April Second Order Systems m Spring force ky F(t) (proportional to velocity) (proportional to displacement)
Problem Transient Response By: Matt Lausmann ME 114 Granda Assignment #3.
A PPLIED M ECHANICS Lecture 03 Slovak University of Technology Faculty of Material Science and Technology in Trnava.
REFERENCE INPUTS: The feedback strategies discussed in the previous sections were constructed without consideration of reference inputs. We referred to.
MA402 Mathematics for Mechanical Engineering
Oscillatory motion (chapter twelve)
Chapter 19 Physics A First Course Vibrations, Waves, and Sound.
Ch 9.2: Autonomous Systems and Stability In this section we draw together and expand on geometrical ideas introduced in Section 2.5 for certain first order.
What is called vibration Analysis Design
Analysis of the Rossler system Chiara Mocenni. Considering only the first two equations and assuming small z, we have: The Rossler equations.
State Equations BIOE Processes A process transforms input to output States are variables internal to the process that determine how this transformation.
1 10. Harmonic oscillator Simple harmonic motion Harmonic oscillator is an example of periodic motion, where the displacement of a particle from.
PHY 151: Lecture Motion of an Object attached to a Spring 12.2 Particle in Simple Harmonic Motion 12.3 Energy of the Simple Harmonic Oscillator.
DESCRIBING FUNCTION ANALYSIS:
Mechanical Vibrations
Introduction to Structural Dynamics
Short introduction to aeroelasticity
10. Harmonic oscillator Simple harmonic motion
Theory of nonlinear dynamic systems Practice 2
A PRESENTATION ON VIBRATION
Control Engineering ( ) G-14
Chapter 2 Response to Harmonic Excitation
K. Zhou Menton Professor
ME375 Handouts - Spring 2002 MESB374 System Modeling and Analysis System Stability and Steady State Response.
Solving the Harmonic Oscillator
Ch 3.9: Forced Vibrations We continue the discussion of the last section, and now consider the presence of a periodic external force:
Mechanical Engineering at Virginia Tech
Digital Control Systems (DCS)
Chapter 15 Oscillations.
Devil physics The baddest class on campus AP Physics
Chapter 3: Oscillations
Physics A First Course Vibrations, Waves, and Sound Chapter 19.
SYSTEM OF DIFFERENTIAL EQUATIONS
ME321 Kinematics and Dynamics of Machines
LECTURE 1 – FUNDAMENTAL OF VIBRATION
ME321 Kinematics and Dynamics of Machines
COMMON NONLINEARITIES IN CONTROL SYSTEMS:
SYSTEM OF ORDINARY DIFFERENTIAL EQUATIONS
ENGINEERING MECHANICS
Signals and Systems Lecture 2
EXAMPLES: Example 1: Consider the system
Lecture 3: Signals & Systems Concepts
Principles of Dynamics
SYSTEM OF ORDINARY DIFFERENTIAL EQUATIONS
Presentation transcript:

PLOTTING PHASE PORTRAITS WITH MATLAB: Phase portraits is a useful graphical tool to understand the stable or unstable behavior of the equilibrium points of a nonlinear systems. Consider the previous example, [x1, x2] = meshgrid(-4:0.2:1, -2:0.2:2); x1dot = x2; x2dot = -0.6*x2-3*x1-x1.^2; quiver(x1,x2,x1dot,x2dot) xlabel('x_1') ylabel('x_2') Matlab code to plot phase portraits range for x1 range for x2

(-3,0) (0,0)

l θ Example: Consider the undamped simple pendulum L=1;g=9.81; [x1, x2] = meshgrid(-1:0.2:5, -2:0.2:2); x1dot = x2; x2dot = -g/L*sin(x1); quiver(x1,x2,x1dot,x2dot) Matlab code to plot phase portraits range for x1 range for x2 m θ l g Equilibrium points: (0, 0) and (p, 0) Stable Unstable

(0,0) (p,0)

l e1 For l=1 m At the equilibrium, all derivatives are zero Consider the small perturbations around the equilibrium point θd=0 Nonlinear terms can be linearized using the Maclaurin series.

e1 l For θd=0 clc;clear; A=[0 1;-9.81 0]; eig(A) A Marginally stable Higher order term clc;clear; A=[0 1;-9.81 0]; eig(A) ans = 0 + 3.1321i 0 - 3.1321i A Marginally stable For θd=p m e1 l clc;clear; A=[0 1;9.81 0]; eig(A) ans = 3.1321 -3.1321 Unstable

[0.1;0] Initial conditions [0.1;0] Initial conditions

Mathematical model of a nonlinear system is given by the equation Example: Mathematical model of a nonlinear system is given by the equation Where f(t) is the input and x(t) is the output of the system. Find the equilibrium points for f=80 and linearize the system for small deviations from the equilibrium points. Find the response of the system The state variables are chosen as x1=x and x2=dx/dt=dx1/dt >>solve(‘64000*x1^2/(x1+2)=1.2’) x1d=0.00613, x2d=0 For the equilibrium condition x1=x1d+e1=0.00613+e1 x2=x2d+e2=e2 Karagülle, System Modeling and Analysis

x1=x1d+e1=0.00613+e1 x2=x2d+e2=e2 f=fd+u a

=0 =0 clc;clear; A=[0 1;-390.52 -9]; eig(A) Stable system ans =

Matlab code for step input with magnitude 2 clc;clear a=[0 1;-390.52 -9];b=[0 0.015]';c=[1 0];d=0; sys=ss(a,b,c,d); t=[0:.025:2]; [y,t,x]=step(sys*2,t); plot(t,y,'--','Linewidth',2);axis([0 2 0 0.00015]);grid; xlabel('time (sec)');ylabel('Y output');title('Step Response') c=[0 1]

2 t u(t) u(t) 2 t We can obtain the same result using Simulink. e1 e2

Example: Phase portrait of a linear system. 2m m c k x(t) R x1=x x2=dx/dt=dx1/dt x1=x x2=dx/dt=dx1/dt Initial conditions: x1(0)=0.2 (dx/dt)t=0=x2(0)=1

At equilibrium Matlab Code: Damping ratio meş=2m Initial m=10;c=2;k=1000; [x1, x2] = meshgrid(-0.5:0.1:0.5, -2:0.2:2); x1dot = x2; x2dot = -c/(2*m)*x2-k/(2*m)*x1; quiver(x1,x2,x1dot,x2dot) Matlab Code: Damping ratio meş=2m Initial Equilibrium

Matlab Code: Matlab Code: Damping ratio m=10;c=40;k=1000; [x1, x2] = meshgrid(-0.5:0.1:0.5, -2:0.2:2); x1dot = x2; x2dot = -c/(2*m)*x2-k/(2*m)*x1; quiver(x1,x2,x1dot,x2dot) Matlab Code: m=10;c=40;k=1000; [x1, x2] = meshgrid(-0.5:0.1:0.5, -2:0.2:2); x1dot = x2; x2dot = -c/(2*m)*x2-k/(2*m)*x1; quiver(x1,x2,x1dot,x2dot) Matlab Code: Damping ratio

Matlab Code: Damping ratio m=10;c=150;k=1000; [x1, x2] = meshgrid(-0.5:0.1:0.5, -2:0.2:2); x1dot = x2; x2dot = -c/(2*m)*x2-k/(2*m)*x1; quiver(x1,x2,x1dot,x2dot) Matlab Code: Damping ratio

x(t) k m µ (Coulomb friction) Example: At equilbrium x1=x x2=dx/dt=dx1/dt

k/m=500/10=50 µ*g=0.1*9.81=0.981 0.2 m

m=60;k=500;mu=0.3;g=9.81; [x1, x2] = meshgrid(-0.5:0.1:0.5, -2:0.2:2); x1dot = x2; x2dot = -(k/m)*x1-sign(x2)*mu*g; quiver(x1,x2,x1dot,x2dot)

Mass-spring-damper system with a position dependent damper. Example: Van der Pol Equation m=10, c=20, k=1000

The Van der Pol equation can be regarded as describing a mass-spring-damper system with a position-dependent damping coefficient 2c(x2-1) (or, equivalently, an RLC electrical circuit with a nonlinear resistor). For large values of x, the damping coefficient is positive and the damper removes energy from the system. This implies that the system motion has a convergent tendency. However, for small values of x, the damping coefficient is negative and the damper adds energy into the system. This suggest that the system motion has a divergent tendency. Therefore, because the nonlinear damping varies with x, the system motion can neither grow unboundly nor decay zero. Instead, it displays a sustained oscillation independent of initial conditions. This so-called limit cycle is sustained periodically releasing energy into and absorbing energy from the environment, through the damping term. This is in contrast with the case of conservative mass-spring system, which does not exchange energy with its environment during its vibration. Slotine and Weiping, Applied Nonlinear Control.

Of course, sustained oscillations can also be found in linear systems, in the case of marginally stable linear systems (such as a mass-spring system without damping) or in the response to sinusoidal inputs. However, limit cycles in nonlinear systems are difefrent from linear oscillations in a number of fundamental aspects. First, the amplitude of the self-sustained excitation is independent of initial conditions, while the oscillation of a marginally stable linear system has its amplitude determined by its initial conditions. Second, marginally stable linear systems are very sensitive to changes in system parameters (with a slight change capable of leading either to stable convergence or to instability), while limit cycles are not easily affected by parameter changes. Limit cycles represent an important phenomenon in nonlinear systems. They can be found in many areas of engineering and nature. Aircraft wing fluttering, a limit cycle caused by the interaction of aerodynamic forces and structural vibrations, is frequently encountered and is sometimes dangerous. http://video.search.yahoo.com/video/play;_ylt=A2KLqITlkkNT93AAUWv7w8QF;_ylu=X3oDMTByZWc0dGJtBHNlYwNzcgRzbGsDdmlkBHZ0aWQDBGdwb3MDMQ--?p=limit+cycle+phenomenon&vid=3bf1c20190a32951e8e985d5241568bc&l=00%3A10&turl=http%3A%2F%2Fts2.mm.bing.net%2Fth%3Fid%3DVN.608040160876104229%26pid%3D15.1&rurl=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1DK-zGLK6GQ&tit=F-16+Limit+Cycle+Oscillation+Chase+Video&c=0&sigr=11aio97j7&sigt=118c8pd6m&pstcat=news&age=0&hsimp=yhs-yhsifmclone1&hspart=Babylon&type=br101dm84bs02ts902af110000&tt=b http://video.search.yahoo.com/video/play;_ylt=A2KLqIR6k0NTRksASRv7w8QF;_ylu=X3oDMTBzOGgyNGpnBHNlYwNzcgRzbGsDdmlkBHZ0aWQDBGdwb3MDMTU-?p=limit+cycle+phenomenon&vid=2b927582be94ea615e8234a346996a60&l=00%3A24&turl=http%3A%2F%2Fts2.mm.bing.net%2Fth%3Fid%3DVN.608036699129383049%26pid%3D15.1&rurl=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DqfkkiDsEXUA&tit=Piper+PA+30+Twin+Comanche+Aircraft+Tail+Flutter+Test+%281966%29+%7C+NASA+Dryden+Flight+Research&c=14&sigr=11aircatc&sigt=12p6ai0eg&age=0&hsimp=yhs-yhsifmclone1&hspart=Babylon&type=br101dm84bs02ts902af110000&tt=b Slotine and Weiping, Applied Nonlinear Control.

0.2 Limit cycle (0.2,0)

0.6 Limit cycle (0.6,0)

2 0.6 Limit cycle (0.6,2)

Important Behaviors of Nonlinear Systems: Bifurcations: As the parameters of nonlinear dynamic systems are changed, the stability of equilibrium point can change and so can the number of equilibrium points. Values of these parameters at which the qualitative nature of the system’s motion changes are known as critical or bifurcation values.The phenomenon of bifurcation, i.e., quantitative change of parameters leading to qualitative change of system properties, is the topic of bifurcation theory. Let us consider the system described by the co-called undamped Duffing equation (mass-spring system with a hardening spring). Pitchfork bifurcation Hopf bifurcation Slotine and Weiping, Applied Nonlinear Control.

Chaos: For stable linear systems, small differences in initial conditions can only cause small differences in output. Nonlinear systems, however, can display a phenomenon called chaos, by which we mean that the system output is extremely sensitive to initial conditions. The essential feature of chaos is the unpredictability of the system output. Even if we have an exact model of a nonlinear system and an extremely accurate computer, the system’s response in the long-run still cannot be well predicted. As an example of chaotic behavior, let us consider the simple nonlinear system which may represent a lightly-damped, sinusoidally forced mechanical structure undergoing large elastic deflections. Consider two almost identical initial conditions, namely x(0)=2, (dx/dt)0=3 and x(0)=2.01, (dx/dt)0=3.01. Due to the strong nonlinearity in x5, the two responses are radically different after some time. Slotine and Weiping, Applied Nonlinear Control.

Displacement

Velocity

Small changes in initial conditions can cause recordable changes in the output of the system.