summaryrefslogtreecommitdiff
path: root/2252/CH18/EX18.7
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2252/CH18/EX18.7
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 '2252/CH18/EX18.7')
-rwxr-xr-x2252/CH18/EX18.7/Ex18_7.sce28
1 files changed, 28 insertions, 0 deletions
diff --git a/2252/CH18/EX18.7/Ex18_7.sce b/2252/CH18/EX18.7/Ex18_7.sce
new file mode 100755
index 000000000..66d04f71e
--- /dev/null
+++ b/2252/CH18/EX18.7/Ex18_7.sce
@@ -0,0 +1,28 @@
+
+//Let V be bus-bar voltage and I1, I2 be the currents supplied by generators 1 and 2 respectively
+Il=3000//total load current
+//I1+I2=Il
+//for generator 1
+Rsh1=30//field resistance
+Ra1=.05//armature resistance
+Eg1=400//induced emf
+//for generator 2
+Rsh2=25//field resistance
+Ra2=.03//armature resistance
+Eg2=380//induced emf
+//Ish1=V/Rsh1
+//Ish2=V/Rsh2
+//Ia1=I1+Ish1
+//Ia2=I2+Ish2
+//Eg1=V+Ia1*Ra1;Eg2=V+Ia2*Ra2
+//solving for I1,I2 and V
+a=[1 1 0;Ra1 0 1+Ra1/Rsh1;0 Ra2 1+Ra2/Rsh2]
+b=[Il;Eg1;Eg2]
+x=inv(a)*b
+I1=x(1,1)
+I2=x(2,1)
+V=x(3,1)
+P1=V*I1
+P2=V*I2
+mprintf("Output of generator 1=%f kW\nOutput of generator 2=%f kW", P1/1000,P2/1000)
+//answers vary from the textbook due to round off error