1 / 49

CEE162 Lecture 2: Nonlinear ODEs and phase diagrams; predator-prey

CEE162 Lecture 2: Nonlinear ODEs and phase diagrams; predator-prey. Overview. Nonlinear chaotic ODEs: the damped nonlinear forced pendulum 2 nd Order damped harmonic oscillator Systems of ODEs Phase diagrams Fixed points Isoclines/Nullclines Predator-prey model

bluma
Download Presentation

CEE162 Lecture 2: Nonlinear ODEs and phase diagrams; predator-prey

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CEE162 Lecture 2: Nonlinear ODEs and phase diagrams; predator-prey Overview • Nonlinear chaotic ODEs: the damped nonlinear forced pendulum • 2nd Order damped harmonic oscillator • Systems of ODEs • Phase diagrams • Fixed points • Isoclines/Nullclines • Predator-prey model References: Dym, Ch 7; Mooney & Swift, Ch 5.2-5.3; Kreyszig, Ch 4 CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  2. Forced pendulum Frictional effect m m g CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  3. Free-body diagram CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  4. Derivation of the governing ODE CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  5. m CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  6. CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  7. Reduce and nondimensionalize! CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  8. CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  9. Governing nondimensional ODE CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  10. Linearize CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  11. The damped harmonic oscillator CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  12. CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  13. CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  14. CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  15. The particular solution CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  16. CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  17. Simulating the nonlinear system pendulum.zip CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  18. Phase plane analysis CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  19. Direction field for a1=0.5 phasedirection.m CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams 24

  20. Computing phase lines analytically Solution in phase space Elliptic Integral! CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  21. Analytical Phase Lines for CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  22. Nullclines and fixed points CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  23. Plotting nullclines and fixed points q=0 (no acceleration) increasing friction p=0 (no velocity) Fixed points CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  24. where the point is a fixed point corresponding to Behavior in the vicinity of fixed points Suppose we have a nonlinear coupled set of ODEs in the form We can determine the behavior of this ODE in the vicinity of the fixed points by analyzing the behavior of disturbances applied to the fixed points such that CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  25. Using the Taylor series expansion about the fixed point, we have Substitution into the ODEs gives Since the fixed points satisfy CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  26. and , then the perturbations satisfy In vector form, this is given by The Jacobian matrix is given by CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  27. The behavior of the solution in the phase plane in the vicinity of the fixed points is determined by the behavior of the eigenvalues of the Jacobian. If then the eigenvalues of J are given by CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  28. complex pair, negative real part. two real negative roots. CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  29. complex pair, positive real part. two real positive roots. pure imaginary. CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  30. Phase plane analysis for the pendulum CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  31. CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  32. Underdamped Critical or overdamped CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  33. Spiral direction CW or CCW? Clockwise c<0 Counter- clockwise c>0 CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  34. Behavior around saddle point CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  35. CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  36. CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  37. The predator-prey problem Overview • Lotka-Volterra predator-prey model • Phase-plane analysis • Analytical solutions • Numerical solutions References: Mooney & Swift, Ch 5.2-5.3; CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  38. Compartmental Analysis • Tool to graphically set up an ODE-based model • Example: Population Immigration: ix Emigration: ex Population: x Births: bx Deaths: dx CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  39. Logistic equation Population: x Can flow both directions but the direction shown is defined as positive CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  40. Income class model Lower x Middle y Upper z CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  41. For a system the fixed points are given by the Null space of the matrix A. For the income class model: CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  42. Classical Predator-Prey Model cxy bxy Predator y Prey x ax dy Growth in absence of predators Die-off in absence of prey Lotka-Volterra predator-prey equations CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  43. Assumptions about the interaction term xy • xy = interaction; bxy: b = likelihood that it results in a prey death; cxy: c = likelihood that it leads to predator success. An "interaction" results when prey moves into predator territory. • Animals reside in a fixed region (an infinite region would not affect number of interactions). • Predators never become satiated. CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  44. Phase-plane analysis CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  45. CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  46. Analytical solution CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  47. Solution with Matlab lvdemo.m % Initial condition is a low predator population with % a fixed-point prey population. X0 = [x0,.25*y0]'; % Decrease the relative tolerance opts = odeset('reltol',1e-4); [t,X]=ode23(@pprey,[0 tmax],X0,opts); pprey.m function Xdot = pprey(t,X) % Constants are set in lvdemo.m (the calling function) global a b c d % Must return a column vector Xdot = zeros(2,1); % dx/dt=Xdot(1), dy/dt=Xdot(2) Xdot(1) = a*X(1)-b*X(1)*X(2); Xdot(2) = c*X(1)*X(2)-d*X(2); CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  48. at t=0, x=20 y=19.25 CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

  49. Nonlinear Linear CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams

More Related