Chapter 1: Introduction

Example 1.1, Page Number: 6

In [2]:
from __future__ import division


#Variable declaration:
Pi = 4200                            #input power(W)
E = 120                              #voltage supply of generator(V)
I = 32.2                             #supply current(A)


#Calculation:
Po = E*I                          #output power(W)
n = Po/Pi*100                         #efficiency(%)
Pl = Pi-Po                         #power lost(W)
El = Pl*60                         #energy lost per minute(J)


#Result:
print "The percentage efficiency of the generator is",n,"%"
print "Energy lost per minute of operation is",El,"J"
The percentage efficiency of the generator is 92.0 %
Energy lost per minute of operation is 20160.0 J