mirror of
https://github.com/ra3xdh/qucs_s
synced 2025-03-28 21:13:26 +00:00
Add examples for SENS analysis
This commit is contained in:
parent
487c998299
commit
dc89686479
51
examples/ngspice/sensitivityACandDC.sch
Normal file
51
examples/ngspice/sensitivityACandDC.sch
Normal file
@ -0,0 +1,51 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=-104,-70,906,888,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=sensitivityACandDC.dat>
|
||||
<DataDisplay=sensitivityACandDC.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=sensitivityACandDC.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 210 260 0 0 0 0>
|
||||
<GND * 1 -30 270 0 0 0 0>
|
||||
<S4Q_V V1 1 -30 200 18 -26 0 1 "dc 5 ac 5" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<GND * 1 100 260 0 0 0 0>
|
||||
<R R1 1 210 150 15 -26 0 1 "1000" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R2 1 210 230 15 -26 0 1 "1000" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<C C1 1 100 230 17 -26 0 1 "1u" 1 "" 0 "neutral" 0>
|
||||
<.SENS SENS1 1 360 120 0 71 0 0 "v(dv)" 1 "R1" 1 "100" 1 "1000" 1 "100" 1>
|
||||
<.SENS_AC SENS2 1 610 550 0 71 0 0 "v(dv)" 1 "lin" 1 "1 Hz" 1 "1000 Hz" 1 "100" 1>
|
||||
</Components>
|
||||
<Wires>
|
||||
<210 180 210 200 "dv" 270 180 7 "">
|
||||
<-30 120 210 120 "" 0 0 0 "">
|
||||
<-30 120 -30 170 "" 0 0 0 "">
|
||||
<-30 230 -30 270 "" 0 0 0 "">
|
||||
<100 180 100 200 "" 0 0 0 "">
|
||||
<100 180 210 180 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 15 550 531 206 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/r1" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Tab 600 503 244 297 3 #c0c0c0 1 00 1 0 1 1 1 0 1 1 1 0 1 10 315 0 225 "" "" "">
|
||||
<"ngspice/r1" #0000ff 0 3 1 0 0>
|
||||
<"ngspice/r2" #0000ff 0 3 0 0 0>
|
||||
</Tab>
|
||||
<Rect 30 810 508 193 3 #c0c0c0 1 00 1 0 200 1000 1 -0.000125001 0.001 0.00137501 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.c1" #ff0000 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 40 10 12 #000000 0 "This is example of sensitivity analysis (DC and AC) usage \nwith Ngspice. It simulates an influence of resistor tolerance \non divider output voltage">
|
||||
</Paintings>
|
46
examples/xyce/sensitivityDC.sch
Normal file
46
examples/xyce/sensitivityDC.sch
Normal file
@ -0,0 +1,46 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,-199,1054,775,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=sensitivityDC.dat>
|
||||
<DataDisplay=sensitivityDC.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=sensitivityDC.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 380 270 0 0 0 0>
|
||||
<GND * 1 140 280 0 0 0 0>
|
||||
<S4Q_V V1 1 140 210 18 -26 0 1 "dc 5 ac 5" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<GND * 1 270 270 0 0 0 0>
|
||||
<R R1 1 380 160 15 -26 0 1 "1000" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R2 1 380 240 15 -26 0 1 "1000" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<C C1 1 270 240 17 -26 0 1 "1u" 1 "" 0 "neutral" 0>
|
||||
<.SENS_XYCE SENS1 1 530 130 0 71 0 0 "v(dv)" 1 "R1:R" 1 "V1" 1 "1" 1 "5" 1 "1" 1>
|
||||
</Components>
|
||||
<Wires>
|
||||
<380 190 380 210 "dv" 440 190 7 "">
|
||||
<140 130 380 130 "" 0 0 0 "">
|
||||
<140 130 140 180 "" 0 0 0 "">
|
||||
<140 240 140 280 "" 0 0 0 "">
|
||||
<270 190 270 210 "" 0 0 0 "">
|
||||
<270 190 380 190 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Tab 130 580 300 200 3 #c0c0c0 1 00 1 0 1 1 1 0 1 1 1 0 1 1 315 0 225 "" "" "">
|
||||
<"xyce/d{v(dv)}/d(R1_R)_Adj" #0000ff 0 3 1 0 0>
|
||||
</Tab>
|
||||
<Rect 541 677 356 296 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
|
||||
<"xyce/d{v(dv)}/d(R1_R)_Adj" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 320 30 12 #000000 0 "This is example of the DC sensitivity analysis with Xyce. \nThe influence of resistor tolerance on divider output voltage\nvalue is analysed.">
|
||||
</Paintings>
|
41
examples/xyce/sensitivityTRAN.sch
Normal file
41
examples/xyce/sensitivityTRAN.sch
Normal file
@ -0,0 +1,41 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,-40,947,893,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=sensitivityTRAN.dat>
|
||||
<DataDisplay=sensitivityTRAN.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=sensitivityTRAN.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 120 410 0 0 0 0>
|
||||
<GND * 1 250 410 0 0 0 0>
|
||||
<R R1 1 250 380 15 -26 0 1 "1k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<C C1 1 120 380 17 -26 0 1 "1u" 1 "" 0 "neutral" 0>
|
||||
<SpiceIC SpiceIC1 1 380 310 -9 17 0 0 "v(cap)=1.0" 1>
|
||||
<.SENS_TR_XYCE SENS1 1 510 240 0 71 0 0 "v(cap)" 1 "R1:R,C1:C" 1 "direct" 1 "0" 1 "5m" 1 "5u" 1 "no" 1>
|
||||
</Components>
|
||||
<Wires>
|
||||
<120 310 120 350 "" 0 0 0 "">
|
||||
<120 310 250 310 "cap" 210 280 54 "">
|
||||
<250 310 250 350 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 104 710 254 191 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
|
||||
<"xyce/tran.{v(cap)}" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 466 726 288 212 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.2 1 1 -1 0.2 1 315 0 225 "" "" "">
|
||||
<"xyce/tran.d{v(cap)}/d(C1_C)_Dir" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 140 160 12 #000000 0 "This is example of transisent sensitivity analysis usage \nwith Xyce. This example follows the Chapter 7.8.2 of the Xyce\nReference manual.">
|
||||
</Paintings>
|
Loading…
x
Reference in New Issue
Block a user