iamyuchenjie
Junior Member level 1
- Joined
- Aug 3, 2009
- Messages
- 16
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Germany
- Activity points
- 1,429
Hi iamyuchenjieHallo,
I'm an EE student from TU Dresden.
Today I try to simulate some very basic RC circuits.
I am totally confused with the results. For example, I drew a very basic source-free RC serial circuit and try to find it's transient response. The circuit is as follow:
But the simulation result is that: the voltage of net3 start from (time 0 ) is 12.5V, instead of the initial condition value I set15V?
And I also try some other circuits with cap. but all the result is not right according to my understanding. I asked in the edabord, but no reply up to now.
Do you know why? I think the cap from the analoglib (Cadence build-in lib)is the ideal one, isn't it?
Or can u simulate it for me? Just 5 minutes is quite enough I think.
Really thank you!
Hi againThanks Goldsmith!
All the parmeters are here:a 0.1f ideal capacitor with initial condition of v(0)=15V
a resistier of 1 Ohm.
I want to simulate the de-charing process of the cap.
But in my environment, I get the result that the voltage across the cap. changes from 12V instead of 15V at the start! It seems to violate the circuits theory.
But in my environment, I get the result that the voltage across the cap. changes from 12V instead of 15V at the start! It seems to violate the circuits theory.
Did you see what would happen if you start it at 17V? It's worth a try.
This is one of those situations where a simulator does something erroneous, for reasons unknown. We are forced to try any kind of workaround that we can.
After using the simulator a while something may become clear. You may figure out what settings let you use your original plan. Maybe adjusting the time step? Etc.
For the time being, you may as well do the same thing you would do with real components. Charge up the capacitor from a power source, then switch it over to a resistor. Command the scope to display the entire process.
For a view of how another simulator does it, here is my screenshot of Falstad's simulator. I see Goldsmith already did something similar. Mine lacks scale readings.
I am not quite sure what the simulator does during the operating point calculation if UIC is not used, but my guess is that it places a voltage source with 1 ohm resistance at the Initial Condition node. That affects the starting point it arrives at. By specifying UIC it doesn't calculate the operating point at all and so starts the transient analysis with the values specified..TRAN 0 1 UIC
Try with the "Use Initial Conditions" option on i.e. I am not quite sure what the simulator does during the operating point calculation if UIC is not used, but my guess is that it places a voltage source with 1 ohm resistance at the Initial Condition node. That affects the starting point it arrives at. By specifying UIC it doesn't calculate the operating point at all and so starts the transient analysis with the values specified.
Keith
...but my guess is that it places a voltage source with 1 ohm resistance at the Initial Condition node. ...
I checked it with various values to confirm that was the case. With 1V and 1 ohm you get 0.5V on the capacitor which confirms the extra 1 ohm. Provided you use the UIC option it is fine. I use SIMetrix and it also has a method of setting the initial voltage on a capacitor without using UIC, but that is not the standard SPICE method.
Keith
During bias calculations, PSpice clamps the voltages to specified values by attaching a voltage source with a 0.0002 ohm series resistor between
the specified nodes. After the bias point has been calculated and the transient analysis started, the node is released.
Presumed the assumption of a 1 ohm series resistor for initial condition voltage sources is true, it should be mentioned somewhere in the manuals. Otherwise cadence support must know about.
1 Ohm sounds unusually high, maybe reasonable though for IC design, the primary Cadence domain. The high value makes me think there could be a system parameter to modify it.
Pspice uses 0.2 milliohm with .IC commands B.T.W.:
If the UIC parameter is absent from the .TRAN control then a DC operating point is
calculated before the transient analysis. In this case the net voltages specified on the
.IC control are forced to the desired initial values during the DC operating point
solution. Once transient analysis begins this constraint is released. By default the
voltage force is effectively carried out via a 1Ω resistor. This can be changed with the
option setting ICRES.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?