summaryrefslogtreecommitdiff
path: root/Examples/Halfwave_Rectifier
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/Halfwave_Rectifier')
-rwxr-xr-xExamples/Halfwave_Rectifier/D.lib22
-rw-r--r--Examples/Halfwave_Rectifier/Halfwave_Rectifier-cache.lib23
-rw-r--r--Examples/Halfwave_Rectifier/Halfwave_Rectifier.bak111
-rw-r--r--Examples/Halfwave_Rectifier/Halfwave_Rectifier.cir6
-rw-r--r--Examples/Halfwave_Rectifier/Halfwave_Rectifier.cir.out10
-rw-r--r--Examples/Halfwave_Rectifier/Halfwave_Rectifier.pro70
-rw-r--r--Examples/Halfwave_Rectifier/Halfwave_Rectifier.sch64
-rw-r--r--Examples/Halfwave_Rectifier/Halfwave_Rectifier_Previous_Values.xml2
-rw-r--r--Examples/Halfwave_Rectifier/plot_data_i.txt127
-rw-r--r--Examples/Halfwave_Rectifier/plot_data_v.txt127
10 files changed, 336 insertions, 226 deletions
diff --git a/Examples/Halfwave_Rectifier/D.lib b/Examples/Halfwave_Rectifier/D.lib
index ef18bb50..8a7fb4da 100755
--- a/Examples/Halfwave_Rectifier/D.lib
+++ b/Examples/Halfwave_Rectifier/D.lib
@@ -1,20 +1,2 @@
-.MODEL D1N750 D(
-+ Vj=.75
-+ Nbvl=14.976
-+ Cjo=175p
-+ Rs=.25
-+ Isr=1.859n
-+ Eg=1.11
-+ M=.5516
-+ Nbv=1.6989
-+ N=1
-+ Tbv1=-21.277u
-+ Bv=8.1
-+ Fc=.5
-+ Ikf=0
-+ Nr=2
-+ Ibv=20.245m
-+ Is=880.5E-18
-+ Xti=3
-+ Ibvl=1.9556m
-) \ No newline at end of file
+.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 3c867dec..73175049 100644
--- a/Examples/Halfwave_Rectifier/Halfwave_Rectifier-cache.lib
+++ b/Examples/Halfwave_Rectifier/Halfwave_Rectifier-cache.lib
@@ -28,8 +28,8 @@ 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 60 H V C CNN
-F3 "" 0 0 60 H V C CNN
+F2 "" 0 0 50 H V C CNN
+F3 "" 0 0 50 H V C CNN
DRAW
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
@@ -41,10 +41,10 @@ ENDDEF
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 60 H V C CNN
-F3 "" 0 0 60 H V C CNN
+F2 "" 0 0 50 H V C CNN
+F3 "" 0 0 50 H V C CNN
DRAW
-X pwr 1 0 0 0 U 20 20 0 0 w
+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
ENDDRAW
ENDDEF
@@ -67,6 +67,19 @@ X ~ 2 0 -150 50 U 60 60 1 1 P
ENDDRAW
ENDDEF
#
+# plot_v1
+#
+DEF plot_v1 U 0 40 Y Y 1 F N
+F0 "U" 0 500 60 H V C CNN
+F1 "plot_v1" 200 350 60 H V C CNN
+F2 "" 0 0 60 H V C CNN
+F3 "" 0 0 60 H V C CNN
+DRAW
+C 0 500 100 0 1 0 N
+X ~ ~ 0 200 200 U 50 50 1 1 I
+ENDDRAW
+ENDDEF
+#
# sine
#
DEF sine v 0 40 Y Y 1 F N
diff --git a/Examples/Halfwave_Rectifier/Halfwave_Rectifier.bak b/Examples/Halfwave_Rectifier/Halfwave_Rectifier.bak
index da840534..78b51d36 100644
--- a/Examples/Halfwave_Rectifier/Halfwave_Rectifier.bak
+++ b/Examples/Halfwave_Rectifier/Halfwave_Rectifier.bak
@@ -1,12 +1,15 @@
EESchema Schematic File Version 2
-LIBS:eSim_Subckt
-LIBS:eSim_Sources
-LIBS:eSim_Hybrid
-LIBS:eSim_Digital
-LIBS:eSim_Devices
LIBS:eSim_Analog
+LIBS:eSim_Devices
+LIBS:eSim_Digital
+LIBS:eSim_Hybrid
LIBS:eSim_Miscellaneous
+LIBS:eSim_Plot
+LIBS:eSim_Power
+LIBS:eSim_Sources
+LIBS:eSim_Subckt
LIBS:eSim_User
+LIBS:Halfwave_Rectifier-rescue
LIBS:power
LIBS:device
LIBS:transistors
@@ -63,7 +66,7 @@ F 3 "" H 5700 2900 60 0000 C CNN
1 0 0 -1
$EndComp
$Comp
-L R R1
+L R-RESCUE-Halfwave_Rectifier R1
U 1 1 5593CC2C
P 6300 3350
F 0 "R1" V 6380 3350 50 0000 C CNN
@@ -76,12 +79,12 @@ $EndComp
$Comp
L sine v1
U 1 1 5593CC81
-P 5050 3400
-F 0 "v1" H 4850 3500 60 0000 C CNN
-F 1 "sine" H 4850 3350 60 0000 C CNN
-F 2 "R1" H 4750 3400 60 0000 C CNN
-F 3 "" H 5050 3400 60 0000 C CNN
- 1 5050 3400
+P 3800 3450
+F 0 "v1" H 3600 3550 60 0000 C CNN
+F 1 "sine" H 3600 3400 60 0000 C CNN
+F 2 "R1" H 3500 3450 60 0000 C CNN
+F 3 "" H 3800 3450 60 0000 C CNN
+ 1 3800 3450
1 0 0 -1
$EndComp
$Comp
@@ -96,7 +99,7 @@ F 3 "" H 5700 4050 60 0000 C CNN
1 0 0 -1
$EndComp
Wire Wire Line
- 5050 2950 5050 2900
+ 5050 2900 5050 3200
Wire Wire Line
5050 2900 5550 2900
Wire Wire Line
@@ -108,7 +111,7 @@ Wire Wire Line
Wire Wire Line
6300 3900 5050 3900
Wire Wire Line
- 5050 3900 5050 3850
+ 5050 3900 5050 3600
Wire Wire Line
5700 3800 5700 4050
Connection ~ 5700 3900
@@ -123,18 +126,90 @@ F 3 "" H 5700 3800 60 0000 C CNN
1 5700 3800
1 0 0 -1
$EndComp
-Text GLabel 5200 2750 0 60 Input ~ 0
+Text GLabel 5000 2750 0 60 Input ~ 0
IN
-Text GLabel 6200 2800 2 60 Input ~ 0
+Text GLabel 6400 2800 2 60 Input ~ 0
OUT
Wire Wire Line
- 5200 2750 5250 2750
+ 5000 2750 5250 2750
Wire Wire Line
5250 2750 5250 2900
Connection ~ 5250 2900
Wire Wire Line
- 6200 2800 6100 2800
+ 6100 2800 6400 2800
Wire Wire Line
6100 2800 6100 2900
Connection ~ 6100 2900
+$Comp
+L plot_v1 U2
+U 1 1 56D86A9A
+P 5100 2900
+F 0 "U2" H 5100 3400 60 0000 C CNN
+F 1 "plot_v1" H 5300 3250 60 0000 C CNN
+F 2 "" H 5100 2900 60 0000 C CNN
+F 3 "" H 5100 2900 60 0000 C CNN
+ 1 5100 2900
+ 1 0 0 -1
+$EndComp
+$Comp
+L plot_v1 U3
+U 1 1 56D86ADF
+P 6300 2950
+F 0 "U3" H 6300 3450 60 0000 C CNN
+F 1 "plot_v1" H 6500 3300 60 0000 C CNN
+F 2 "" H 6300 2950 60 0000 C CNN
+F 3 "" H 6300 2950 60 0000 C CNN
+ 1 6300 2950
+ 1 0 0 -1
+$EndComp
+$Comp
+L TRANSFO U1
+U 1 1 56D86BA7
+P 4650 3400
+F 0 "U1" H 4650 3650 50 0000 C CNN
+F 1 "TRANSFO" H 4650 3100 50 0000 C CNN
+F 2 "" H 4650 3400 50 0000 C CNN
+F 3 "" H 4650 3400 50 0000 C CNN
+ 1 4650 3400
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 4250 3600 4250 4000
+Wire Wire Line
+ 4250 4000 3800 4000
+Wire Wire Line
+ 3800 4000 3800 3900
+$Comp
+L GND #PWR03
+U 1 1 56D86C55
+P 4050 4050
+F 0 "#PWR03" H 4050 3800 50 0001 C CNN
+F 1 "GND" H 4050 3900 50 0000 C CNN
+F 2 "" H 4050 4050 60 0000 C CNN
+F 3 "" H 4050 4050 60 0000 C CNN
+ 1 4050 4050
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 4050 4050 4050 4000
+Connection ~ 4050 4000
+Wire Wire Line
+ 4250 3200 4250 2950
+Wire Wire Line
+ 4250 2950 3800 2950
+Wire Wire Line
+ 3800 2950 3800 3000
+Wire Wire Line
+ 5100 2700 5100 2750
+Connection ~ 5100 2750
+Wire Wire Line
+ 6300 2750 6300 2800
+Connection ~ 6300 2800
+Text GLabel 3900 2700 0 60 Input ~ 0
+Supply
+Wire Wire Line
+ 3900 2700 4000 2700
+Wire Wire Line
+ 4000 2700 4000 2950
+Connection ~ 4000 2950
$EndSCHEMATC
diff --git a/Examples/Halfwave_Rectifier/Halfwave_Rectifier.cir b/Examples/Halfwave_Rectifier/Halfwave_Rectifier.cir
index bca6b7df..47baae9a 100644
--- a/Examples/Halfwave_Rectifier/Halfwave_Rectifier.cir
+++ b/Examples/Halfwave_Rectifier/Halfwave_Rectifier.cir
@@ -1,6 +1,6 @@
-* /home/fossee/Downloads/eSim-master/Examples/Halfwave_Rectifier/Halfwave_Rectifier.cir
+* /home/fossee/UpdatedExamples/Halfwave_Rectifier/Halfwave_Rectifier.cir
-* EESchema Netlist Version 1.1 (Spice format) creation date: Wed Aug 19 15:22:23 2015
+* EESchema Netlist Version 1.1 (Spice format) creation date: Thu Mar 3 22:27:06 2016
* 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
@@ -9,5 +9,7 @@
D1 IN OUT D
R1 OUT GND 1k
v1 IN GND sine
+U2 IN plot_v1
+U3 OUT plot_v1
.end
diff --git a/Examples/Halfwave_Rectifier/Halfwave_Rectifier.cir.out b/Examples/Halfwave_Rectifier/Halfwave_Rectifier.cir.out
index 4d1d5489..c9dbd104 100644
--- a/Examples/Halfwave_Rectifier/Halfwave_Rectifier.cir.out
+++ b/Examples/Halfwave_Rectifier/Halfwave_Rectifier.cir.out
@@ -1,9 +1,11 @@
-* /home/fossee/downloads/esim-master/examples/halfwave_rectifier/halfwave_rectifier.cir
+* /home/fossee/updatedexamples/halfwave_rectifier/halfwave_rectifier.cir
.include D.lib
-d1 in out D1N750
+d1 in out 1N4148
r1 out gnd 1k
-v1 in gnd sine(0 2 50 0 0)
+v1 in gnd sine(0 20 50 0 0)
+* u2 in plot_v1
+* u3 out plot_v1
.tran 10e-03 100e-03 0e-03
* Control Statements
@@ -11,5 +13,7 @@ v1 in gnd sine(0 2 50 0 0)
run
print allv > plot_data_v.txt
print alli > plot_data_i.txt
+plot v(in)
+plot v(out)
.endc
.end
diff --git a/Examples/Halfwave_Rectifier/Halfwave_Rectifier.pro b/Examples/Halfwave_Rectifier/Halfwave_Rectifier.pro
index 751b9051..7040c291 100644
--- a/Examples/Halfwave_Rectifier/Halfwave_Rectifier.pro
+++ b/Examples/Halfwave_Rectifier/Halfwave_Rectifier.pro
@@ -1,4 +1,4 @@
-update=Wed Aug 19 15:21:48 2015
+update=Thu Mar 3 22:16:44 2016
version=1
last_client=eeschema
[general]
@@ -36,36 +36,38 @@ LibName2=eSim_Devices
LibName3=eSim_Digital
LibName4=eSim_Hybrid
LibName5=eSim_Miscellaneous
-LibName6=eSim_Sources
-LibName7=eSim_Subckt
-LibName8=eSim_User
-LibName9=Halfwave_Rectifier-rescue
-LibName10=power
-LibName11=device
-LibName12=transistors
-LibName13=conn
-LibName14=linear
-LibName15=regul
-LibName16=74xx
-LibName17=cmos4000
-LibName18=adc-dac
-LibName19=memory
-LibName20=xilinx
-LibName21=microcontrollers
-LibName22=dsp
-LibName23=microchip
-LibName24=analog_switches
-LibName25=motorola
-LibName26=texas
-LibName27=intel
-LibName28=audio
-LibName29=interface
-LibName30=digital-audio
-LibName31=philips
-LibName32=display
-LibName33=cypress
-LibName34=siliconi
-LibName35=opto
-LibName36=atmel
-LibName37=contrib
-LibName38=valves
+LibName6=eSim_Plot
+LibName7=eSim_Power
+LibName8=eSim_Sources
+LibName9=eSim_Subckt
+LibName10=eSim_User
+LibName11=Halfwave_Rectifier-rescue
+LibName12=power
+LibName13=device
+LibName14=transistors
+LibName15=conn
+LibName16=linear
+LibName17=regul
+LibName18=74xx
+LibName19=cmos4000
+LibName20=adc-dac
+LibName21=memory
+LibName22=xilinx
+LibName23=microcontrollers
+LibName24=dsp
+LibName25=microchip
+LibName26=analog_switches
+LibName27=motorola
+LibName28=texas
+LibName29=intel
+LibName30=audio
+LibName31=interface
+LibName32=digital-audio
+LibName33=philips
+LibName34=display
+LibName35=cypress
+LibName36=siliconi
+LibName37=opto
+LibName38=atmel
+LibName39=contrib
+LibName40=valves
diff --git a/Examples/Halfwave_Rectifier/Halfwave_Rectifier.sch b/Examples/Halfwave_Rectifier/Halfwave_Rectifier.sch
index d1b72e0b..a79d3d97 100644
--- a/Examples/Halfwave_Rectifier/Halfwave_Rectifier.sch
+++ b/Examples/Halfwave_Rectifier/Halfwave_Rectifier.sch
@@ -4,6 +4,8 @@ LIBS:eSim_Devices
LIBS:eSim_Digital
LIBS:eSim_Hybrid
LIBS:eSim_Miscellaneous
+LIBS:eSim_Plot
+LIBS:eSim_Power
LIBS:eSim_Sources
LIBS:eSim_Subckt
LIBS:eSim_User
@@ -96,6 +98,43 @@ F 3 "" H 5700 4050 60 0000 C CNN
1 5700 4050
1 0 0 -1
$EndComp
+$Comp
+L PWR_FLAG #FLG02
+U 1 1 5593CD49
+P 5700 3800
+F 0 "#FLG02" H 5700 3895 50 0001 C CNN
+F 1 "PWR_FLAG" H 5700 3980 50 0000 C CNN
+F 2 "" H 5700 3800 60 0000 C CNN
+F 3 "" H 5700 3800 60 0000 C CNN
+ 1 5700 3800
+ 1 0 0 -1
+$EndComp
+Text GLabel 5000 2750 0 60 Input ~ 0
+IN
+Text GLabel 6400 2800 2 60 Input ~ 0
+OUT
+$Comp
+L plot_v1 U2
+U 1 1 56D86A9A
+P 5100 2900
+F 0 "U2" H 5100 3400 60 0000 C CNN
+F 1 "plot_v1" H 5300 3250 60 0000 C CNN
+F 2 "" H 5100 2900 60 0000 C CNN
+F 3 "" H 5100 2900 60 0000 C CNN
+ 1 5100 2900
+ 1 0 0 -1
+$EndComp
+$Comp
+L plot_v1 U3
+U 1 1 56D86ADF
+P 6300 2950
+F 0 "U3" H 6300 3450 60 0000 C CNN
+F 1 "plot_v1" H 6500 3300 60 0000 C CNN
+F 2 "" H 6300 2950 60 0000 C CNN
+F 3 "" H 6300 2950 60 0000 C CNN
+ 1 6300 2950
+ 1 0 0 -1
+$EndComp
Wire Wire Line
5050 2950 5050 2900
Wire Wire Line
@@ -113,29 +152,20 @@ Wire Wire Line
Wire Wire Line
5700 3800 5700 4050
Connection ~ 5700 3900
-$Comp
-L PWR_FLAG #FLG02
-U 1 1 5593CD49
-P 5700 3800
-F 0 "#FLG02" H 5700 3895 50 0001 C CNN
-F 1 "PWR_FLAG" H 5700 3980 50 0000 C CNN
-F 2 "" H 5700 3800 60 0000 C CNN
-F 3 "" H 5700 3800 60 0000 C CNN
- 1 5700 3800
- 1 0 0 -1
-$EndComp
-Text GLabel 5200 2750 0 60 Input ~ 0
-IN
-Text GLabel 6200 2800 2 60 Input ~ 0
-OUT
Wire Wire Line
- 5200 2750 5250 2750
+ 5000 2750 5250 2750
Wire Wire Line
5250 2750 5250 2900
Connection ~ 5250 2900
Wire Wire Line
- 6200 2800 6100 2800
+ 6100 2800 6400 2800
Wire Wire Line
6100 2800 6100 2900
Connection ~ 6100 2900
+Wire Wire Line
+ 5100 2700 5100 2750
+Connection ~ 5100 2750
+Wire Wire Line
+ 6300 2750 6300 2800
+Connection ~ 6300 2800
$EndSCHEMATC
diff --git a/Examples/Halfwave_Rectifier/Halfwave_Rectifier_Previous_Values.xml b/Examples/Halfwave_Rectifier/Halfwave_Rectifier_Previous_Values.xml
index f87669dd..a7332ab7 100644
--- a/Examples/Halfwave_Rectifier/Halfwave_Rectifier_Previous_Values.xml
+++ b/Examples/Halfwave_Rectifier/Halfwave_Rectifier_Previous_Values.xml
@@ -1 +1 @@
-<KicadtoNgspice><source><v1 name="Source type">sine<field1 name="Offset Value">0</field1><field2 name="Amplitude">2</field2><field3 name="Frequency">50</field3><field4 name="Delay Time">0</field4><field5 name="Damping Factor">0</field5></v1></source><model /><devicemodel><d1><field>/opt/eSim/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 Name" /><field2 name="Start" /><field3 name="Increment" /><field4 name="Stop" /><field5 name="Operating Point">False</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></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
+<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/fossee/esim-updated/eSim/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
index 9664473f..e5d51556 100644
--- a/Examples/Halfwave_Rectifier/plot_data_i.txt
+++ b/Examples/Halfwave_Rectifier/plot_data_i.txt
@@ -1,69 +1,70 @@
-* /home/fossee/downloads/esim-master/examples/halfwave_rectifier/halfwave_rectifier.cir
-Transient Analysis Wed Feb 3 18:37:24 2016
+ * /home/fossee/updatedexamples/halfwave_rectifier/halfwave_rectifier.cir
+ Transient Analysis Thu Mar 3 22:27:20 2016
--------------------------------------------------------------------------------
Index time alli
--------------------------------------------------------------------------------
-0 0.000000e+00 -7.72087e-32
-1 1.000000e-05 -1.08306e-07
-2 2.000000e-05 -1.10674e-07
-3 4.000000e-05 -1.12292e-07
-4 8.000000e-05 -1.13899e-07
-5 1.600000e-04 -1.19071e-07
-6 3.200000e-04 -1.29247e-07
-7 6.400000e-04 -1.65196e-07
-8 1.280000e-03 -1.19696e-04
-9 1.926126e-03 -4.40792e-04
-10 2.657696e-03 -7.71076e-04
-11 3.403762e-03 -1.03378e-03
-12 4.895893e-03 -1.27428e-03
-13 6.895893e-03 -9.38866e-04
-14 8.895893e-03 -4.32200e-05
-15 1.089589e-02 2.834780e-07
-16 1.289589e-02 -1.72056e-07
-17 1.473004e-02 2.124164e-07
-18 1.673004e-02 -2.37142e-07
-19 1.873004e-02 1.409514e-07
-20 2.073004e-02 -3.87967e-07
-21 2.273004e-02 -8.00225e-04
-22 2.473004e-02 -1.26738e-03
-23 2.673004e-02 -9.93105e-04
-24 2.873004e-02 -1.14941e-04
-25 3.073004e-02 4.870695e-07
-26 3.273004e-02 -3.68691e-07
-27 3.473004e-02 4.119457e-07
-28 3.673004e-02 -4.36636e-07
-29 3.873004e-02 3.404039e-07
-30 4.073004e-02 -5.87052e-07
-31 4.273004e-02 -8.00219e-04
-32 4.473004e-02 -1.26738e-03
-33 4.673004e-02 -9.93101e-04
-34 4.873004e-02 -1.14978e-04
-35 5.073004e-02 6.863236e-07
-36 5.273004e-02 -5.67900e-07
-37 5.473004e-02 6.111180e-07
-38 5.673004e-02 -6.35774e-07
-39 5.873004e-02 5.394993e-07
-40 6.073004e-02 -7.85782e-07
-41 6.273004e-02 -8.00214e-04
-42 6.473004e-02 -1.26738e-03
-43 6.673004e-02 -9.93097e-04
-44 6.873004e-02 -1.15014e-04
-45 7.073004e-02 8.852210e-07
-46 7.273004e-02 -7.66753e-07
-47 7.473004e-02 8.099337e-07
-48 7.673004e-02 -8.34554e-07
-49 7.873004e-02 7.382383e-07
-50 8.073004e-02 -9.84160e-07
-51 8.273004e-02 -8.00208e-04
-52 8.473004e-02 -1.26738e-03
-53 8.673004e-02 -9.93093e-04
-54 8.873004e-02 -1.15051e-04
+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 9.073004e-02 1.083762e-06
-56 9.273004e-02 -9.65249e-07
-57 9.473004e-02 1.008393e-06
-58 9.673004e-02 -1.03298e-06
-59 9.873004e-02 9.366216e-07
-60 1.000000e-01 -1.10922e-06
+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
index 983ac3a3..1387b46e 100644
--- a/Examples/Halfwave_Rectifier/plot_data_v.txt
+++ b/Examples/Halfwave_Rectifier/plot_data_v.txt
@@ -1,69 +1,70 @@
-* /home/fossee/downloads/esim-master/examples/halfwave_rectifier/halfwave_rectifier.cir
-Transient Analysis Wed Feb 3 18:37:24 2016
+ * /home/fossee/updatedexamples/halfwave_rectifier/halfwave_rectifier.cir
+ Transient Analysis Thu Mar 3 22:27:20 2016
--------------------------------------------------------------------------------
Index time in out
--------------------------------------------------------------------------------
-0 0.000000e+00 0.000000e+00 7.720868e-29
-1 1.000000e-05 6.283175e-03 1.083062e-04
-2 2.000000e-05 1.256629e-02 1.106736e-04
-3 4.000000e-05 2.513208e-02 1.122918e-04
-4 8.000000e-05 5.026019e-02 1.138991e-04
-5 1.600000e-04 1.004886e-01 1.190713e-04
-6 3.200000e-04 2.007234e-01 1.292469e-04
-7 6.400000e-04 3.994200e-01 1.651962e-04
-8 1.280000e-03 7.827473e-01 1.196959e-01
-9 1.926126e-03 1.137706e+00 4.407921e-01
-10 2.657696e-03 1.482512e+00 7.710761e-01
-11 3.403762e-03 1.753751e+00 1.033780e+00
-12 4.895893e-03 1.998930e+00 1.274279e+00
-13 6.895893e-03 1.655610e+00 9.388661e-01
-14 8.895893e-03 6.799031e-01 4.321996e-02
-15 1.089589e-02 -5.55504e-01 -2.83478e-04
-16 1.289589e-02 -1.57873e+00 1.720565e-04
-17 1.473004e-02 -1.99281e+00 -2.12416e-04
-18 1.673004e-02 -1.71180e+00 2.371423e-04
-19 1.873004e-02 -7.76939e-01 -1.40951e-04
-20 2.073004e-02 4.546858e-01 3.879668e-04
-21 2.273004e-02 1.512636e+00 8.002246e-01
-22 2.473004e-02 1.992811e+00 1.267384e+00
-23 2.673004e-02 1.711800e+00 9.931050e-01
-24 2.873004e-02 7.769394e-01 1.149414e-01
-25 3.073004e-02 -4.54686e-01 -4.87070e-04
-26 3.273004e-02 -1.51264e+00 3.686913e-04
-27 3.473004e-02 -1.99281e+00 -4.11946e-04
-28 3.673004e-02 -1.71180e+00 4.366365e-04
-29 3.873004e-02 -7.76939e-01 -3.40404e-04
-30 4.073004e-02 4.546858e-01 5.870517e-04
-31 4.273004e-02 1.512636e+00 8.002191e-01
-32 4.473004e-02 1.992811e+00 1.267384e+00
-33 4.673004e-02 1.711800e+00 9.931011e-01
-34 4.873004e-02 7.769394e-01 1.149778e-01
-35 5.073004e-02 -4.54686e-01 -6.86324e-04
-36 5.273004e-02 -1.51264e+00 5.679003e-04
-37 5.473004e-02 -1.99281e+00 -6.11118e-04
-38 5.673004e-02 -1.71180e+00 6.357735e-04
-39 5.873004e-02 -7.76939e-01 -5.39499e-04
-40 6.073004e-02 4.546858e-01 7.857825e-04
-41 6.273004e-02 1.512636e+00 8.002136e-01
-42 6.473004e-02 1.992811e+00 1.267384e+00
-43 6.673004e-02 1.711800e+00 9.930972e-01
-44 6.873004e-02 7.769394e-01 1.150142e-01
-45 7.073004e-02 -4.54686e-01 -8.85221e-04
-46 7.273004e-02 -1.51264e+00 7.667528e-04
-47 7.473004e-02 -1.99281e+00 -8.09934e-04
-48 7.673004e-02 -1.71180e+00 8.345542e-04
-49 7.873004e-02 -7.76939e-01 -7.38238e-04
-50 8.073004e-02 4.546858e-01 9.841597e-04
-51 8.273004e-02 1.512636e+00 8.002081e-01
-52 8.473004e-02 1.992811e+00 1.267384e+00
-53 8.673004e-02 1.711800e+00 9.930934e-01
-54 8.873004e-02 7.769394e-01 1.150506e-01
+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 9.073004e-02 -4.54686e-01 -1.08376e-03
-56 9.273004e-02 -1.51264e+00 9.652493e-04
-57 9.473004e-02 -1.99281e+00 -1.00839e-03
-58 9.673004e-02 -1.71180e+00 1.032979e-03
-59 9.873004e-02 -7.76939e-01 -9.36622e-04
-60 1.000000e-01 -2.44929e-15 1.109217e-03
+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