- #1
wolterh
- 7
- 0
I intend to use circuit simulation (namely ngspice because it runs on linux) to aid me through electric circuit studies.
However, I recently encountered a problem in a circuit I was simulating: the plots were not logical - a capacitor was taking no time to reach its maximum voltage.
At first I thought it was only my machine so I tried it on PSPICE and on ngspice online simulator, which yielded the plot attached with the following netlist:
Is the netlist wrong?
I found that the following netlist does model the capacitor alright, but the first I generated with a circuit designer application (gEDA) and the second I based on a website example.
Working netlist:
However, I recently encountered a problem in a circuit I was simulating: the plots were not logical - a capacitor was taking no time to reach its maximum voltage.
At first I thought it was only my machine so I tried it on PSPICE and on ngspice online simulator, which yielded the plot attached with the following netlist:
Code:
A simple RC circuit
V0 n1 GND DC 12V
R1 n2 GND 10k
C2 n1 n2 10F
.END
Is the netlist wrong?
I found that the following netlist does model the capacitor alright, but the first I generated with a circuit designer application (gEDA) and the second I based on a website example.
Working netlist:
Code:
Test circuit
V0 n1 GND DC 10V
R1 n1 n2 3.3k
C2 n2 GND 47uF
.END