summaryrefslogtreecommitdiff
path: root/1418/CH26/EX26.27/EX26_27.sce
blob: ac986af19b9f6fc70171ff8900b37ff1b0c5b870 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//EXAMPLE 26.27
//4 POLE DC GENERATOR

clc;
funcprot(0);

//Variable Initialisation
I=20;.......//Load current in Amperes
Rl=10;......//Load resistance in Ohms
Ra=0.5;......//Armature resistance in Ohms
Rsh=50;......//Shunt field resisitance in Ohms
Vb=1*2;.......//Brush drop in Volts

V=I*Rl;......//Terminal voltage in Volts
Ish=V/Rsh;.....//Shunt field current in Amperes
Ia=I+Ish;.......//Armature current in Amperes
E=V+(Ia*Ra)+Vb;...//Generated EMF in Volts
disp(E,"Generated EMF in Volts:");
Pt=E*Ia;...........//Total power in Watts
Uo=V*I;............//Useful output in Watts

eff=(Uo/Pt)*100;........//Efficiency in Percentage
y=round(eff*10)/10;....//Rounding of decimal places
disp(y,"Efficiency in Percentage:");