mirror of
https://github.com/ra3xdh/qucs_s
synced 2025-03-28 21:13:26 +00:00
Update examples
This commit is contained in:
parent
67ee67789e
commit
d3a3543f4e
@ -1,54 +0,0 @@
|
||||
<Qucs Schematic 24.1.0>
|
||||
<Properties>
|
||||
<View=-17,-126,1556,780,0.745707,0,1>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=S-parameter_file_analysis.dat>
|
||||
<DataDisplay=S-parameter_file_analysis.dpl>
|
||||
<OpenDisplay=0>
|
||||
<Script=S-parameter_file_analysis.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Datum:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 5 250 140 0 0 0 0>
|
||||
<Pac P2 1 400 150 20 -25 0 1 "2" 1 "50 Ohm" 1 "0 dBm" 0 "1 GHz" 0 "26.85" 0 "true" 0>
|
||||
<GND * 5 400 200 0 0 0 0>
|
||||
<Pac P1 1 120 150 -97 -31 0 1 "1" 1 "50 Ohm" 1 "0 dBm" 0 "1 GHz" 0 "26.85" 0 "true" 0>
|
||||
<GND * 5 120 200 0 0 0 0>
|
||||
<.SP SP1 1 70 270 0 80 0 0 "lin" 1 "445kHz" 1 "465kHz" 1 "101" 1 "no" 0 "1" 0 "2" 0 "no" 0 "no" 0>
|
||||
<NutmegEq NutmegEq1 1 290 270 -27 16 0 0 "sp" 1 "S11_dB=dB(s_1_1)" 1 "S12_dB=dB(s_1_2)" 1 "S21_dB=dB(s_2_1)" 1 "S22_dB=dB(s_2_2)" 1>
|
||||
<NutmegEq NutmegEq2 1 290 430 -27 16 0 0 "sp" 1 "Phase_rad=cph(s_2_1)" 1 "Phase_deg=180/pi*Phase_rad" 1 "Group_Delay=-1*deriv(cph(S_2_1))/2/pi" 1>
|
||||
<SPfile X1 1 250 100 -26 -59 0 0 "FL455kHz.s2p" 1 "rectangular" 0 "linear" 0 "open" 0 "2" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<400 180 400 200 "" 0 0 0 "">
|
||||
<120 180 120 200 "" 0 0 0 "">
|
||||
<250 130 250 140 "" 0 0 0 "">
|
||||
<400 100 400 120 "" 0 0 0 "">
|
||||
<280 100 400 100 "" 0 0 0 "">
|
||||
<120 100 120 120 "" 0 0 0 "">
|
||||
<120 100 220 100 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 650 300 346 273 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 1 0 0 "" "" "">
|
||||
<"ngspice/ac.s21_db" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/ac.s11_db" #ff0000 0 3 0 0 1>
|
||||
</Rect>
|
||||
<Rect 650 660 348 277 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 1 0 0 "" "" "">
|
||||
<"ngspice/ac.phase_deg" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/ac.group_delay" #ff0000 0 3 0 0 1>
|
||||
</Rect>
|
||||
<Rect 1110 300 346 273 3 #c0c0c0 1 00 1 445000 5000 465000 1 -87.4291 20 6.33641 1 -40 10 2.39487 315 0 225 1 0 0 "" "" "">
|
||||
<"ngspice/ac.s12_db" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/ac.s22_db" #ff0000 0 3 0 0 1>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 60 -30 14 #000000 0 "S-parameter simulation of FL455kHz.s2p\nFix path to FL455kHz.s2p file">
|
||||
</Paintings>
|
77
examples/templates_ngspice/S-parameter_passive_analysis.sch
Normal file
77
examples/templates_ngspice/S-parameter_passive_analysis.sch
Normal file
@ -0,0 +1,77 @@
|
||||
<Qucs Schematic 24.1.0>
|
||||
<Properties>
|
||||
<View=-17,-20,1733,1115,1,0,240>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=S-parameter_passive_analysis.dat>
|
||||
<DataDisplay=S-parameter_passive_analysis.dpl>
|
||||
<OpenDisplay=0>
|
||||
<Script=S-parameter_passive_analysis.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Datum:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 5 240 220 0 0 0 0>
|
||||
<GND * 5 280 220 0 0 0 0>
|
||||
<GND * 5 440 220 0 0 0 0>
|
||||
<GND * 5 480 220 0 0 0 0>
|
||||
<Pac P2 1 620 170 20 -25 0 1 "2" 1 "50 Ohm" 1 "0 dBm" 0 "1 GHz" 0 "26.85" 0>
|
||||
<GND * 5 620 220 0 0 0 0>
|
||||
<GND * 5 120 220 0 0 0 0>
|
||||
<Pac P1 1 120 170 -97 -31 0 1 "1" 1 "50 Ohm" 1 "0 dBm" 0 "1 GHz" 0 "26.85" 0>
|
||||
<C C1 1 180 100 -26 -55 0 2 "4.7pF" 1 "" 0 "neutral" 0>
|
||||
<C C5 1 560 100 -32 -54 0 0 "4.7pF" 1 "" 0 "neutral" 0>
|
||||
<C C3 1 370 100 -26 -55 0 2 "1pF" 1 "" 0 "neutral" 0>
|
||||
<.SP SP1 1 40 310 0 80 0 0 "lin" 1 "107MHz" 1 "167MHz" 1 "101" 1 "no" 0 "1" 0 "2" 0 "no" 0 "no" 0>
|
||||
<C C4 1 480 170 16 -21 0 3 "15pF" 1 "" 0 "neutral" 0>
|
||||
<C C2 1 240 170 -73 -16 0 1 "15pF" 1 "" 0 "neutral" 0>
|
||||
<L L2 1 440 170 -71 -18 0 1 "66nH" 1 "" 0>
|
||||
<L L1 1 280 170 10 -18 0 1 "66nH" 1 "" 0>
|
||||
<NutmegEq NutmegEq1 1 250 330 -27 16 0 0 "sp" 1 "S11_dB=dB(s_1_1)" 1 "S12_dB=dB(s_1_2)" 1 "S21_dB=dB(s_2_1)" 1 "S22_dB=dB(s_2_2)" 1>
|
||||
<NutmegEq NutmegEq2 1 430 330 -27 16 0 0 "sp" 1 "Phase_rad=cph(s_2_1)" 1 "Phase_deg=180/pi*Phase_rad" 1 "Group_Delay=-1*deriv(cph(S_2_1))/2/pi" 1>
|
||||
<NutmegEq NutmegEq3 1 430 470 -27 16 0 0 "sp" 1 "GD=group_delay(s_2_1)" 1>
|
||||
</Components>
|
||||
<Wires>
|
||||
<280 200 280 220 "" 0 0 0 "">
|
||||
<280 100 340 100 "" 0 0 0 "">
|
||||
<280 100 280 140 "" 0 0 0 "">
|
||||
<240 100 280 100 "" 0 0 0 "">
|
||||
<400 100 440 100 "" 0 0 0 "">
|
||||
<440 100 480 100 "" 0 0 0 "">
|
||||
<440 100 440 140 "" 0 0 0 "">
|
||||
<480 100 530 100 "" 0 0 0 "">
|
||||
<480 100 480 140 "" 0 0 0 "">
|
||||
<480 200 480 220 "" 0 0 0 "">
|
||||
<440 200 440 220 "" 0 0 0 "">
|
||||
<590 100 620 100 "" 0 0 0 "">
|
||||
<620 100 620 140 "" 0 0 0 "">
|
||||
<620 200 620 220 "" 0 0 0 "">
|
||||
<120 200 120 220 "" 0 0 0 "">
|
||||
<120 100 120 140 "" 0 0 0 "">
|
||||
<120 100 150 100 "" 0 0 0 "">
|
||||
<210 100 240 100 "" 0 0 0 "">
|
||||
<240 100 240 140 "" 0 0 0 "">
|
||||
<240 200 240 220 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 780 290 346 273 3 #c0c0c0 1 00 0 1.07e+08 1e+07 1.67e+08 1 -1 0.5 1 1 -1 0.5 1 315 0 225 0 0 0 "" "" "">
|
||||
<"ngspice/ac.s21_db" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/ac.s11_db" #ff0000 0 3 0 0 1>
|
||||
</Rect>
|
||||
<Rect 790 640 348 277 3 #c0c0c0 1 00 0 1.07e+08 1e+07 1.67e+08 1 -1 0.5 1 1 -1 0.5 1 315 0 225 0 0 0 "" "" "">
|
||||
<"ngspice/ac.group_delay" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/ac.phase_deg" #ff0000 0 3 0 0 1>
|
||||
</Rect>
|
||||
<Rect 800 1000 348 277 3 #c0c0c0 1 00 0 1.07e+08 1e+07 1.67e+08 1 -5.01367e-09 2e-08 7.29107e-08 1 -313.117 100 100.023 315 0 225 0 0 0 "" "" "">
|
||||
<"ngspice/ac.gd" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/ac.phase_deg" #ff0000 0 3 0 0 1>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 90 0 14 #000000 0 "Group Delay using S-parameter simulation 132-142 MHz BPF">
|
||||
</Paintings>
|
16
examples/templates_ngspice/genericopa.cir
Normal file
16
examples/templates_ngspice/genericopa.cir
Normal file
@ -0,0 +1,16 @@
|
||||
* generic OpAmp model
|
||||
* gain, phase, offset, limits to power supply, input and output resistance
|
||||
.subckt genopa in+ in- vcc vee out POLE=20 GAIN=20k VOFFSET=5m ROUT=10 RIN=10Meg
|
||||
Rin in+ in+ {RIN}
|
||||
Voff in+ inoff dc {VOFFSET}
|
||||
G10 0 int inoff in- 100u
|
||||
R1 int 0 {GAIN/100u}
|
||||
C1 int 0 {1/(6.28*(GAIN/100u)*POLE)}
|
||||
Eout 2 0 int 0 1
|
||||
Rout 2 out {ROUT}
|
||||
Elow 3 0 vee 0 1
|
||||
Ehigh 8 0 vcc 0 1
|
||||
Dlow 3 int Dlimit
|
||||
Dhigh int 8 Dlimit
|
||||
.model Dlimit D N=0.01
|
||||
.ends genopa
|
Loading…
x
Reference in New Issue
Block a user