summaryrefslogtreecommitdiff
path: root/3311/CH6/EX6.23/Ex6_23.sce
diff options
context:
space:
mode:
Diffstat (limited to '3311/CH6/EX6.23/Ex6_23.sce')
-rwxr-xr-x3311/CH6/EX6.23/Ex6_23.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/3311/CH6/EX6.23/Ex6_23.sce b/3311/CH6/EX6.23/Ex6_23.sce
new file mode 100755
index 000000000..9d8f1c91d
--- /dev/null
+++ b/3311/CH6/EX6.23/Ex6_23.sce
@@ -0,0 +1,24 @@
+// chapter 6
+// example 6.23
+// Plot average voltage and load voltage
+// page-356-357
+clear;
+clc;
+clf;
+// given
+Es=415; // in V (voltage supply)
+f=50; // supply frequency
+alpha=[0:30:120]; // in degree
+// calculate
+Em=Es*sqrt(2/3); // calculation of peak voltage
+// plot
+alpha=[0:5:60];
+Edc1=(3*sqrt(3)*Em/%pi)*cosd(alpha);
+plot2d(alpha,Edc1);
+alpha=[60:5:120];
+Edc2=(3*sqrt(3)*Em/%pi)*(1+cosd(alpha+60));
+plot2d(alpha,Edc2);
+xlabel("alpha (degrees)");
+ylabel("Edc (avg) (in V)");
+title("Average output voltage with alpha");
+// since 3-phase waveform can not be plotted, so i have only plotted the average voltage \ No newline at end of file