NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Easy Java Simulations (2001- ) => electromagnetism => Topic started by: ahmedelshfie on May 31, 2010, 06:36:32 pm



Title: RLC circuit discharge simulation
Post by: ahmedelshfie on May 31, 2010, 06:36:32 pm
This following applet is RLC circuit discharge simulation
Created by prof Hwang Modified by Ahmed
Original project RLC circuit discharge simulation  (http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1318.0)

For RLC and diode circuit:$V_C=V_{diode}+V_L+V_R$,
where $V_L=L\frac{dI}{dt}, V_R=IR,V_C=Q_C/C , I=-\frac{dQ_C}{dt}$

For example:
At t=0; $V_L=V_C-I R-V_{diode}=20-0.12*(9+1)-0.8$
this can be used to calculate $\frac{dI}{dt}=V_L/L$ which will give us I(t+dt).
With I(t) we can calculate $Q_C(t+dt)=Q_C(t=0)-I dt$
We can repeat the above step to calculate the charge Q(t+dt) and current I(t+dt) for each time step t.