diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2252/CH18/EX18.5 | |
download | Scilab-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.5')
-rwxr-xr-x | 2252/CH18/EX18.5/Ex18_5.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/2252/CH18/EX18.5/Ex18_5.sce b/2252/CH18/EX18.5/Ex18_5.sce new file mode 100755 index 000000000..e78558b3b --- /dev/null +++ b/2252/CH18/EX18.5/Ex18_5.sce @@ -0,0 +1,21 @@ +
+//for generator A
+V1=240//initial terminal voltage
+V2=225//final terminal voltage
+Ia=120//armature current
+Ra=(V1-V2)/Ia//armature resistance
+//for generator B
+V1=230//initial terminal voltage
+V2=215//final terminal voltage
+Ib=100//armature current
+Rb=(V1-V2)/Ib//armature resistance
+I=200//total load current
+//I1+I2=I, V=240-I1*Ra, V=230-I2*Rb
+//solving for V, I1 and I2
+a=[1 1 0;Ra 0 1;0 Rb 1]
+b=[200;240;230]
+x=inv(a)*b
+I1=x(1,1)
+I2=x(2,1)
+V=x(3,1)
+mprintf("Bus-bar voltage=%f V,\nGenerator A supplies %f A,\nGenerator B supplies %f A", V,I1,I2)
|