summaryrefslogtreecommitdiff
path: root/147/CH13/EX13.22/Example13_22.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /147/CH13/EX13.22/Example13_22.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 '147/CH13/EX13.22/Example13_22.sce')
-rw-r--r--147/CH13/EX13.22/Example13_22.sce33
1 files changed, 33 insertions, 0 deletions
diff --git a/147/CH13/EX13.22/Example13_22.sce b/147/CH13/EX13.22/Example13_22.sce
new file mode 100644
index 000000000..d8009bf12
--- /dev/null
+++ b/147/CH13/EX13.22/Example13_22.sce
@@ -0,0 +1,33 @@
+//Rated Power Pr, Primary voltage V1, Secondary voltage V2
+//Resistance and reactance of primary winding R1 and X1
+//Resistance and reactance of secondary winding R12 and X2
+close();
+clear;
+clc;
+Pr = 5000;//VA
+V1 = 440;
+V2 = 220;
+R1 = 0.25;
+X1 = 0.75;
+R2 = 0.06;
+X2 = 0.25;
+a = V1/V2;
+//Resistance and reactance reffered to secondary winding 'Rs2' and 'Xs2'
+Rs2 = R2 + R1/a^2;
+Xs2 = X2 + X1/a^2;
+//Full load current 'I'
+I = Pr/V2;
+//Part (i)
+Pf = 0.8;//lagging
+theta = acos(Pf);
+V_reg1 = (I*Rs2*cos(theta)+I*Xs2*sin(theta))/V2*100;
+//Part (ii):
+Pf = 1;
+theta = acos(Pf);
+V_reg2 = (I*Rs2*cos(theta)+I*Xs2*sin(theta))/V2*100;
+//Part (iii)
+Pf = 0.8;//leading
+theta = acos(Pf);
+V_reg3 = (I*Rs2*cos(theta)-I*Xs2*sin(theta))/V2*100;
+mprintf('Voltage regulation on full load at p.f of (i): 0.8 lagging = %0.3f %%\n(ii): unity = %0.4f %%\n(iii): 0.8 leading = %0.3f %%',V_reg1,V_reg2,V_reg3);
+ \ No newline at end of file