summaryrefslogtreecommitdiff
path: root/3311/CH8/EX8.27/Ex8_27.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3311/CH8/EX8.27/Ex8_27.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 '3311/CH8/EX8.27/Ex8_27.sce')
-rwxr-xr-x3311/CH8/EX8.27/Ex8_27.sce28
1 files changed, 28 insertions, 0 deletions
diff --git a/3311/CH8/EX8.27/Ex8_27.sce b/3311/CH8/EX8.27/Ex8_27.sce
new file mode 100755
index 000000000..0e84cc791
--- /dev/null
+++ b/3311/CH8/EX8.27/Ex8_27.sce
@@ -0,0 +1,28 @@
+// chapter 8
+// example 8.27
+// Determine range of duty cycle, peak-to-peak choke ripple current and average supply current
+// page-523-524
+clear;
+clc;
+// given
+Edc=24; // in V (dc source)
+f=50; // in KHz (switching frequency)
+L=500; // in uH
+E0=15; // in V (average output voltage)
+Edc_max=26; // in V (maximum voltage of dc source)
+Edc_min=21; // in V (maximum voltage of dc source)
+I0=2; // in A (average load current)
+// calculate
+f=f*1E3; // changing unit from KHz to Hz
+L=L*1E-6; // changing unit from uH to H
+// since E0=Edc*alpha/(1-alpha), therefore we get
+alpha_max=1/((Edc_min/E0)+1); // calculation of upper limit of duty cycle
+alpha_min=1/((Edc_max/E0)+1); // calculation of lower limit of duty cycle
+alpha_normal=1/((Edc/E0)+1); // calculation of normal duty cycle
+del_I=Edc*alpha_normal/(f*L); // calculation of peak-to-peak choke ripple current
+// since Edc*Is=E0*I0, therefore we get
+Is=E0*I0/Edc; // calculation of average supply current
+printf("\nThe duty cycle varies from \t\t\t\t\t\t %.3f to %.3f",alpha_min,alpha_max);
+printf("\nThe peak-to-peak choke ripple current for normal supply voltage is \t del_I=%.1f mA",del_I*1E3);
+printf("\nThe average supply current drawn from battery is \t\t\t Is=%.2f A",Is);
+// Note: the answers vary slightly due to precise calculation \ No newline at end of file