summaryrefslogtreecommitdiff
path: root/1319/CH6/EX6.13/6_13.sce
blob: 704b3a0e4d8bae27cd795f3db7bcb988001d7c47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//Voltage between feeder and bus bar in a series generator

clc;
clear;

V=50;
I=200;

Rf=0.3; // Feeder resistance

//Various Currents
I1=160;
I2=50;

deff('y=vol(x)','y=(x*Rf)-(V*x/I)') // Function to calculate the voltages

Va=vol(I1);
Vb=vol(I2);

printf('The voltage between the far end of the feeder and the bus bar at a current of \n')
printf('a) 160A = %g V \n',Va)
printf('b) 50A = %g V \n',Vb)