summaryrefslogtreecommitdiff
path: root/1418/CH27/EX27.14/EX27_14.sce
blob: 48eab8fbe972533bad35e4f112b4bdc5c1f9ae7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//EXAMPLE 27.14
//DC MACHINE

clc;
funcprot(0);

//Variable Initialisation
P1o=100;....//Output power of first generator in Kilo Watts
V1=250;.....//Terminal voltage of first generator in Volts
P2o=300;.....//Output power in second generator in Kilo Watts
V2=250;...//Terminal voltage of second generator in Volts
I1=200;..........//Current supplied by first generator in Amperes
I2=500;.......//Current supplied by second generator in Amperes
Ial=600;....//Additional load in Amperes

dI1=(P1o*Ial/(P1o+P2o));......//Current spplied to first generator in Amperes
dI2=(P2o*Ial/(P1o+P2o));......//Current supplied to second generator in Amperes

disp(dI1,"Current spplied to first generator in Amperes:");
disp(dI2,"Current supplied to second generator in Amperes:");