summaryrefslogtreecommitdiff
path: root/3129/CH5/EX5.9/Ex5_9.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3129/CH5/EX5.9/Ex5_9.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '3129/CH5/EX5.9/Ex5_9.sce')
-rwxr-xr-x3129/CH5/EX5.9/Ex5_9.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3129/CH5/EX5.9/Ex5_9.sce b/3129/CH5/EX5.9/Ex5_9.sce
new file mode 100755
index 000000000..c41b1cfc2
--- /dev/null
+++ b/3129/CH5/EX5.9/Ex5_9.sce
@@ -0,0 +1,19 @@
+//Finding the Harmonic input current of a DC converter
+//Example 5.9(Page No- 213)
+clc
+clear
+//given data
+Ia = 100;//A
+f = 350;//Hz
+k = 0.50;//duty cycle
+Ce = 4500*10^-6;//F
+Le = 0.3*10^-3;//H
+fo = 1/(2*%pi*sqrt(Ce*Le));
+//I_1h(t) = A1*cos(2*pi*f*t) + B1*sin(2*pi*f*t)
+A1 = (Ia/%pi)*sin(2*%pi*k);
+B1 = (Ia/%pi)*(1-cos(2*%pi*k));
+
+Iph = sqrt(A1^2 + B1^2);//peak magnitude of this current
+I_1h = Iph/sqrt(2);
+I1s = (I_1h)/(1 + (f/fo)^2);
+printf('\n The fundamental component of converter-generated harmonic current in the supply : %.2f A',I1s);