From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2252/CH18/EX18.5/Ex18_5.sce | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 2252/CH18/EX18.5/Ex18_5.sce (limited to '2252/CH18/EX18.5') 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) -- cgit