blob: 5ad67dd874a567c3d5495fa3490ee9991f45f947 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//To find the actual speed, the number of poles on the alternator and the required value of Ks
clc
//given
N=210//rpm
w=N*%pi/30
F=50
p1=F*120/(N*2)//N*p=F*120
p2=floor(p1)//no of poles must be a whole number ; P2=P/2
p=2*p2
N1=F*120/p
n=3//no of impulse per second
Ks=n/(6*p)//equation 12.13
printf("\nKs = %.4f\n\nActual speed = %.1f rpm\nNumber of poles = %.f",Ks,N1,p)
|