Hello guys, I have been trying to simulate a simple 30k resistor with a 100uF capacitor with a 9v supply for a while now.
From what I know theoretically the capacitor should reach about 8v in 7 sec. How come the simulation only shows the 9v on the oscilloscope as soon as I start the simulation?
It's not something you would know, but the simulation normally calculates the steady-state DC operating point (with inductor and capacitor values = 0) of the circuit before doing the transient simulation. And the steady-state value of the capacitor voltage is 9V.
There are two possible solutions to this:
1. There should be an option to have it not calculate the DC operating point, or alternately set the initial voltages to zero (I believe in the Analysis Options).
2. You can use a time-delay (TD) switch to connect the voltage to the circuit after the start of the simulation.
I prefer 2 because it allows you to look at the initial conditions of the circuit before you see the transient.
All Spice derivatives, including LTSpice and most likely Multisim, do an initial "DC Bias" solution before commencing a "Transient" solution. During the Bias solution, the capacitor is assumed to be charged to the supply voltage. If you want to see the RC charge-up, you will have to name the node between the resistor and the capacitor, say RC, and put in an Initial Conditions statement, like .IC V(RC) = 0 to force that node to start from zero.
I tried to simulate it using the TD switch though that failed... umm I still don't know how to set the initial voltage to 0. DO you guys mind just showing me how to do the stuff step by step?
It is just an alternate symbol for a voltage source. I use it to signify that the voltage is not changing... Look under Misc in the pop-up list of standard symbols.