VP 10 RLC oscillation and transient behavior simulation An RLC circuit, with R=30 (W) , L=200 (mH) ,
C = 20 (ΞΌF) . The driving voltage source is
i
~
R L
C
0
π£(π‘) = &36 β sin(2ππ π‘)
0
if π‘ < 0
if 0 β€ π‘ < 12π
if 12T β€ π‘
whereπ =120(Hz),π=1/π . !!
!
(1) Solve this circuit numerically and plot the voltage v(t), and current i(t) as a function of t forπ‘=0to20πin scene1 and the total energy E(t) stored in the system in scene2.
- (2) Β You will see a transient behavior of the current i(t) before it reaches a steady-state oscillation around π‘ =
9π. Find I , the amplitude of the oscillating current, and f the phase constant of the oscillating current
relative to the voltage source during the 9-th period. Compare them to the theoretical values.
- (3) Β After the voltage is turned off at π‘ = 12π, you will see both the current and the total energy decays. Find the time t such that the energy decays to 10% of the energy at the time the voltage is just turned off, i.e.
0.1πΈ(π‘ = 12π).
from vpython import*
fd = 120 # 120Hz
#(Your Parameters here)
t=0
dt = 1.0/(fd * 5000) # 5000 simulation points per cycle
scene1 = graph(align = ‘left’, xtitle=’t’, ytitle=’i (A) blue, v (100V) red,’, background=vector(0.2, 0.6, 0.2)) scene2 = graph(align = ‘left’, xtitle=’t’, ytitle=’Energy (J)’, background=vector(0.2, 0.6, 0.2))
i_t = gcurve(color=color.blue, graph = scene1) v_t = gcurve(color=color.red, graph = scene1) E_t = gcurve(color=color.red, graph = scene2)
#(Your program here)



