Skip to content

Commit

Permalink
Merge 0a31728 into a16372c
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3xdh committed Jul 17, 2015
2 parents a16372c + 0a31728 commit f1b454a
Show file tree
Hide file tree
Showing 266 changed files with 13,683 additions and 559 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ moc_*.cpp
*.sch
*.sch~
*.dat
*.dat.ngspice
*.dat.xyce
*.dpl
qrc_*.cpp
moc_*.cxx
Expand Down
47 changes: 47 additions & 0 deletions examples/ngspice/B-sources.sch
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<Qucs Schematic 0.0.19>
<Properties>
<View=0,-13,909,677,1,0,120>
<Grid=10,10,1>
<DataSet=B-sources.dat>
<DataDisplay=B-sources.dpl>
<OpenDisplay=1>
<Script=4.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<GND * 1 210 220 0 0 0 0>
<GND * 1 100 220 0 0 0 0>
<GND * 1 110 400 0 0 0 0>
<Vac V1 1 100 190 18 -26 0 1 "1 V" 1 "10 kHz" 0 "0" 0 "0" 0>
<Vac V2 1 110 370 18 -26 0 1 "1 V" 1 "7 kHz" 0 "0" 0 "0" 0>
<.TR TR1 1 220 290 0 71 0 0 "lin" 1 "0" 1 "1 ms" 1 "200" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
<B B1 1 210 190 18 -26 0 1 "V=V(in1)*V(in2)" 1>
</Components>
<Wires>
<100 130 100 160 "" 0 0 0 "">
<100 130 110 130 "" 0 0 0 "">
<110 310 110 340 "" 0 0 0 "">
<110 310 120 310 "" 0 0 0 "">
<210 140 210 160 "" 0 0 0 "">
<210 140 260 140 "mul" 270 110 25 "">
<110 130 110 130 "in1" 140 100 0 "">
<120 310 120 310 "in2" 150 280 0 "">
</Wires>
<Diagrams>
<Rect 390 230 256 161 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
<"ngspice/tran.v(mul)" #0000ff 0 3 0 0 0>
</Rect>
<Rect 390 464 254 164 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
<"xyce/tran.V(MUL)" #0000ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 90 470 12 #000000 0 "This is a voltage multiplier that \nuses B-type spice sources.\nNOTE: This Example could be run \nonly with Ngspice/Xyce">
</Paintings>
90 changes: 90 additions & 0 deletions examples/ngspice/BJT-four.sch
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<Qucs Schematic 0.0.19>
<Properties>
<View=-127,-34,1020,1433,1,0,0>
<Grid=10,10,1>
<DataSet=BJT-four.dat>
<DataDisplay=BJT-four.dpl>
<OpenDisplay=1>
<Script=BJT-four.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<_BJT Q2N2222A_1 1 400 210 8 -26 0 0 "npn" 0 "8.11e-14" 0 "1" 0 "1" 0 "0.5" 0 "0.225" 0 "113" 0 "24" 0 "1.06e-11" 0 "2" 0 "0" 0 "2" 0 "205" 0 "4" 0 "0" 0 "0" 0 "0.137" 0 "0.343" 0 "1.37" 0 "2.95e-11" 0 "0.75" 0 "0.33" 0 "1.52e-11" 0 "0.75" 0 "0.33" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "3.97e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<GND * 1 400 330 0 0 0 0>
<GND * 1 280 310 0 0 0 0>
<R R1 1 280 240 15 -26 0 1 "2 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<R R2 1 400 290 15 -26 0 1 "470 Ohm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<GND * 1 150 310 0 0 0 0>
<C C1 1 230 210 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
<R R3 1 280 150 15 -26 0 1 "24 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<GND * 1 600 330 0 0 0 0>
<C C2 1 550 170 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
<Vdc V1 1 820 140 18 -26 0 1 "12 V" 1>
<GND * 1 820 170 0 0 0 0>
<R R5 1 400 130 15 -26 0 1 "4.7k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<R R4 1 600 300 15 -26 0 1 "Rload" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<IProbe Pr1 1 680 80 -26 16 1 2>
<Eqn Eqn1 1 150 390 -31 17 0 0 "Rload=47k" 1 "K=out.v/in.v" 1 "yes" 0>
<Vac V2 1 150 280 18 -26 0 1 "1000 mV" 1 "4 kHz" 1 "0" 0 "0" 0>
<.TR TR1 1 390 380 0 71 0 0 "lin" 1 "0" 1 "1 ms" 1 "1000" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
<.DC DC1 1 720 380 0 61 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<.AC AC1 1 550 380 0 61 0 0 "lin" 1 "100 Hz" 1 "10 MHz" 1 "2000" 1 "no" 0>
<.FOURIER FOUR1 1 240 380 0 71 0 0 "TR1" 1 "20" 1 "4kHz" 1 "V(out) V(out2)" 1>
</Components>
<Wires>
<280 80 280 120 "" 0 0 0 "">
<280 80 400 80 "" 0 0 0 "">
<280 180 280 210 "" 0 0 0 "">
<280 210 370 210 "" 0 0 0 "">
<400 80 400 100 "" 0 0 0 "">
<400 240 400 260 "" 0 0 0 "">
<400 320 400 330 "" 0 0 0 "">
<280 270 280 310 "" 0 0 0 "">
<260 210 280 210 "" 0 0 0 "">
<150 210 150 250 "" 0 0 0 "">
<150 210 200 210 "in" 150 160 6 "">
<400 160 400 170 "" 0 0 0 "">
<600 170 600 270 "" 0 0 0 "">
<580 170 600 170 "out" 610 130 2 "">
<400 170 400 180 "" 0 0 0 "">
<400 170 520 170 "out2" 490 120 50 "">
<400 80 650 80 "" 0 0 0 "">
<710 80 820 80 "" 0 0 0 "">
<820 80 820 110 "" 0 0 0 "">
</Wires>
<Diagrams>
<Rect 10 750 240 160 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
<"ngspice/tran.v(out)" #0000ff 0 3 0 0 0>
<"ngspice/tran.v(out2)" #ff0000 0 3 0 0 0>
<"ngspice/tran.v(in)" #ff00ff 0 3 0 0 0>
</Rect>
<Rect 690 740 240 160 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
<"ngspice/phase(v(out))" #0000ff 0 3 0 6 0>
</Rect>
<Rect 350 750 240 160 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
<"ngspice/magnitude(v(out))" #0000ff 0 3 0 6 0>
<"ngspice/magnitude(v(out2))" #ff0000 0 3 0 6 0>
</Rect>
<Rect 10 1030 240 160 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
<"xyce/magnitude(V(OUT))" #0000ff 0 3 0 6 0>
<"xyce/magnitude(V(OUT2))" #ff0000 0 3 0 6 0>
</Rect>
<Rect 380 1030 240 160 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
<"xyce/phase(V(OUT))" #0000ff 0 3 0 6 0>
<"xyce/phase(V(OUT2))" #ff0000 0 3 0 6 0>
</Rect>
<Tab 137 1413 611 281 3 #c0c0c0 1 00 1 0 1 1 1 0 1 1 1 0 1 20 315 0 225 "" "" "">
<"ngspice/magnitude(v(out))" #0000ff 0 3 0 0 0>
<"ngspice/phase(v(out))" #0000ff 0 3 0 0 0>
</Tab>
</Diagrams>
<Paintings>
<Text -40 90 12 #000000 0 "Fourier analysis example.\nCould be run only with Ngspice or Xyce">
</Paintings>
70 changes: 70 additions & 0 deletions examples/ngspice/BJT-noise.sch
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<Qucs Schematic 0.0.19>
<Properties>
<View=-126,-300,932,947,1,46,0>
<Grid=10,10,1>
<DataSet=BJT-noise.dat>
<DataDisplay=BJT-noise.dpl>
<OpenDisplay=1>
<Script=BJT-noise.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<_BJT Q2N2222A_1 1 400 210 8 -26 0 0 "npn" 0 "8.11e-14" 0 "1" 0 "1" 0 "0.5" 0 "0.225" 0 "113" 0 "24" 0 "1.06e-11" 0 "2" 0 "0" 0 "2" 0 "205" 0 "4" 0 "0" 0 "0" 0 "0.137" 0 "0.343" 0 "1.37" 0 "2.95e-11" 0 "0.75" 0 "0.33" 0 "1.52e-11" 0 "0.75" 0 "0.33" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "3.97e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<GND * 1 280 310 0 0 0 0>
<R R1 1 280 240 15 -26 0 1 "2 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<R R2 1 400 290 15 -26 0 1 "470 Ohm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<GND * 1 150 310 0 0 0 0>
<R R3 1 280 150 15 -26 0 1 "24 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<C C2 1 550 170 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
<R R5 1 400 130 15 -26 0 1 "4.7k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<Vac V2 1 150 280 18 -26 0 1 "1000 mV" 1 "4 kHz" 1 "0" 0 "0" 0>
<.NOISE NOISE1 1 160 380 0 71 0 0 "lin" 1 "1 Hz" 1 "10 MHz" 1 "100" 1 "v(out)" 1 "V2" 1>
<IProbe Pr1 1 490 80 -26 16 1 2>
<Vdc V1 1 680 140 18 -26 0 1 "12 V" 1>
<GND * 1 680 170 0 0 0 0>
<R R4 1 600 260 15 -26 0 1 "47k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<GND * 1 600 290 0 0 0 0>
<GND * 1 400 320 0 0 0 0>
<C C1 1 220 210 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
<.SW SW1 1 20 380 0 71 0 0 "NOISE1" 1 "lin" 1 "R5" 1 "1k" 1 "10k" 1 "20" 1>
</Components>
<Wires>
<280 80 280 120 "" 0 0 0 "">
<280 80 400 80 "" 0 0 0 "">
<280 180 280 210 "" 0 0 0 "">
<280 210 370 210 "" 0 0 0 "">
<400 80 400 100 "" 0 0 0 "">
<400 240 400 260 "" 0 0 0 "">
<280 270 280 310 "" 0 0 0 "">
<400 160 400 170 "" 0 0 0 "">
<400 170 400 180 "" 0 0 0 "">
<400 170 520 170 "" 0 0 0 "">
<400 80 460 80 "" 0 0 0 "">
<520 80 680 80 "" 0 0 0 "">
<680 80 680 110 "" 0 0 0 "">
<580 170 600 170 "out" 610 130 2 "">
<600 170 600 230 "" 0 0 0 "">
<250 210 280 210 "" 0 0 0 "">
<150 210 150 250 "" 0 0 0 "">
<150 210 190 210 "in" 150 160 6 "">
</Wires>
<Diagrams>
<Tab 330 566 561 190 3 #c0c0c0 1 00 1 0 1 1 1 0 1 1 1 0 1 21 315 0 225 "" "" "">
<"ngspice/inoise_total" #0000ff 0 3 0 0 0>
<"ngspice/onoise_total" #0000ff 0 3 0 0 0>
</Tab>
<Rect 60 849 442 219 3 #c0c0c0 1 00 1 1000 1000 10000 1 -6.37339e-10 2e-09 8.69074e-09 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/inoise_total" #0000ff 0 3 0 0 0>
<"ngspice/onoise_total" #ff0000 0 3 0 0 1>
</Rect>
</Diagrams>
<Paintings>
<Text 50 -40 12 #000000 0 "Here is a noise analysis exmple. This is BJT \none-stage amplifier. Simulate this circuit and plot\nonoise _ total and inoise _ total variables to obtain\ndependencies of total noise vs. collector resistance.\nNOTE: This Example could be run only with Ngspice">
</Paintings>
77 changes: 77 additions & 0 deletions examples/ngspice/BJT-swp.sch
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<Qucs Schematic 0.0.19>
<Properties>
<View=-41,-94,1091,1196,1,0,0>
<Grid=10,10,1>
<DataSet=BJT-swp.dat>
<DataDisplay=BJT-swp.dpl>
<OpenDisplay=1>
<Script=BJT-swp.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Название>
<FrameText1=Чертил:>
<FrameText2=Дата:>
<FrameText3=Версия:>
</Properties>
<Symbol>
</Symbol>
<Components>
<_BJT Q2N2222A_1 1 370 270 8 -26 0 0 "npn" 0 "8.11e-14" 0 "1" 0 "1" 0 "0.5" 0 "0.225" 0 "113" 0 "24" 0 "1.06e-11" 0 "2" 0 "0" 0 "2" 0 "205" 0 "4" 0 "0" 0 "0" 0 "0.137" 0 "0.343" 0 "1.37" 0 "2.95e-11" 0 "0.75" 0 "0.33" 0 "1.52e-11" 0 "0.75" 0 "0.33" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "3.97e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<GND * 1 370 390 0 0 0 0>
<GND * 1 250 370 0 0 0 0>
<R R3 1 250 300 15 -26 0 1 "2 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<R R4 1 370 350 15 -26 0 1 "470 Ohm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<GND * 1 120 370 0 0 0 0>
<R R1 1 250 210 15 -26 0 1 "24 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<R R5 1 570 360 15 -26 0 1 "47k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<GND * 1 570 390 0 0 0 0>
<IProbe Pr1 1 650 140 -26 16 0 0>
<Vdc V1 1 790 200 18 -26 0 1 "12 V" 1>
<GND * 1 790 230 0 0 0 0>
<R R2 1 370 190 15 -26 0 1 "2k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<Vac V2 1 120 340 18 -26 0 1 "200 mV" 1 "10 kHz" 1 "0" 0 "0" 0>
<Eqn Eqn1 1 860 430 -31 17 0 0 "Rload=47k" 1 "K=out.v/in.v" 1 "Pwr=(out.Vt*out.Vt)/Rload" 1 "yes" 0>
<.DC DC1 1 480 430 0 61 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<.SW SW1 1 210 430 0 71 0 0 "AC1" 1 "lin" 1 "R2" 1 "1k" 1 "10k" 1 "4" 1>
<.SW SW2 1 80 430 0 71 0 0 "TR1" 1 "lin" 1 "R2" 1 "1k" 1 "10k" 1 "3" 1>
<.TR TR1 1 350 430 0 71 0 0 "lin" 1 "0" 1 "0.5 ms" 1 "200" 1 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
<C C1 1 200 270 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
<C C2 1 520 230 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
<.AC AC1 1 650 430 0 43 0 0 "lin" 1 "1 Hz" 1 "10 MHz" 1 "2000" 1 "no" 0>
</Components>
<Wires>
<250 140 250 180 "" 0 0 0 "">
<250 140 370 140 "" 0 0 0 "">
<250 240 250 270 "" 0 0 0 "">
<250 270 340 270 "" 0 0 0 "">
<370 140 370 160 "" 0 0 0 "">
<370 220 370 230 "" 0 0 0 "">
<370 300 370 320 "" 0 0 0 "">
<370 380 370 390 "" 0 0 0 "">
<250 330 250 370 "" 0 0 0 "">
<370 230 370 240 "" 0 0 0 "">
<570 230 570 330 "" 0 0 0 "">
<550 230 570 230 "out" 580 190 2 "">
<370 230 490 230 "" 0 0 0 "">
<370 140 620 140 "" 0 0 0 "">
<680 140 790 140 "" 0 0 0 "">
<790 140 790 170 "" 0 0 0 "">
<230 270 250 270 "" 0 0 0 "">
<120 270 120 310 "" 0 0 0 "">
<120 270 170 270 "in" 120 220 6 "">
</Wires>
<Diagrams>
<Rect 512 870 382 210 3 #c0c0c0 1 10 1 0 1 0 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/ac.k" #0000ff 0 3 0 0 0>
</Rect>
<Rect 80 874 352 217 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/tran.v(in)" #0000ff 0 3 0 0 0>
<"ngspice/tran.v(out)" #ff0000 0 3 0 0 0>
</Rect>
<Rect 110 1120 444 168 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
<"ngspice/tran.pwr" #0000ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 670 310 12 #000000 0 "This schematic shows how to utilize Parameter sweep\nwith Ngpice simulation.\nNOTE: This Example could be run only with Ngspice ">
</Paintings>
72 changes: 72 additions & 0 deletions examples/ngspice/BJT.sch
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<Qucs Schematic 0.0.19>
<Properties>
<View=-78,26,1020,1234,1,169,420>
<Grid=10,10,1>
<DataSet=BJT.dat>
<DataDisplay=BJT.dpl>
<OpenDisplay=1>
<Script=BJT.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<_BJT Q2N2222A_1 1 400 210 8 -26 0 0 "npn" 0 "8.11e-14" 0 "1" 0 "1" 0 "0.5" 0 "0.225" 0 "113" 0 "24" 0 "1.06e-11" 0 "2" 0 "0" 0 "2" 0 "205" 0 "4" 0 "0" 0 "0" 0 "0.137" 0 "0.343" 0 "1.37" 0 "2.95e-11" 0 "0.75" 0 "0.33" 0 "1.52e-11" 0 "0.75" 0 "0.33" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "3.97e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<GND * 1 400 330 0 0 0 0>
<GND * 1 280 310 0 0 0 0>
<R R1 1 280 240 15 -26 0 1 "2 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<R R2 1 400 290 15 -26 0 1 "470 Ohm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<GND * 1 150 310 0 0 0 0>
<C C1 1 230 210 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
<R R3 1 280 150 15 -26 0 1 "24 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<GND * 1 600 330 0 0 0 0>
<C C2 1 550 170 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
<Vdc V1 1 820 140 18 -26 0 1 "12 V" 1>
<GND * 1 820 170 0 0 0 0>
<.TR TR1 1 330 380 0 71 0 0 "lin" 1 "0" 1 "1 ms" 1 "1000" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
<R R5 1 400 130 15 -26 0 1 "4.7k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<Vac V2 1 150 280 18 -26 0 1 "200 mV" 1 "4 kHz" 1 "0" 0 "0" 0>
<.DC DC1 1 660 380 0 61 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<R R4 1 600 300 15 -26 0 1 "Rload" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<Eqn Eqn1 1 150 390 -31 17 0 0 "Rload=47k" 1 "K=out.v/in.v" 1 "Pwr=(out.Vt*out.Vt)/Rload" 1 "yes" 0>
<IProbe Pr1 1 680 80 -26 16 1 2>
<.AC AC1 1 490 380 0 61 0 0 "log" 1 "100 Hz" 1 "10 MHz" 1 "101" 1 "no" 0>
</Components>
<Wires>
<280 80 280 120 "" 0 0 0 "">
<280 80 400 80 "" 0 0 0 "">
<280 180 280 210 "" 0 0 0 "">
<280 210 370 210 "" 0 0 0 "">
<400 80 400 100 "" 0 0 0 "">
<400 240 400 260 "" 0 0 0 "">
<400 320 400 330 "" 0 0 0 "">
<280 270 280 310 "" 0 0 0 "">
<260 210 280 210 "" 0 0 0 "">
<150 210 150 250 "" 0 0 0 "">
<150 210 200 210 "in" 150 160 6 "">
<400 160 400 170 "" 0 0 0 "">
<600 170 600 270 "" 0 0 0 "">
<580 170 600 170 "out" 610 130 2 "">
<400 170 400 180 "" 0 0 0 "">
<400 170 520 170 "" 0 0 0 "">
<400 80 650 80 "" 0 0 0 "">
<710 80 820 80 "" 0 0 0 "">
<820 80 820 110 "" 0 0 0 "">
</Wires>
<Diagrams>
<Rect 510 1136 368 271 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/tran.i(pr1)" #0000ff 0 3 0 0 0>
<"ngspice/tran.pwr" #ff0000 0 3 0 0 1>
</Rect>
<Rect 506 835 387 269 3 #c0c0c0 1 10 1 0 1 0 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/ac.k" #0000ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 110 580 12 #000000 0 "This example shows the following \nfeatures of Ngspice support:\n1. Semiconductor devices usage\n2. AC and TRAN analysis\n3. Current probes usage\n4. Parametrization usage. Rload is parameter.\n5. Postprocessing usage in frequency domain.\n Volatge gain K calculation.\n6. Postrprocessing usage in time domain.\n\nNOTE: You can run this example with Qucsator and\n Ngspice and compare results.">
</Paintings>

0 comments on commit f1b454a

Please sign in to comment.