summaryrefslogtreecommitdiff
path: root/1418/CH26/EX26.27/EX26_27.sce
diff options
context:
space:
mode:
Diffstat (limited to '1418/CH26/EX26.27/EX26_27.sce')
-rw-r--r--1418/CH26/EX26.27/EX26_27.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/1418/CH26/EX26.27/EX26_27.sce b/1418/CH26/EX26.27/EX26_27.sce
new file mode 100644
index 000000000..ac986af19
--- /dev/null
+++ b/1418/CH26/EX26.27/EX26_27.sce
@@ -0,0 +1,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:");