Hello, I'm trying to model a simple capacitor charging circuit by monitoring the voltage across the capacitor over a period of time. The test circuit would have a 50V DC supply, connected in series with a 100kOhm resistor and a 10uF capacitor. The time constant for this should come out to be 1 second, so I think monitoring the voltage across the capacitor every 1/2 second for 10 seconds is reasonable to show the principle. Here's the netlist I'm using: -------- Simple Capacitor Charger V1 1 0 50V C1 2 0 10uF R1 1 2 100kOhm .print tran V(2) .op .tran .5 10 .end -------- When I run it with the command "gnucap -b ./capacitorcharge.ckt", I get this data: -------- Simple Capacitor Charger # 27. #Time V(2) 0. 50. 0.5 50. 1. 50. 1.5 50. 2. 50. 2.5 50. 3. 50. 3.5 50. 4. 50. 4.5 50. 5. 50. 5.5 50. 6. 50. 6.5 50. 7. 50. 7.5 50. 8. 50. 8.5 50. 9. 50. 9.5 50. 10. 50. --------- What's wrong with the netlist or command that makes it do this?
Thanks a lot, Chris _______________________________________________ Help-gnucap mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gnucap
