summaryrefslogtreecommitdiff
path: root/1430/CH7/EX7.5/exa7_5.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1430/CH7/EX7.5/exa7_5.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '1430/CH7/EX7.5/exa7_5.sce')
-rw-r--r--1430/CH7/EX7.5/exa7_5.sce29
1 files changed, 29 insertions, 0 deletions
diff --git a/1430/CH7/EX7.5/exa7_5.sce b/1430/CH7/EX7.5/exa7_5.sce
new file mode 100644
index 000000000..9f902f6b5
--- /dev/null
+++ b/1430/CH7/EX7.5/exa7_5.sce
@@ -0,0 +1,29 @@
+// Example 7.5
+// Designing Power-Factor Correction
+// From figure 7.10(a)
+V_rms=500; // Volts
+f=60; // Radian Frequency (rad/s)
+omega=377; // (rad/s)
+P_1=48*10^3; // Watts
+pf_1=0.60; // Lagging
+P_2=24*10^3;// Watts
+pf_2=0.96; // Leading
+// For Load 1
+S_1= P_1/pf_1; // apparent power
+Q_1=sqrt(S_1^2-P_1^2); // Reactive power
+I_1= S_1/V_rms; // RMS current drawn by load 1
+// For Load 2
+S_2=P_2/pf_2; // apparent power
+Q_2=-sqrt(S_2^2-P_2^2); // Reactive power
+I_2= S_2/V_rms; // RMS current drawn by load 2
+P_12= P_1+P_2;
+Q_12=Q_1+Q_2;
+S_12= sqrt(P_12^2+Q_12^2);
+I_12=S_12/V_rms;
+pf_12=P_12/abs(S_12);
+// With reference to table 7.3
+P_C=0;
+Q_C=-Q_12;
+V_C=V_rms;
+C=-Q_C/(omega*abs(V_C)^2);
+disp(C,"Value of Capacitance for unity power factor(in Farad)=")