|
Fu-Kwun Hwang
|
 |
« on: January 29, 2004, 09:24:49 PM » |
|
Registed user can get files related to this applet for offline access.If java program did not show up, please download and install latest Java RUN TIMEor This java applet try to show the transient behavior that occurs when the capacitor is being charged and discharged. 1. You will find a circuit with 10 Volt Voltage source, 100 kohms resistor and a 100 uF capacitor in series.(k=10 3 , u=10 -6 ) You can select different value of voltage/resistance/capacitance. (select value then Hit Update button!) Or click within the cyan area(near battery), and drag the mouse up/down to change voltage. 2. Press Start to start the animation, Voltage of capacitor(Vc) and resistor(Vr) are shown near the elements. 3. There is a switch to control the flow path of the circuit. Click near the (Red) switch to toggle between charging stage and discharging stage. horizontal position -> charging vertical position -> discharging. Red curve shows voltage as a function of time. V(t) Blue curve shows current as a function of time.I(t) 4. If you click the mouse button twice,the timing t will be reset to zero. 5. The animation is suspended when you press the mouse button. If you click with left mosue button,animation continues when you release the mouse button. If you click with the right mouse button,you will need to press the mouse again to resume. 6. While the animation is suspended, move the mouse in the Vc(t) or T(t) plot area Value of Vc, I and t. corresponse to mouse position will be displayed. If you drag the mouse, It will show relative value.
For the charging cycle:  where V s is the voltage from the power supply.  ,  , so the solution is  at  so The result is  ,  Registed user can get files related to this applet for offline access.If java program did not show up, please download and install latest Java RUN TIMEor
|
rc.java (10.15 KB - downloaded 22 times.)
|
|
|
Logged
|
|
|
|
|
Guest
|
 |
« Reply #1 on: January 30, 2004, 07:52:54 AM » |
|
 Subject: RC circuit applet Date: Sun, 11 Jan 1998 06:41:16 +0000 (!!!First Boot!!!) From: "Samara, Thomas Nick" < thomas.n.samara@vanderbilt.edu> To: hwang@phy.ntnu.edu.tw Dear Author, Thanks alot for your program. I couldn't quite find in the book a description of what the current was doing while the capacitor was charging. Please make more programs like it. Thanks.
|
|
|
|
|
Logged
|
|
|
|
j2grande
Newbie
Offline
Posts: 1
|
 |
« Reply #2 on: February 16, 2006, 11:25:11 AM » |
|
 Utter Perfection! Best display of an RC circuit, helped me out big time with my physic lab. Thanks J
|
|
|
|
|
Logged
|
|
|
|
richard.summerfield
Teacher
Newbie
Offline
Posts: 1
|
 |
« Reply #3 on: April 15, 2006, 12:40:48 PM » posted from:Abu Dhabi,Abu Dhabi,United Arab Emirates |
|
 Many thanks for this wonderful applet. I am teaching basic electronics to arabic students in English. This animation really helped. 
|
|
|
|
|
Logged
|
|
|
|
shelton
Newbie
Offline
Posts: 1
|
 |
« Reply #4 on: April 17, 2007, 05:12:04 PM » |
|
 absolutely brilliant!!!! thankyou very very much Fu-Kwun Hwang! Regards Shelton Australia.
|
|
|
|
|
Logged
|
|
|
|
jjplaw
Newbie
Offline
Posts: 2
|
 |
« Reply #5 on: July 19, 2007, 09:18:48 AM » |
|
 Hi, This is a great tool indeed for teaching RC circuit. But it think there is an error in the applet. When discharging, the blue line (I) plots outside the graph. Anyone else having this problem? Justin Malaysia
|
|
|
|
|
Logged
|
|
|
|
jjplaw
Newbie
Offline
Posts: 2
|
 |
« Reply #6 on: July 19, 2007, 09:36:44 AM » |
|
 Greetings, I saw a new version of this on the other websites. Is it possible to upload the new version here? Justin Malaysia
|
|
|
|
|
Logged
|
|
|
|
|
Fu-Kwun Hwang
|
 |
« Reply #7 on: July 20, 2007, 10:29:10 PM » |
|
 You can show the applet if you know the java applet tags(you can copy it from the web page). At least , you can provide the URL of the web page. Hi,
This is a great tool indeed for teaching RC circuit. But it think there is an error in the applet.
When discharging, the blue line (I) plots outside the graph. Anyone else having this problem?
Justin Malaysia
The voltage show negative value because the selection of sign in voltage. There is no problem, just the difference in the interpretation of the meaning. I am currently in Malaysia now. (I was conducting a 3-days workshop at the Univ. of Malaysia. Now, I am conducting another workshop for Chinese school in Malaysia.) I will be back to Taiwan on July 22.
|
|
|
|
|
Logged
|
|
|
|
clickass
Newbie
Offline
Posts: 1
|
 |
« Reply #8 on: February 15, 2008, 08:22:14 PM » |
|
 far great than book.thank for simulation. could you name few books for bistable multivibrator?
|
|
|
|
|
Logged
|
|
|
|
downcast
Newbie
Offline
Posts: 3
|
 |
« Reply #9 on: February 19, 2008, 09:48:52 AM » posted from:Kuala Lumpur,Kuala Lumpur,Malaysia |
|
 Hi over there, currently stuck with 1 JAVA assignment for RC transient response. I need help/reference for the source code, im using NetBeans IDE 4.1 for the assignment, i would glad if someone could help me out on this.
|
|
|
|
|
Logged
|
|
|
|
|
Fu-Kwun Hwang
|
 |
« Reply #10 on: February 19, 2008, 03:11:10 PM » |
|
 Do you know how to use the Runge-Kutta 4th order method to solve the differential equation? You can write your own code or get it from the web. And you should be able to solve the RC transient response. Since it is your assignment, it is better if you can code it by yourself. Try to learn Runge-Kutta 4th order method first.
|
|
|
|
|
Logged
|
|
|
|
downcast
Newbie
Offline
Posts: 3
|
 |
« Reply #11 on: February 19, 2008, 08:42:09 PM » |
|
 I had juz started to learn JAVA for 3 weeks time... so i would like to search for help.... about Runge-Kutta 4th Order Method, i got no idea on this. Well the basic idea of this assignment is to attach a 3 scroll bar which allow us to adjust the Resistor(R),Capacitor(C) and Voltage(E) value accordingly and a charging / discharging graph would be plotted automatically. I just dunno how to start with the code and equation. BTW, can use Euler??
|
|
|
|
« Last Edit: February 19, 2008, 08:49:01 PM by downcast »
|
Logged
|
|
|
|
|
Fu-Kwun Hwang
|
 |
« Reply #12 on: February 19, 2008, 09:25:39 PM » |
|
 For simple RC-circuit, the solution can be obtained analytically without numerical calculation. For example: V(t)=Vc(t=0)* e -t/(RC) for charging a capacitor. You can get parameters(R,C,E=Vc) and draw it with java code (and you can find formula from any textbook). However, if you need to solve it numerically. You need to learn numerical methods. Runge-Kutta's 4th-order method will give you much better result than Euler's method.
|
|
|
|
|
Logged
|
|
|
|
downcast
Newbie
Offline
Posts: 3
|
 |
« Reply #13 on: March 04, 2008, 04:39:23 PM » |
|
 I had done the part for charging capacitor so far, but it oni work for t=0, as u keep pressing, the t will increase.... i would like to request how u program it to count the charge automatically without keep clicking it?
|
|
|
|
|
Logged
|
|
|
|
|
Fu-Kwun Hwang
|
 |
« Reply #14 on: March 04, 2008, 09:07:41 PM » |
|
 For java programming, you can add thread to ask java run some job continuously. It is a standard java programing method, you should be able to find out how it can be done with any java programming books (or online tutorial). I have created this program almost 10 years ago with JDK1.0.2 May be there are better way to do it. If you need java programing help. please check out other related web site. If you need help in physics, I will try to help. But I do not have time to read how it can be done with latest java. I use EJS to create new simulations since 2001. EJS is a tool which I do not need to know much about java programming, I just need to concentrate on the physics model. So if you are interested in java programming, you should ask some other expert. If you just want to create scientific java simulation without too much programming skill. I would suggest you use EJS. You can find latest information about EJS from http://fem.um.es/EjsWiki
|
|
|
|
|
Logged
|
|
|
|
|
Fu-Kwun Hwang
|
 |
« Reply #15 on: March 09, 2008, 09:51:39 AM » |
|
 Due to request from users, you can find the original source code as an attachment for this post. However, it was written almost 10 years ago with JDK1.0.2. Some modification might be needed to work with current JDK.
|
rc.java (9.95 KB - downloaded 14 times.)
|
|
|
Logged
|
|
|
|
luke warmbath
Newbie
Offline
Posts: 1
|
 |
« Reply #16 on: March 26, 2009, 03:40:16 AM » |
|
 I was always taught to have units on every axis. Your "Y" axis is obviously Voltage (0 to 10V) and should I think be labelled "Volts". Presumably it also shows current. This should also be labelled with units. Great simulation. I am using RC circuits to simulate nerve conduction rates in humans. Luke
|
|
|
|
|
Logged
|
|
|
|
|
Fu-Kwun Hwang
|
 |
« Reply #17 on: March 26, 2009, 08:49:33 AM » posted from:Taipei,T\'ai-pei,Taiwan |
|
 Thank you! I just added label for x-axis (time:s) and y-axis (Voltage:V)
|
|
|
|
|
Logged
|
|
|
|
lj,h.ki
Newbie
Offline
Posts: 3
|
 |
« Reply #18 on: March 31, 2009, 10:44:13 PM » |
|
 I'm a teacher and this Java helps me alot thaaaaaaaaaaaaank you veeeeeeeery muuuuuuch 
|
|
|
|
|
Logged
|
|
|
|
flyingcloude
Newbie
Offline
Posts: 1
|
 |
« Reply #19 on: April 18, 2009, 09:31:03 PM » |
|
 thanks very much
|
|
|
|
|
Logged
|
|
|
|
|