summaryrefslogtreecommitdiff
path: root/Halfwave_Rectifier
diff options
context:
space:
mode:
Diffstat (limited to 'Halfwave_Rectifier')
-rwxr-xr-xHalfwave_Rectifier/D.lib2
-rw-r--r--Halfwave_Rectifier/Halfwave_Rectifier-cache.lib102
-rw-r--r--Halfwave_Rectifier/Halfwave_Rectifier-rescue.lib22
-rw-r--r--Halfwave_Rectifier/Halfwave_Rectifier.bak215
-rw-r--r--Halfwave_Rectifier/Halfwave_Rectifier.cir15
-rw-r--r--Halfwave_Rectifier/Halfwave_Rectifier.cir.out19
-rw-r--r--Halfwave_Rectifier/Halfwave_Rectifier.pro73
-rw-r--r--Halfwave_Rectifier/Halfwave_Rectifier.proj1
-rw-r--r--Halfwave_Rectifier/Halfwave_Rectifier.sch171
-rw-r--r--Halfwave_Rectifier/Halfwave_Rectifier_Previous_Values.xml1
-rw-r--r--Halfwave_Rectifier/analysis1
-rw-r--r--Halfwave_Rectifier/plot_data_i.txt70
-rw-r--r--Halfwave_Rectifier/plot_data_v.txt70
13 files changed, 762 insertions, 0 deletions
diff --git a/Halfwave_Rectifier/D.lib b/Halfwave_Rectifier/D.lib
new file mode 100755
index 0000000..8a7fb4d
--- /dev/null
+++ b/Halfwave_Rectifier/D.lib
@@ -0,0 +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)
+
diff --git a/Halfwave_Rectifier/Halfwave_Rectifier-cache.lib b/Halfwave_Rectifier/Halfwave_Rectifier-cache.lib
new file mode 100644
index 0000000..7317504
--- /dev/null
+++ b/Halfwave_Rectifier/Halfwave_Rectifier-cache.lib
@@ -0,0 +1,102 @@
+EESchema-LIBRARY Version 2.3
+#encoding utf-8
+#
+# D
+#
+DEF D 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
+F2 "" 0 0 60 H V C CNN
+F3 "" 0 0 60 H V C CNN
+$FPLIST
+ Diode_*
+ D-Pak_TO252AA
+ *SingleDiode
+ *_Diode_*
+ *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
+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
+#
+# GND
+#
+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
+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
+ENDDRAW
+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
+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
+ENDDRAW
+ENDDEF
+#
+# R-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
+$FPLIST
+ R_*
+ Resistor_*
+$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
+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
+F0 "v" -200 100 60 H V C CNN
+F1 "sine" -200 -50 60 H V C CNN
+F2 "R1" -300 0 60 H V C CNN
+F3 "" 0 0 60 H V C CNN
+$FPLIST
+ 1_pin
+$ENDFPLIST
+DRAW
+A -50 0 50 1 1799 0 1 0 N 0 0 -100 0
+A 50 0 50 -1799 -1 0 1 0 N 0 0 100 0
+C 0 0 150 0 1 0 N
+X + 1 0 450 300 D 50 0 1 1 I
+X - 2 0 -450 300 U 50 0 1 1 I
+ENDDRAW
+ENDDEF
+#
+#End Library
diff --git a/Halfwave_Rectifier/Halfwave_Rectifier-rescue.lib b/Halfwave_Rectifier/Halfwave_Rectifier-rescue.lib
new file mode 100644
index 0000000..89ca721
--- /dev/null
+++ b/Halfwave_Rectifier/Halfwave_Rectifier-rescue.lib
@@ -0,0 +1,22 @@
+EESchema-LIBRARY Version 2.3
+#encoding utf-8
+#
+# R-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
+$FPLIST
+ R_*
+ Resistor_*
+$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
+ENDDRAW
+ENDDEF
+#
+#End Library
diff --git a/Halfwave_Rectifier/Halfwave_Rectifier.bak b/Halfwave_Rectifier/Halfwave_Rectifier.bak
new file mode 100644
index 0000000..78b51d3
--- /dev/null
+++ b/Halfwave_Rectifier/Halfwave_Rectifier.bak
@@ -0,0 +1,215 @@
+EESchema Schematic File Version 2
+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
+LIBS:conn
+LIBS:linear
+LIBS:regul
+LIBS:74xx
+LIBS:cmos4000
+LIBS:adc-dac
+LIBS:memory
+LIBS:xilinx
+LIBS:microcontrollers
+LIBS:dsp
+LIBS:microchip
+LIBS:analog_switches
+LIBS:motorola
+LIBS:texas
+LIBS:intel
+LIBS:audio
+LIBS:interface
+LIBS:digital-audio
+LIBS:philips
+LIBS:display
+LIBS:cypress
+LIBS:siliconi
+LIBS:opto
+LIBS:atmel
+LIBS:contrib
+LIBS:valves
+LIBS:Halfwave_Rectifier-cache
+EELAYER 25 0
+EELAYER END
+$Descr A4 11693 8268
+encoding utf-8
+Sheet 1 1
+Title ""
+Date ""
+Rev ""
+Comp ""
+Comment1 ""
+Comment2 ""
+Comment3 ""
+Comment4 ""
+$EndDescr
+$Comp
+L D D1
+U 1 1 5593CBB8
+P 5700 2900
+F 0 "D1" H 5700 3000 50 0000 C CNN
+F 1 "D" H 5700 2800 50 0000 C CNN
+F 2 "" H 5700 2900 60 0000 C CNN
+F 3 "" H 5700 2900 60 0000 C CNN
+ 1 5700 2900
+ 1 0 0 -1
+$EndComp
+$Comp
+L R-RESCUE-Halfwave_Rectifier R1
+U 1 1 5593CC2C
+P 6300 3350
+F 0 "R1" V 6380 3350 50 0000 C CNN
+F 1 "1k" V 6300 3350 50 0000 C CNN
+F 2 "" V 6230 3350 30 0000 C CNN
+F 3 "" H 6300 3350 30 0000 C CNN
+ 1 6300 3350
+ 1 0 0 -1
+$EndComp
+$Comp
+L sine v1
+U 1 1 5593CC81
+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
+L GND #PWR01
+U 1 1 5593CCF2
+P 5700 4050
+F 0 "#PWR01" H 5700 3800 50 0001 C CNN
+F 1 "GND" H 5700 3900 50 0000 C CNN
+F 2 "" H 5700 4050 60 0000 C CNN
+F 3 "" H 5700 4050 60 0000 C CNN
+ 1 5700 4050
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 5050 2900 5050 3200
+Wire Wire Line
+ 5050 2900 5550 2900
+Wire Wire Line
+ 5850 2900 6300 2900
+Wire Wire Line
+ 6300 2900 6300 3200
+Wire Wire Line
+ 6300 3500 6300 3900
+Wire Wire Line
+ 6300 3900 5050 3900
+Wire Wire Line
+ 5050 3900 5050 3600
+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 5000 2750 0 60 Input ~ 0
+IN
+Text GLabel 6400 2800 2 60 Input ~ 0
+OUT
+Wire Wire Line
+ 5000 2750 5250 2750
+Wire Wire Line
+ 5250 2750 5250 2900
+Connection ~ 5250 2900
+Wire Wire Line
+ 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/Halfwave_Rectifier/Halfwave_Rectifier.cir b/Halfwave_Rectifier/Halfwave_Rectifier.cir
new file mode 100644
index 0000000..47baae9
--- /dev/null
+++ b/Halfwave_Rectifier/Halfwave_Rectifier.cir
@@ -0,0 +1,15 @@
+* /home/fossee/UpdatedExamples/Halfwave_Rectifier/Halfwave_Rectifier.cir
+
+* 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
+
+* Sheet Name: /
+D1 IN OUT D
+R1 OUT GND 1k
+v1 IN GND sine
+U2 IN plot_v1
+U3 OUT plot_v1
+
+.end
diff --git a/Halfwave_Rectifier/Halfwave_Rectifier.cir.out b/Halfwave_Rectifier/Halfwave_Rectifier.cir.out
new file mode 100644
index 0000000..c9dbd10
--- /dev/null
+++ b/Halfwave_Rectifier/Halfwave_Rectifier.cir.out
@@ -0,0 +1,19 @@
+* /home/fossee/updatedexamples/halfwave_rectifier/halfwave_rectifier.cir
+
+.include D.lib
+d1 in out 1N4148
+r1 out gnd 1k
+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
+.control
+run
+print allv > plot_data_v.txt
+print alli > plot_data_i.txt
+plot v(in)
+plot v(out)
+.endc
+.end
diff --git a/Halfwave_Rectifier/Halfwave_Rectifier.pro b/Halfwave_Rectifier/Halfwave_Rectifier.pro
new file mode 100644
index 0000000..7040c29
--- /dev/null
+++ b/Halfwave_Rectifier/Halfwave_Rectifier.pro
@@ -0,0 +1,73 @@
+update=Thu Mar 3 22:16:44 2016
+version=1
+last_client=eeschema
+[general]
+version=1
+RootSch=
+BoardNm=
+[pcbnew]
+version=1
+LastNetListRead=
+UseCmpFile=1
+PadDrill=0.600000000000
+PadDrillOvalY=0.600000000000
+PadSizeH=1.500000000000
+PadSizeV=1.500000000000
+PcbTextSizeV=1.500000000000
+PcbTextSizeH=1.500000000000
+PcbTextThickness=0.300000000000
+ModuleTextSizeV=1.000000000000
+ModuleTextSizeH=1.000000000000
+ModuleTextSizeThickness=0.150000000000
+SolderMaskClearance=0.000000000000
+SolderMaskMinWidth=0.000000000000
+DrawSegmentWidth=0.200000000000
+BoardOutlineThickness=0.100000000000
+ModuleOutlineThickness=0.150000000000
+[cvpcb]
+version=1
+NetIExt=net
+[eeschema]
+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
+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/Halfwave_Rectifier/Halfwave_Rectifier.proj b/Halfwave_Rectifier/Halfwave_Rectifier.proj
new file mode 100644
index 0000000..cd8e168
--- /dev/null
+++ b/Halfwave_Rectifier/Halfwave_Rectifier.proj
@@ -0,0 +1 @@
+schematicFile Halfwave_Rectifier.sch
diff --git a/Halfwave_Rectifier/Halfwave_Rectifier.sch b/Halfwave_Rectifier/Halfwave_Rectifier.sch
new file mode 100644
index 0000000..a79d3d9
--- /dev/null
+++ b/Halfwave_Rectifier/Halfwave_Rectifier.sch
@@ -0,0 +1,171 @@
+EESchema Schematic File Version 2
+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
+LIBS:conn
+LIBS:linear
+LIBS:regul
+LIBS:74xx
+LIBS:cmos4000
+LIBS:adc-dac
+LIBS:memory
+LIBS:xilinx
+LIBS:microcontrollers
+LIBS:dsp
+LIBS:microchip
+LIBS:analog_switches
+LIBS:motorola
+LIBS:texas
+LIBS:intel
+LIBS:audio
+LIBS:interface
+LIBS:digital-audio
+LIBS:philips
+LIBS:display
+LIBS:cypress
+LIBS:siliconi
+LIBS:opto
+LIBS:atmel
+LIBS:contrib
+LIBS:valves
+LIBS:Halfwave_Rectifier-cache
+EELAYER 25 0
+EELAYER END
+$Descr A4 11693 8268
+encoding utf-8
+Sheet 1 1
+Title ""
+Date ""
+Rev ""
+Comp ""
+Comment1 ""
+Comment2 ""
+Comment3 ""
+Comment4 ""
+$EndDescr
+$Comp
+L D D1
+U 1 1 5593CBB8
+P 5700 2900
+F 0 "D1" H 5700 3000 50 0000 C CNN
+F 1 "D" H 5700 2800 50 0000 C CNN
+F 2 "" H 5700 2900 60 0000 C CNN
+F 3 "" H 5700 2900 60 0000 C CNN
+ 1 5700 2900
+ 1 0 0 -1
+$EndComp
+$Comp
+L R-RESCUE-Halfwave_Rectifier R1
+U 1 1 5593CC2C
+P 6300 3350
+F 0 "R1" V 6380 3350 50 0000 C CNN
+F 1 "1k" V 6300 3350 50 0000 C CNN
+F 2 "" V 6230 3350 30 0000 C CNN
+F 3 "" H 6300 3350 30 0000 C CNN
+ 1 6300 3350
+ 1 0 0 -1
+$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
+ 1 0 0 -1
+$EndComp
+$Comp
+L GND #PWR01
+U 1 1 5593CCF2
+P 5700 4050
+F 0 "#PWR01" H 5700 3800 50 0001 C CNN
+F 1 "GND" H 5700 3900 50 0000 C CNN
+F 2 "" H 5700 4050 60 0000 C CNN
+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
+ 5050 2900 5550 2900
+Wire Wire Line
+ 5850 2900 6300 2900
+Wire Wire Line
+ 6300 2900 6300 3200
+Wire Wire Line
+ 6300 3500 6300 3900
+Wire Wire Line
+ 6300 3900 5050 3900
+Wire Wire Line
+ 5050 3900 5050 3850
+Wire Wire Line
+ 5700 3800 5700 4050
+Connection ~ 5700 3900
+Wire Wire Line
+ 5000 2750 5250 2750
+Wire Wire Line
+ 5250 2750 5250 2900
+Connection ~ 5250 2900
+Wire Wire Line
+ 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/Halfwave_Rectifier/Halfwave_Rectifier_Previous_Values.xml b/Halfwave_Rectifier/Halfwave_Rectifier_Previous_Values.xml
new file mode 100644
index 0000000..a7332ab
--- /dev/null
+++ b/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/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/Halfwave_Rectifier/analysis b/Halfwave_Rectifier/analysis
new file mode 100644
index 0000000..660a46c
--- /dev/null
+++ b/Halfwave_Rectifier/analysis
@@ -0,0 +1 @@
+.tran 10e-03 100e-03 0e-03 \ No newline at end of file
diff --git a/Halfwave_Rectifier/plot_data_i.txt b/Halfwave_Rectifier/plot_data_i.txt
new file mode 100644
index 0000000..e5d5155
--- /dev/null
+++ b/Halfwave_Rectifier/plot_data_i.txt
@@ -0,0 +1,70 @@
+ * /home/fossee/updatedexamples/halfwave_rectifier/halfwave_rectifier.cir
+ Transient Analysis Thu Mar 3 22:27:20 2016
+--------------------------------------------------------------------------------
+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/Halfwave_Rectifier/plot_data_v.txt b/Halfwave_Rectifier/plot_data_v.txt
new file mode 100644
index 0000000..1387b46
--- /dev/null
+++ b/Halfwave_Rectifier/plot_data_v.txt
@@ -0,0 +1,70 @@
+ * /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 -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