On Saturday 10 Jan 2004 1:30 pm, J wrote:
do we get to see the spice? or does the code work in other spice sims?
No problem. here's the spice source for test.cir
First Circuit for Spice vs 1 0 24V R1 1 2 10 R2 2 0 1K R3 2 3 300 R4 3 0 500 *.OPTIONS nopage list nomod * Operating Point .op * DC Analysis .dc vs 10 24 1 *.PRINT DC I(R1) I(R2) I(R3) .end
And here is the terminal output when run on mandrake
[ianbell@localhost ianbell]$ cd spice [ianbell@localhost spice]$ spice3 -b >test.out test.cir Error: no data saved for D.C. Transfer curve analysis; analysis not run doAnalyses: Not found
run simulation(s) aborted [ianbell@localhost spice]$
And test.out is:
Circuit: First Circuit for Spice
Circuit: First Circuit for Spice Date: Sat Jan 10 16:38:31 2004
Operating point information:
Node Voltage ---- ------- V(3) 6.112469e+00 V(2) 9.779951e+00 V(1) 1.000000e+01
Source Current ------ -------
vs#branch -2.20049e-02
Resistor models (Simple linear resistor) model R
rsh 0 narrow 0 tc1 0 tc2 0 defw 1e-05
Resistor: Simple linear resistor device R4 R3 R2 R1 model R R R R resistance 500 300 1e+03 10 i 0.0122 0.0122 0.00978 0.022 p 0.0747 0.0448 0.0956 0.00484
Vsource: Independent voltage source device vs dc 10 acmag 0 i -0.022 p 0.22
CPU time since last call: 0.010 seconds.
Total CPU time: 0.010 seconds.
Current dynamic memory usage = 139264, Dynamic memory limit = -135745537.
Ian