Assignment 2
Assignment 2
RLC Circuits
Goal: Investigate the charge on a capacitor in an RLC circuit with varying voltage. Tools needed: ode45, plot Description: If Q(t) = charge on a capacitor at time t in an RLC circuit (with R, L and C being the resistance, inductance and capacitance, respectively) and E(t) = applied voltage, then Kirchhos Laws give the following 2nd order dierential equation for Q(t): L Q (t) + R Q (t) +
R
1 Q(t) = E(t) C
()
E(t) C
Questions: Assume L = 1, C = 1/5, R = 4 and E(t) = 10 cos t. 1. Use ode45 (and plot routines) to plot the solution of () with Q(0) = 0 and Q (0) = 0 over the interval 0 t 80 for = 0, 0.5, 1, 2, 4, 8, 16. 2. Let A() = maximum of |Q(t)| over the interval 30 t 80 (this approximates the amplitude of the steady-stat solution). Experiment with various values of and discuss what appears to happen to A() as and as 0. Also, interpret your ndings in terms of an equivalent spring-mass system. Remark: There is an analogy between spring-mass system and RLC circuits given by: Spring-mass system m u + c u + k u = F (t) RLC circuit LQ + RQ +
1 C
Q = E(t)
u = Displacement Q = Charge u = Velocity Q = I = Current m = Mass L = Inductance c = Damping constant R = Resistance k = Spring constant 1/C = (Capacitance)1 F (t) = External force E(t) = Voltage