Skip to content

Instantly share code, notes, and snippets.

@guitorri
Created February 4, 2015 20:20
Show Gist options
  • Save guitorri/ccb78d17b9b1180296b8 to your computer and use it in GitHub Desktop.
Save guitorri/ccb78d17b9b1180296b8 to your computer and use it in GitHub Desktop.
<Qucs Schematic 0.0.19>
<Properties>
<View=66,-115,1022,580,1.00418,0,0>
<Grid=10,10,1>
<DataSet=capacitor.dat>
<DataDisplay=test.dpl>
<OpenDisplay=0>
<Script=capacitor_tr.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Titre>
<FrameText1=Auteur :>
<FrameText2=Date :>
<FrameText3=Version :>
</Properties>
<Symbol>
</Symbol>
<Components>
<GND * 1 120 200 0 0 0 0>
<IProbe I 1 150 40 -26 16 0 0>
<VProbe V 1 280 -40 28 -31 0 0>
<GND * 1 290 -10 0 0 0 0>
<C C1 1 340 40 -26 17 0 0 "100u" 1 "0" 0 "neutral" 0>
<R R1 1 230 40 -26 15 0 0 "1k" 1 "25" 1 "0.0" 0 "0.0" 0 "25" 0 "european" 0>
<Vrect V1 1 120 120 18 -26 0 1 "1 V" 1 "2s" 1 "2s" 1 "0.01 ns" 0 "0.01 ns" 0 "0 ns" 0>
<Eqn Eqn1 1 460 -60 -33 19 0 0 "R=1k" 1 "C=100u" 1 "TC=25" 1 "computed=(time<2)*(1-exp(-time/(R*C)))+(1-exp(-time/(R*C)))*(time>=2)*(exp(-(time-2.0)/(R*C)))" 1 "diff=V.Vt-computed" 1 "assert=abs(diff)<1e-6" 1 "yes" 1>
<.TR TR1 1 130 250 0 79 0 0 "lin" 1 "0" 1 "4s" 1 "2001" 1 "Trapezoidal" 1 "2" 0 "0.1 ns" 0 "1e-16" 1 "150" 0 "0.001" 1 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 1 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
</Components>
<Wires>
<120 200 400 200 "" 0 0 0 "">
<180 40 200 40 "" 0 0 0 "">
<270 -20 270 40 "" 0 0 0 "">
<290 -20 290 -10 "" 0 0 0 "">
<260 40 270 40 "" 0 0 0 "">
<400 40 400 200 "" 0 0 0 "">
<370 40 400 40 "" 0 0 0 "">
<270 40 310 40 "" 0 0 0 "">
<120 150 120 200 "" 0 0 0 "">
<120 40 120 90 "" 0 0 0 "">
</Wires>
<Diagrams>
<Rect 480 298 457 218 3 #c0c0c0 1 00 1 0 1 4 1 -0.1 0.5 1.1 1 -0.0013114 0.001 0.001 315 0 225 "" "" "">
<"computed" #0000ff 0 3 0 0 0>
<"V.Vt" #ff00ff 0 3 0 0 0>
<"diff" #996633 0 3 0 0 1>
</Rect>
<Tab 340 531 337 201 3 #c0c0c0 1 00 1 0 1 1 1 0 1 1 1 0 1 2001 315 0 225 "" "" "">
<"V.Vt" #0000ff 0 3 0 0 0>
<"computed" #0000ff 0 3 0 0 0>
<"diff" #0000ff 0 3 0 0 0>
<"assert" #0000ff 0 3 1 0 0>
</Tab>
</Diagrams>
<Paintings>
</Paintings>
<Qucs Schematic 0.0.19>
<Properties>
<View=0,-10,957,662,1,0,4>
<Grid=10,10,1>
<DataSet=resistor.dat>
<DataDisplay=>
<OpenDisplay=0>
<Script=>
<RunScript=0>
<showFrame=0>
<FrameText0=Titre>
<FrameText1=Auteur :>
<FrameText2=Date :>
<FrameText3=Version :>
</Properties>
<Symbol>
</Symbol>
<Components>
<IProbe current 1 450 130 -26 16 0 0>
<R R1 1 340 130 -26 15 0 0 "1 Ohm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<GND * 1 360 270 0 0 0 0>
<Vac V1 1 180 200 18 -26 0 1 "1 V" 1 "1 Hz" 0 "0" 0 "0" 0>
<Eqn Eqn1 1 60 30 -32 17 0 0 "sinfunc=sin(2*pi*time)" 1 "error=current.It-sin(2*pi*time)" 1 "abserror=abs(error)" 1 "assert=(abs(error))<1e-4" 1 "yes" 0>
<.TR TR1 1 590 270 0 77 0 0 "lin" 1 "0" 1 "0.5 s" 1 "500" 1 "Euler" 1 "2" 0 "1 ns" 0 "1e-16" 1 "150" 0 "1e-8" 1 "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>
</Components>
<Wires>
<370 130 420 130 "" 0 0 0 "">
<480 130 570 130 "" 0 0 0 "">
<570 130 570 270 "" 0 0 0 "">
<180 270 360 270 "" 0 0 0 "">
<180 230 180 270 "" 0 0 0 "">
<180 130 180 170 "" 0 0 0 "">
<180 130 310 130 "" 0 0 0 "">
<360 270 570 270 "" 0 0 0 "">
</Wires>
<Diagrams>
<Tab 42 580 511 253 3 #c0c0c0 1 00 1 0 1 1 1 0 1 1 1 0 1 500 315 0 225 "" "" "">
<"current.It" #0000ff 0 3 0 0 0>
<"sinfunc" #0000ff 0 3 0 0 0>
<"error" #0000ff 0 3 0 0 0>
<"abserror" #0000ff 0 5 0 0 0>
<"assert" #0000ff 0 3 1 0 0>
</Tab>
<Rect 598 206 262 196 3 #c0c0c0 1 00 1 0 0.1 0.5 1 -0.102629 0.5 1.10023 1 -1 0.5 1 315 0 225 "" "" "">
<"current.It" #0000ff 0 3 0 0 0>
<"sinfunc" #ff0000 0 3 0 0 0>
<"abserror" #ff00ff 0 3 0 0 1>
</Rect>
</Diagrams>
<Paintings>
</Paintings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment