math lab 2 - Lab 2: Eulers Method and RC Circuits Goals In...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab 2: Euler’s Method and RC Circuits Goals In this lab you will implement Euler’s method to approximate measurements of the charge on a capacitor in a basic RC circuit. You will learn how to write .m Fles for Matlab and how to program Euler’s method; then you will investigate some of the limitations of the method. Application: a basic RC circuit The state of an electrical circuit consisting of resistors, capacitors, and an applied voltage can be described by di±erential equations. Consider the following circuit R S C I E(t) + - with resistance R Ohms (Ω), capacitance C ²arads (²), and applied voltage E ( t ) Volts (V). The charge on the top plate of the capacitor at time t is Q ( t ) Coulombs (C), and the current through the resistor is I ( t ) Amperes (A). The resistor has a voltage drop of RI , and the capacitor has a voltage drop of Q/C . When switch S is closed at time t = 0, the sum of the voltage across the resistor and the capacitor must equal the applied voltage. This gives us the equation RI + 1 C Q = E ( t ) . The current in the circuit is the rate of change of the amount of charge on the capacitor. So using the relationship dQ/dt = I , this becomes a Frst order di±erential equation for Q ( t ): R dQ dt + 1 C Q = E ( t ) . The initial condition for this equation is Q 0 = Q (0), the initial amount of charge on the capacitor. ( Q 0 could be set by imposing a voltage V 0 = Q 0 /C across the capacitor before 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
inserting it into the circuit.) In this lab, we will use Euler’s method to numerically solve this diferential equation For two diferent applied voltages: a constant voltage E 0 , and then an AC voltage E ( t ) = 117 sin(120 πt ) which corresponds to the voltage out oF a standard wall socket. Prelab assignment BeFore arriving in lab, answer the Following questions. You will need your answers in lab to work the problems, and your recitation instructor may check that you have brought them. These problems are to be handed in as part oF your lab report. 1. (a) VeriFy that the Function Q 1 ( t )= E 0 C ± 1 - e - t/ ( RC ) ² (1) is a solution to the initial value problem dQ 1 dt = - 1 RC Q 1 + 1 R E 0 ,Q 1 (0) = 0 , (2) where R , C , and E 0 are constants. That is, by plugging t = 0 into the Formula (1) show that the initial condition is satis±ed, and then by diferentiating the Formula (1) and comparing with the right-hand side oF the diferential equation show that Q 1 ( t ) satis±es the diferential equation. (In other words, do not try to ±nd the solution oF the initial-value problem, but rather just check that the given Function solves the problem.) Then use the exact solution Formula (1) with R = 20000Ω, C = . 00001², and E 0 = 117V to complete the column labelled “Exact y ” on Table 2 on the last page oF the lab, For use in Lab problem 1. (b) VeriFy that the Function Q 2 ( t E 0 R ( γ 2 + (120 π ) 2 ) ³ 120 π ± e - γt - cos(120 ) ² + γ sin(120 ) ´ (3) satis±es the initial-value problem dQ 2 dt = - 1 RC Q 2 + 1 R E 0 sin(120 ) 2 (0) = 0 , (4) where the constant γ =1 / ( RC ) has units oF Hz=sec - 1 . What do these initial conditions represent For the system at the time the switch is closed?
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/07/2010 for the course ENGINEERIN 240 taught by Professor Gidley during the Spring '10 term at University of Michigan.

Page1 / 8

math lab 2 - Lab 2: Eulers Method and RC Circuits Goals In...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online