diff options
Diffstat (limited to 'Examples/Halfwave_Rectifier')
10 files changed, 59 insertions, 182 deletions
diff --git a/Examples/Halfwave_Rectifier/D.lib b/Examples/Halfwave_Rectifier/D.lib index 974dd402..8a7fb4da 100644 --- a/Examples/Halfwave_Rectifier/D.lib +++ b/Examples/Halfwave_Rectifier/D.lib @@ -1 +1,2 @@ -.model 1n4148 D( is=2.495E-09 rs=4.755E-01 n=1.679E+00 tt=3.030E-09 cjo=1.700E-12 vj=1 m=1.959E-01 bv=1.000E+02 ibv=1.000E-04 ) +.model 1n4148 D(is=2.495E-09 rs=4.755E-01 n=1.679E+00 tt=3.030E-09 cjo=1.700E-12 vj=1 m=1.959E-01 bv=1.000E+02 ibv=1.000E-04) + diff --git a/Examples/Halfwave_Rectifier/Halfwave_Rectifier-cache.lib b/Examples/Halfwave_Rectifier/Halfwave_Rectifier-cache.lib index 73175049..fc307214 100644 --- a/Examples/Halfwave_Rectifier/Halfwave_Rectifier-cache.lib +++ b/Examples/Halfwave_Rectifier/Halfwave_Rectifier-cache.lib @@ -1,11 +1,11 @@ EESchema-LIBRARY Version 2.3 #encoding utf-8 # -# D +# D-RESCUE-Halfwave_Rectifier # -DEF D D 0 40 N N 1 F N +DEF D-RESCUE-Halfwave_Rectifier D 0 40 N N 1 F N F0 "D" 0 100 50 H V C CNN -F1 "D" 0 -100 50 H V C CNN +F1 "D-RESCUE-Halfwave_Rectifier" 0 -100 50 H V C CNN F2 "" 0 0 60 H V C CNN F3 "" 0 0 60 H V C CNN $FPLIST @@ -16,8 +16,8 @@ $FPLIST *SingleDiode* $ENDFPLIST DRAW -P 2 0 1 6 50 50 50 -50 N -P 3 0 1 0 -50 50 50 0 -50 -50 F +P 2 0 1 6 50 50 50 -50 N +P 3 0 1 0 -50 50 50 0 -50 -50 F X A 1 -150 0 100 R 40 40 1 1 P X K 2 150 0 100 L 40 40 1 1 P ENDDRAW @@ -28,10 +28,10 @@ ENDDEF DEF GND #PWR 0 0 Y Y 1 F P F0 "#PWR" 0 -250 50 H I C CNN F1 "GND" 0 -150 50 H V C CNN -F2 "" 0 0 50 H V C CNN -F3 "" 0 0 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN DRAW -P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N +P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N X GND 1 0 0 0 D 50 50 1 1 W N ENDDRAW ENDDEF @@ -39,13 +39,13 @@ ENDDEF # PWR_FLAG # DEF PWR_FLAG #FLG 0 0 N N 1 F P -F0 "#FLG" 0 95 50 H I C CNN -F1 "PWR_FLAG" 0 180 50 H V C CNN -F2 "" 0 0 50 H V C CNN -F3 "" 0 0 50 H V C CNN +F0 "#FLG" 0 75 50 H I C CNN +F1 "PWR_FLAG" 0 150 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN DRAW X pwr 1 0 0 0 U 50 50 0 0 w -P 6 0 1 0 0 0 0 50 -75 100 0 150 75 100 0 50 N +P 6 0 1 0 0 0 0 50 -40 75 0 100 40 75 0 50 N ENDDRAW ENDDEF # diff --git a/Examples/Halfwave_Rectifier/Halfwave_Rectifier-rescue.lib b/Examples/Halfwave_Rectifier/Halfwave_Rectifier-rescue.lib index 89ca7210..986e2d81 100644 --- a/Examples/Halfwave_Rectifier/Halfwave_Rectifier-rescue.lib +++ b/Examples/Halfwave_Rectifier/Halfwave_Rectifier-rescue.lib @@ -1,21 +1,25 @@ EESchema-LIBRARY Version 2.3 #encoding utf-8 # -# R-RESCUE-Halfwave_Rectifier +# D-RESCUE-Halfwave_Rectifier # -DEF R-RESCUE-Halfwave_Rectifier R 0 0 N Y 1 F N -F0 "R" 80 0 50 V V C CNN -F1 "R-RESCUE-Halfwave_Rectifier" 0 0 50 V V C CNN -F2 "" -70 0 30 V V C CNN -F3 "" 0 0 30 H V C CNN +DEF D-RESCUE-Halfwave_Rectifier D 0 40 N N 1 F N +F0 "D" 0 100 50 H V C CNN +F1 "D-RESCUE-Halfwave_Rectifier" 0 -100 50 H V C CNN +F2 "" 0 0 60 H V C CNN +F3 "" 0 0 60 H V C CNN $FPLIST - R_* - Resistor_* + Diode_* + D-Pak_TO252AA + *SingleDiode + *_Diode_* + *SingleDiode* $ENDFPLIST DRAW -S -40 -100 40 100 0 1 10 N -X ~ 1 0 150 50 D 60 60 1 1 P -X ~ 2 0 -150 50 U 60 60 1 1 P +P 2 0 1 6 50 50 50 -50 N +P 3 0 1 0 -50 50 50 0 -50 -50 F +X A 1 -150 0 100 R 40 40 1 1 P +X K 2 150 0 100 L 40 40 1 1 P ENDDRAW ENDDEF # diff --git a/Examples/Halfwave_Rectifier/Halfwave_Rectifier.cir b/Examples/Halfwave_Rectifier/Halfwave_Rectifier.cir index 47baae9a..c3ba30c1 100644 --- a/Examples/Halfwave_Rectifier/Halfwave_Rectifier.cir +++ b/Examples/Halfwave_Rectifier/Halfwave_Rectifier.cir @@ -1,6 +1,6 @@ -* /home/fossee/UpdatedExamples/Halfwave_Rectifier/Halfwave_Rectifier.cir +* /home/saurabh/Downloads/eSim-1.1.2/Examples/Halfwave_Rectifier/Halfwave_Rectifier.cir -* EESchema Netlist Version 1.1 (Spice format) creation date: Thu Mar 3 22:27:06 2016 +* EESchema Netlist Version 1.1 (Spice format) creation date: Mon Nov 26 17:14:26 2018 * To exclude a component from the Spice Netlist add [Spice_Netlist_Enabled] user FIELD set to: N * To reorder the component spice node sequence add [Spice_Node_Sequence] user FIELD and define sequence: 2,1,0 diff --git a/Examples/Halfwave_Rectifier/Halfwave_Rectifier.cir.out b/Examples/Halfwave_Rectifier/Halfwave_Rectifier.cir.out index c9dbd104..94580e52 100644 --- a/Examples/Halfwave_Rectifier/Halfwave_Rectifier.cir.out +++ b/Examples/Halfwave_Rectifier/Halfwave_Rectifier.cir.out @@ -1,4 +1,4 @@ -* /home/fossee/updatedexamples/halfwave_rectifier/halfwave_rectifier.cir +* /home/saurabh/downloads/esim-1.1.2/examples/halfwave_rectifier/halfwave_rectifier.cir .include D.lib d1 in out 1N4148 diff --git a/Examples/Halfwave_Rectifier/Halfwave_Rectifier.pro b/Examples/Halfwave_Rectifier/Halfwave_Rectifier.pro index 7040c291..3c37a933 100644 --- a/Examples/Halfwave_Rectifier/Halfwave_Rectifier.pro +++ b/Examples/Halfwave_Rectifier/Halfwave_Rectifier.pro @@ -1,4 +1,4 @@ -update=Thu Mar 3 22:16:44 2016 +update=Fri Jun 14 11:53:53 2019 version=1 last_client=eeschema [general] @@ -31,17 +31,17 @@ NetIExt=net version=1 LibDir= [eeschema/libraries] -LibName1=eSim_Analog -LibName2=eSim_Devices -LibName3=eSim_Digital -LibName4=eSim_Hybrid -LibName5=eSim_Miscellaneous -LibName6=eSim_Plot -LibName7=eSim_Power -LibName8=eSim_Sources -LibName9=eSim_Subckt -LibName10=eSim_User -LibName11=Halfwave_Rectifier-rescue +LibName1=Halfwave_Rectifier-rescue +LibName2=eSim_Analog +LibName3=eSim_Devices +LibName4=eSim_Digital +LibName5=eSim_Hybrid +LibName6=eSim_Miscellaneous +LibName7=eSim_Plot +LibName8=eSim_Power +LibName9=eSim_Sources +LibName10=eSim_Subckt +LibName11=eSim_User LibName12=power LibName13=device LibName14=transistors @@ -71,3 +71,13 @@ LibName37=opto LibName38=atmel LibName39=contrib LibName40=valves +LibName41=/home/saurabh/Downloads/eSim-1.1.2/kicadSchematicLibrary/eSim_Analog +LibName42=/home/saurabh/Downloads/eSim-1.1.2/kicadSchematicLibrary/eSim_Devices +LibName43=/home/saurabh/Downloads/eSim-1.1.2/kicadSchematicLibrary/eSim_Digital +LibName44=/home/saurabh/Downloads/eSim-1.1.2/kicadSchematicLibrary/eSim_Hybrid +LibName45=/home/saurabh/Downloads/eSim-1.1.2/kicadSchematicLibrary/eSim_Miscellaneous +LibName46=/home/saurabh/Downloads/eSim-1.1.2/kicadSchematicLibrary/eSim_Plot +LibName47=/home/saurabh/Downloads/eSim-1.1.2/kicadSchematicLibrary/eSim_Power +LibName48=/home/saurabh/Downloads/eSim-1.1.2/kicadSchematicLibrary/eSim_Sources +LibName49=/home/saurabh/Downloads/eSim-1.1.2/kicadSchematicLibrary/eSim_Subckt +LibName50=/home/saurabh/Downloads/eSim-1.1.2/kicadSchematicLibrary/eSim_User diff --git a/Examples/Halfwave_Rectifier/Halfwave_Rectifier.sch b/Examples/Halfwave_Rectifier/Halfwave_Rectifier.sch index a79d3d97..d49ce31f 100644 --- a/Examples/Halfwave_Rectifier/Halfwave_Rectifier.sch +++ b/Examples/Halfwave_Rectifier/Halfwave_Rectifier.sch @@ -1,4 +1,5 @@ EESchema Schematic File Version 2 +LIBS:Halfwave_Rectifier-rescue LIBS:eSim_Analog LIBS:eSim_Devices LIBS:eSim_Digital @@ -9,7 +10,6 @@ LIBS:eSim_Power LIBS:eSim_Sources LIBS:eSim_Subckt LIBS:eSim_User -LIBS:Halfwave_Rectifier-rescue LIBS:power LIBS:device LIBS:transistors @@ -39,6 +39,7 @@ LIBS:opto LIBS:atmel LIBS:contrib LIBS:valves +LIBS:eSim_PSpice LIBS:Halfwave_Rectifier-cache EELAYER 25 0 EELAYER END @@ -55,7 +56,7 @@ Comment3 "" Comment4 "" $EndDescr $Comp -L D D1 +L D-RESCUE-Halfwave_Rectifier D1 U 1 1 5593CBB8 P 5700 2900 F 0 "D1" H 5700 3000 50 0000 C CNN diff --git a/Examples/Halfwave_Rectifier/Halfwave_Rectifier_Previous_Values.xml b/Examples/Halfwave_Rectifier/Halfwave_Rectifier_Previous_Values.xml new file mode 100644 index 00000000..b662ee0a --- /dev/null +++ b/Examples/Halfwave_Rectifier/Halfwave_Rectifier_Previous_Values.xml @@ -0,0 +1 @@ +<KicadtoNgspice><source><v1 name="Source type">sine<field1 name="Offset Value">0</field1><field2 name="Amplitude">20</field2><field3 name="Frequency">50</field3><field4 name="Delay Time">0</field4><field5 name="Damping Factor">0</field5></v1></source><model><u1 name="type">transfo<field1 name="Enter the H1 array " /><field2 name="Enter the primary number of turns (default=310) ">100</field2><field3 name="Enter iron core area (default=1)" /><field4 name="Enter iron core length (default=0.01)" /><field5 name="Enter the secondary number of turns (default=620)">200</field5><field6 name="Enter the B1 array " /></u1></model><devicemodel><d1><field>/home/saurabh/Downloads/eSim-1.1.2/src/deviceModelLibrary/Diode/D.lib</field></d1></devicemodel><subcircuit /><analysis><ac><field1 name="Lin">true</field1><field2 name="Dec">false</field2><field3 name="Oct">false</field3><field4 name="Start Frequency" /><field5 name="Stop Frequency" /><field6 name="No. of points" /><field7 name="Start Fre Combo">Hz</field7><field8 name="Stop Fre Combo">Hz</field8></ac><dc><field1 name="Source 1" /><field2 name="Start" /><field3 name="Increment" /><field4 name="Stop" /><field5 name="Operating Point">0</field5><field6 name="Start Combo">Volts or Amperes</field6><field7 name="Increment Combo">Volts or Amperes</field7><field8 name="Stop Combo">Volts or Amperes</field8><field9 name="Source 2" /><field10 name="Start" /><field11 name="Increment" /><field12 name="Stop" /><field13 name="Start Combo">Volts or Amperes</field13><field14 name="Increment Combo">Volts or Amperes</field14><field15 name="Stop Combo">Volts or Amperes</field15></dc><tran><field1 name="Start Time">0</field1><field2 name="Step Time">10</field2><field3 name="Stop Time">100</field3><field4 name="Start Combo">ms</field4><field5 name="Step Combo">ms</field5><field6 name="Stop Combo">ms</field6></tran></analysis></KicadtoNgspice>
\ No newline at end of file diff --git a/Examples/Halfwave_Rectifier/plot_data_i.txt b/Examples/Halfwave_Rectifier/plot_data_i.txt deleted file mode 100644 index 65fff7aa..00000000 --- a/Examples/Halfwave_Rectifier/plot_data_i.txt +++ /dev/null @@ -1,70 +0,0 @@ - * /home/fossee/updatedexamples/halfwave_rectifier/halfwave_rectifier.cir - Transient Analysis Wed Aug 30 12:10:05 2017 --------------------------------------------------------------------------------- -Index time alli --------------------------------------------------------------------------------- -0 0.000000e+00 1.414467e-25 -1 1.000000e-05 -1.88517e-08 -2 2.000000e-05 -5.34059e-08 -3 4.000000e-05 -8.07589e-07 -4 8.000000e-05 -6.26389e-05 -5 1.512011e-04 -4.26203e-04 -6 2.936034e-04 -1.27083e-03 -7 4.390943e-04 -2.15513e-03 -8 7.300763e-04 -3.92539e-03 -9 1.312040e-03 -7.35611e-03 -10 2.075513e-03 -1.14564e-02 -11 3.145626e-03 -1.60072e-02 -12 4.841123e-03 -1.92745e-02 -13 6.841123e-03 -1.60554e-02 -14 8.841123e-03 -6.47598e-03 -15 1.084112e-02 5.471479e-09 -16 1.245580e-02 1.118630e-08 -17 1.405009e-02 1.355076e-10 -18 1.604025e-02 4.726779e-09 -19 1.804025e-02 -6.99878e-09 -20 2.004025e-02 -8.29787e-07 -21 2.204025e-02 -1.12812e-02 -22 2.404025e-02 -1.83871e-02 -23 2.604025e-02 -1.82297e-02 -24 2.804025e-02 -1.08791e-02 -25 2.983538e-02 -5.03219e-04 -26 3.160510e-02 2.847041e-08 -27 3.360510e-02 -1.49506e-08 -28 3.560510e-02 2.142612e-08 -29 3.760510e-02 -2.21946e-08 -30 3.960510e-02 1.463304e-08 -31 4.160510e-02 -9.00173e-03 -32 4.360510e-02 -1.74040e-02 -33 4.560510e-02 -1.89220e-02 -34 4.760510e-02 -1.29862e-02 -35 4.960510e-02 -1.88591e-03 -36 5.148255e-02 5.622989e-08 -37 5.348255e-02 -4.23102e-08 -38 5.548255e-02 4.924003e-08 -39 5.748255e-02 -4.95783e-08 -40 5.948255e-02 4.246056e-08 -41 6.148255e-02 -8.32419e-03 -42 6.348255e-02 -1.70616e-02 -43 6.490206e-02 -1.92758e-02 -44 6.681134e-02 -1.61505e-02 -45 6.881134e-02 -6.64965e-03 -46 7.081134e-02 5.346757e-08 -47 7.281134e-02 -3.73092e-08 -48 7.481134e-02 4.665578e-08 -49 7.681134e-02 -4.45932e-08 -50 7.881134e-02 3.973940e-08 -51 8.081134e-02 -4.41471e-03 -52 8.281134e-02 -1.47666e-02 -53 8.481134e-02 -1.92472e-02 -54 8.681134e-02 -1.61544e-02 - -Index time alli --------------------------------------------------------------------------------- -55 8.881134e-02 -6.64601e-03 -56 9.081134e-02 1.044823e-07 -57 9.281134e-02 -8.83537e-08 -58 9.481134e-02 9.770010e-08 -59 9.681134e-02 -9.56375e-08 -60 9.881134e-02 9.078352e-08 -61 1.000000e-01 -1.04215e-07 diff --git a/Examples/Halfwave_Rectifier/plot_data_v.txt b/Examples/Halfwave_Rectifier/plot_data_v.txt deleted file mode 100644 index dbafde33..00000000 --- a/Examples/Halfwave_Rectifier/plot_data_v.txt +++ /dev/null @@ -1,70 +0,0 @@ - * /home/fossee/updatedexamples/halfwave_rectifier/halfwave_rectifier.cir - Transient Analysis Wed Aug 30 12:10:05 2017 --------------------------------------------------------------------------------- -Index time in out --------------------------------------------------------------------------------- -0 0.000000e+00 0.000000e+00 -1.41447e-22 -1 1.000000e-05 6.283175e-02 1.885174e-05 -2 2.000000e-05 1.256629e-01 5.340593e-05 -3 4.000000e-05 2.513208e-01 8.075888e-04 -4 8.000000e-05 5.026019e-01 6.263887e-02 -5 1.512011e-04 9.496675e-01 4.262034e-01 -6 2.936034e-04 1.842150e+00 1.270834e+00 -7 4.390943e-04 2.750170e+00 2.155131e+00 -8 7.300763e-04 4.547091e+00 3.925386e+00 -9 1.312040e-03 8.012329e+00 7.356114e+00 -10 2.075513e-03 1.213621e+01 1.145643e+01 -11 3.145626e-03 1.670104e+01 1.600721e+01 -12 4.841123e-03 1.997509e+01 1.927448e+01 -13 6.841123e-03 1.674670e+01 1.605540e+01 -14 8.841123e-03 7.121646e+00 6.475982e+00 -15 1.084112e-02 -5.22364e+00 -5.47148e-06 -16 1.245580e-02 -1.39444e+01 -1.11863e-05 -17 1.405009e-02 -1.91160e+01 -1.35506e-07 -18 1.604025e-02 -1.89415e+01 -4.72677e-06 -19 1.804025e-02 -1.15502e+01 6.998785e-06 -20 2.004025e-02 2.528769e-01 8.297867e-04 -21 2.204025e-02 1.195935e+01 1.128116e+01 -22 2.404025e-02 1.909775e+01 1.838710e+01 -23 2.604025e-02 1.894147e+01 1.822971e+01 -24 2.804025e-02 1.155018e+01 1.087906e+01 -25 2.983538e-02 1.033888e+00 5.032195e-01 -26 3.160510e-02 -9.66313e+00 -2.84704e-05 -27 3.360510e-02 -1.81102e+01 1.495063e-05 -28 3.560510e-02 -1.96397e+01 -2.14261e-05 -29 3.760510e-02 -1.36676e+01 2.219458e-05 -30 3.960510e-02 -2.47488e+00 -1.46330e-05 -31 4.160510e-02 9.663130e+00 9.001731e+00 -32 4.360510e-02 1.811016e+01 1.740402e+01 -33 4.560510e-02 1.963972e+01 1.892202e+01 -34 4.760510e-02 1.366757e+01 1.298623e+01 -35 4.960510e-02 2.474883e+00 1.885911e+00 -36 5.148255e-02 -8.98200e+00 -5.62299e-05 -37 5.348255e-02 -1.77701e+01 4.231020e-05 -38 5.548255e-02 -1.97706e+01 -4.92400e-05 -39 5.748255e-02 -1.42194e+01 4.957831e-05 -40 5.948255e-02 -3.23691e+00 -4.24606e-05 -41 6.148255e-02 8.982002e+00 8.324191e+00 -42 6.348255e-02 1.777010e+01 1.706158e+01 -43 6.490206e-02 1.999053e+01 1.927584e+01 -44 6.681134e-02 1.684828e+01 1.615051e+01 -45 6.881134e-02 7.296203e+00 6.649645e+00 -46 7.081134e-02 -5.04277e+00 -5.34676e-05 -47 7.281134e-02 -1.54556e+01 3.730923e-05 -48 7.481134e-02 -1.99649e+01 -4.66558e-05 -49 7.681134e-02 -1.68483e+01 4.459324e-05 -50 7.881134e-02 -7.29620e+00 -3.97394e-05 -51 8.081134e-02 5.042773e+00 4.414709e+00 -52 8.281134e-02 1.545558e+01 1.476659e+01 -53 8.481134e-02 1.996488e+01 1.924722e+01 -54 8.681134e-02 1.684828e+01 1.615436e+01 - -Index time in out --------------------------------------------------------------------------------- -55 8.881134e-02 7.296203e+00 6.646013e+00 -56 9.081134e-02 -5.04277e+00 -1.04482e-04 -57 9.281134e-02 -1.54556e+01 8.835365e-05 -58 9.481134e-02 -1.99649e+01 -9.77001e-05 -59 9.681134e-02 -1.68483e+01 9.563747e-05 -60 9.881134e-02 -7.29620e+00 -9.07835e-05 -61 1.000000e-01 -2.44929e-14 1.042152e-04 |