Lesson 14: Van der Pol Circuit and ode23s

Similar documents
Lesson 15: Oregonator, Chemical Reactions and ode15s

Lesson 13: Rapid Cooling and Euler-trapezoid

Lesson 13: Rapid Cooling and Euler-trapezoid

Lesson 9: Predator-Prey and ode45

Lesson 11: Mass-Spring, Resonance and ode45

Falling Mass and Euler Methods

Falling Mass and Improved Euler

TUTORIAL: STATE VARIABLES and MATLAB

NUMERICAL ANALYSIS PROJECT PART I: ORDINARY DIFFERENTIAL EQUATIONS

S#ff ODEs and Systems of ODEs

Physics 116A Notes Fall 2004

MATH 100 Introduction to the Profession

Basics of Network Theory (Part-I)

Lab Experiment 2: Performance of First order and second order systems

2 Solving Ordinary Differential Equations Using MATLAB

Lesson 9: Diffusion of Heat (discrete rod) and ode45

2005 AP PHYSICS C: ELECTRICITY AND MAGNETISM FREE-RESPONSE QUESTIONS

Lecture 17: Ordinary Differential Equation II. First Order (continued)

9. Introduction and Chapter Objectives

Version 001 CIRCUITS holland (1290) 1

Lesson 4: Population, Taylor and Runge-Kutta Methods

Physics Investigation 10 Teacher Manual

Dynamic Modeling. For the mechanical translational system shown in Figure 1, determine a set of first order

Lecture 8: Calculus and Differential Equations

Lecture 8: Calculus and Differential Equations

Module 25: Outline Resonance & Resonance Driven & LRC Circuits Circuits 2

Differential equations and numerical methods / M.E. Mincsovics

Solving a RLC Circuit using Convolution with DERIVE for Windows

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

Symbolic Solution of higher order equations

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

2. In words, what is electrical current? 3. Try measuring the current at various points of the circuit using an ammeter.

Simulation, Transfer Function

EDEXCEL NATIONALS UNIT 5 - ELECTRICAL AND ELECTRONIC PRINCIPLES. ASSIGNMENT No.2 - CAPACITOR NETWORK

Transient Analysis of Electrical Circuits Using Runge- Kutta Method and its Application

Physics Tutorial - Currents and Circuits

PHYSICS 171 UNIVERSITY PHYSICS LAB II. Experiment 6. Transient Response of An RC Circuit

Inductance, Inductors, RL Circuits & RC Circuits, LC, and RLC Circuits

Vector Fields and Solutions to Ordinary Differential Equations using Octave

Definition: A "linear first order ODE" is one that can be put in the "standard form"

CHAPTER 6. Inductance, Capacitance, and Mutual Inductance

Electromagnetic Induction Faraday s Law Lenz s Law Self-Inductance RL Circuits Energy in a Magnetic Field Mutual Inductance

Chapter 9b: Numerical Methods for Calculus and Differential Equations. Initial-Value Problems Euler Method Time-Step Independence MATLAB ODE Solvers

Capacitance. A different kind of capacitor: Work must be done to charge a capacitor. Capacitors in circuits. Capacitor connected to a battery

Laboratory 7: Charging and Discharging a Capacitor Prelab

Bo Deng University of Nebraska-Lincoln UNL Math Biology Seminar

BROCK UNIVERSITY. Name: Student #: Page 1 of 8

Signals and Systems Chapter 2

AC Circuits Homework Set

Definition of differential equations and their classification. Methods of solution of first-order differential equations

NETWORK ANALYSIS WITH APPLICATIONS

PhysicsAndMathsTutor.com 1

ECE2262 Electric Circuits. Chapter 6: Capacitance and Inductance

3 The non-linear elements

BEHAVIORAL MODELING AND TRANSIENT ANALYSIS WITH ANALOG INSYDES

APPM 2460 CHAOTIC DYNAMICS

Differential Equations and Lumped Element Circuits

AMJAD HASOON Process Control Lec4.

(Refer Slide Time: 00:32)

Sinusoidal Response of RLC Circuits

AMS 27L LAB #8 Winter 2009

Inductive & Capacitive Circuits. Subhasish Chandra Assistant Professor Department of Physics Institute of Forensic Science, Nagpur

INDUCTANCE Self Inductance

6.003 (Fall 2007) 17 December Final exam. Name: Please circle your section number:

Complete all the identification fields below or 10% of the lab value will be deduced from your final mark for this lab.

Solution to Homework 2

Electrical Circuits I

Solution: (a) Before opening the parachute, the differential equation is given by: dv dt. = v. v(0) = 0

Cyber-Physical Systems Modeling and Simulation of Continuous Systems

First-order transient

Chapter 10: Sinusoidal Steady-State Analysis

Lectures 16 & 17 Sinusoidal Signals, Complex Numbers, Phasors, Impedance & AC Circuits. Nov. 7 & 9, 2011

10.34: Numerical Methods Applied to Chemical Engineering. Lecture 19: Differential Algebraic Equations

[ ] is a vector of size p.

LABORATORY 4 ELECTRIC CIRCUITS I. Objectives

Solution: (a) Before opening the parachute, the differential equation is given by: dv dt. = v. v(0) = 0

Do not fill out the information below until instructed to do so! Name: Signature: Section Number:

APPPHYS 217 Tuesday 6 April 2010

Kirchhoff's Laws and Circuit Analysis (EC 2)

Lecture - 11 Bendixson and Poincare Bendixson Criteria Van der Pol Oscillator

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

Math Assignment 6

Switch. R 5 V Capacitor. ower upply. Voltmete. Goals. Introduction

Elementary Differential Equations

Exam 1--PHYS 202--Spring 2013

AP Physics C. Magnetism - Term 4

PHYSICS 110A : CLASSICAL MECHANICS HW 2 SOLUTIONS. Here is a sketch of the potential with A = 1, R = 1, and S = 1. From the plot we can see

ECE2262 Electric Circuits. Chapter 6: Capacitance and Inductance

Lecture 12 Chapter 28 RC Circuits Course website:

PES 1120 Spring 2014, Spendier Lecture 35/Page 1

Unit 21 Capacitance in AC Circuits

2.1 Differential Equations and Solutions. Blerina Xhabli

1 Phasors and Alternating Currents

Applications of Second-Order Differential Equations

Electricity and Light Pre Lab Questions

RLC Series Circuit. We can define effective resistances for capacitors and inductors: 1 = Capacitive reactance:

Measurement of Electrical Resistance and Ohm s Law

Ordinary Differential Equations (ODE)

2.004 Dynamics and Control II Spring 2008

Transcription:

Lesson 4: Van der Pol Circuit and ode3s 4. Applied Problem. A series LRC circuit when coupled via mutual inductance with a triode circuit can generate a sequence of pulsing currents that have very rapid rates of changes. Because of the very large derivatives, there can be very strong constraints on the step sizes so that large numbers of time steps are required. Such systems are called stiff and require special numerical methods. The Matlab command odedemo illustrates some stiff differential equations and two stiff solvers called ode3s and ode5s. 4. Differential Equation Model. A series LRC circuit with imposed voltage is modeled by a single second order differential equation for the charge, Q(t), L Q'' + R Q' + /C Q = V(t) and Q() and Q'() are given. The current is defined to be I = Q'. This equation is derived from Kirchhoff's law, which requires the sum of the voltage drops to be equal to the imposed voltage, V(t). The voltage drops are L Q'' for self inductance, R Q' for resistance and /C Q for capacitance. In our problem (see the figure below), I is the current in the left circuit. V(t) = M i' where M is the mutual inductance and i(t) is the current in the triode circuit (the right circuit in the figure below). In the center circuit the voltage drop across the capacitor is /C Q, and it must be equal to the grid voltage, x(t), in the triode. Thus, C x(t) = Q(t) and C x' = Q' = I. The x(t) and i(t) are related by empirical observations so that i = a x - b x 3 where

the a and b are constants determined via curve fitting to data. Thus, i' = a x' - b 3x x' and i' = a I/C - b 3(Q/C) I/C. This allows one to write the system in terms of a single second order equation. Moreover, by scaling the time and charge variables, this single equation will have the form, where y and y' are the scaled charge and current and µ is a function of the parameters in the above model, y'' - µ( - y )y' + y =. This is called Van der Pol's equation, and for large µ this is a stiff differential equation. Figure: Van der Pol Circuit

3 The above second order differential equation can be equivalently written as a coupled system of two differential equations for y (t) = y(t) and y (t) = y'(t). By definition the derivative of y must be y. The derivative of y is y'' which we can solve for via the second order differential equation. Thus, the equivalent coupled system is y ' = y y ' = µ( - y )y - y with y () = y() and with y () = y'(). Matlab's ode3s and ode5s can be used to solve such systems. As a first step in the study of this system, we consider the steady state solutions, which are defined by both derivatives being set equal to zero so that = y = f (y, y ) and = µ( - y )y - y = f (y, y ). * * The two solutions are given by y = and y =. The Jacobian of [f f ]' is f = f f = * µ y y y y J * * y f y µ ( (y ) ) =. µ The steady state solutions are not stable because the Jacobian, the derivative matrix, evaluated at (,) has positive real eigenvalues, µ/ ± ((µ/) -) /. Moreover, if µ is large, then the time dependent solutions will have large rates of change so that the system is stiff. 4.3 Method of Solution. We will use Matlab's stiff solver called ode3s. This is much more sophisticated than the simple Euler-trapezoid method that was used in the previous lesson. However, its formulation is some what similar to the implicit nature of each time step in the Eulertraperzoid method.

4 4.4 Matlab Implementation. The single Van der Pol second order differential equation must be converted, as above, to a system of differential equations for the scaled charge, denoted by the symbol y(), and for the scaled current, denoted by the symbol y(). The m-files for this system are called ypvdpol.m and vdpol.m. In the first calculation we use µ = and the final time should be about ten times µ. The graph is for the scaled charge versus time. The graph for the scaled current has a series of spikes; in the Van der Pol circuit this might be series of flashes if the resistance was a light bulb. function ypvdpol=ypvdpol(t,y) ypvdpol() = y(); ypvdpol() = *(-y()^)*y()-y(); ypvdpol= [ypvdpol() ypvdpol()]'; % your name, your student number, lesson number clear; tf = ; % choose tf about ten times mu yo = [ ]; [t y] = ode3s('ypvdpol',[ tf],yo); plot(t,y(:,)); title('your name, your student number, lesson number') xlabel('time') ylabel('charge') %plot(y(:,),y(:,));

.5 your name, your student number, lesson number 5.5.5 charge -.5 - -.5 - -.5 3 4 5 6 7 8 9 time 5 5 current spikes -5 - -5 3 4 5 6 7 8 9 time

6 4.5 Numerical Experiments. In the next calculation we decreased µ from to, and have graphed the output as scaled current versus scaled charge, and as scaled charge and current versus time. Note the derivatives are not as large for the smaller value of µ. 3 van der Pol with mu =. current - - -3 -.5 - -.5 - -.5.5.5.5 charge

7 3 van der Pol with mu =. charge and current - - -3 3 4 5 6 7 8 9 time 4.6 Additional Calculations. Consider the above Van der Pol equation with y() = 3., y'() =., variable µ and using ode3s and ode5s. (a). State the second order differential equation and the equivalent system of differential equations. (b). (c). (d). (e). Modify the ypvdpol.m and vdpop.m files. Execute the vdpol.m file for µ = +*.S. Use ode3s and ode5s. Repeat (c) for µ = 5 +*.S and +*.S. Compare the graphs and number of time steps.