|
|
@ -9,10 +9,10 @@ version |
|
|
rusage |
|
|
rusage |
|
|
else |
|
|
else |
|
|
*** script for standard ngspice |
|
|
*** script for standard ngspice |
|
|
* Start optran without first iteration, |
|
|
|
|
|
|
|
|
* Start optran without first iteration, |
|
|
* without gmin stepping and without src stepping |
|
|
* without gmin stepping and without src stepping |
|
|
* optran duration 4s, step size 10 ms |
|
|
|
|
|
optran 1 0 0 4 1e-2 0 |
|
|
|
|
|
|
|
|
* optran step size 10 ms, duration 40s, |
|
|
|
|
|
optran 1 0 0 1e-2 4 0 |
|
|
tran 1u 10m |
|
|
tran 1u 10m |
|
|
echo |
|
|
echo |
|
|
* output power |
|
|
* output power |
|
|
@ -31,8 +31,8 @@ plot in out |
|
|
*plot V1#branch V2#branch ylimit -50 50 |
|
|
*plot V1#branch V2#branch ylimit -50 50 |
|
|
plot V1#branch V2#branch ylimit -15 15 |
|
|
plot V1#branch V2#branch ylimit -15 15 |
|
|
* output current |
|
|
* output current |
|
|
plot @rl1[i] |
|
|
|
|
|
*plot @rl1[i] xlimit 0 5m ylimit -0.3 0.3 |
|
|
|
|
|
|
|
|
plot @rl1[i] |
|
|
|
|
|
*plot @rl1[i] xlimit 0 5m ylimit -0.3 0.3 |
|
|
* resistance of thermistor2 TH1, TH2 |
|
|
* resistance of thermistor2 TH1, TH2 |
|
|
let rth1 = (v("net-_d3a1-pad1_") - v("net-_r11-pad1_")) / (@b.xth1.brtherm[i] + 1n) |
|
|
let rth1 = (v("net-_d3a1-pad1_") - v("net-_r11-pad1_")) / (@b.xth1.brtherm[i] + 1n) |
|
|
let rth2 = (v("net-_d1a1-pad2_") - v("net-_r12-pad1_")) / (@b.xth2.brtherm[i] + 1n) |
|
|
let rth2 = (v("net-_d1a1-pad2_") - v("net-_r12-pad1_")) / (@b.xth2.brtherm[i] + 1n) |
|
|
@ -47,7 +47,8 @@ tran 1u 100m |
|
|
fft out |
|
|
fft out |
|
|
set xbrushwidth=4 |
|
|
set xbrushwidth=4 |
|
|
set color0=white |
|
|
set color0=white |
|
|
|
|
|
plot mag(out) xlimit 0 10k |
|
|
|
|
|
* to see the harmonics |
|
|
plot mag(out) xlimit 0 10k ylimit 0 30m |
|
|
plot mag(out) xlimit 0 10k ylimit 0 30m |
|
|
|
|
|
|
|
|
end |
|
|
end |
|
|
.endc |
|
|
.endc |