0% found this document useful (0 votes)
95 views

Assignment 2

1) This document describes an experiment using MATLAB to investigate the charge on a capacitor in an RLC circuit with a varying voltage input over time. 2) The experiment will use ode45 to solve the differential equation describing the circuit with different angular frequency inputs and plot the capacitor charge over time. 3) It will also examine how the maximum steady state charge amplitude depends on angular frequency, and relate findings to an analogous spring-mass system.

Uploaded by

Nathan Warner
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
95 views

Assignment 2

1) This document describes an experiment using MATLAB to investigate the charge on a capacitor in an RLC circuit with a varying voltage input over time. 2) The experiment will use ode45 to solve the differential equation describing the circuit with different angular frequency inputs and plot the capacitor charge over time. 3) It will also examine how the maximum steady state charge amplitude depends on angular frequency, and relate findings to an analogous spring-mass system.

Uploaded by

Nathan Warner
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Computer Project 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

You might also like