Vous êtes sur la page 1sur 6

#include<stdio.

h>
#include<conio.h>
#include<math.h>
void main ()
{
int rate,pvol,svol,l,temp,stwo,tpo,el;
float rdr,s,e,flux,fis,agd,d,wls,wis,wss,di,aw,hw,msvol,swt,slt,hlt,mpvol,
ef,fip,snt,gay;
float wy,hy,idlt,edl,trl,ms,haht,hoc,rdo,eltwo,hrc,elthree,thht,edht,dcc,trw,
trh,tlen,twid,fr;
float tht,sat,plossp,str,hot,not,ww,dbc,ploss,x;
char type[10];
clrscr ();
printf("\n\n TRANSFORMER SIZE AND TANK.");
printf("\n");
printf("\n Enter the rating in KVA:");
scanf("%d",&rate);
printf("\n. Enter the primary voltage in volts:");
scanf("%d",&pvol);
printf("\n. Enter the secondary voltage in volts:");
scanf("%d",&stwo);
printf("\n Enter the frequency of machine in Hz:");
scanf("%d",&fr);
printf("\n Enter the steps in percentage:");
scanf("%d",&s);
printf("\n Enter the temperature as integer value:");
scanf("%d",&temp);
printf("\n Enter the effiency of the machine in percentage value:");
scanf("%f",&ef);
clrscr ();
printf("\n DESIGN OF TRANSFORMER");
printf("\n\n THE OUTPUT OF GIVEN DATA IS AS FOLLOWS:");
printf("\n. DESIGN OF OVERALL TRANSFORMER SIZE AND TANK DESIGN");
printf("\n1.Providing cooling tubes with 0.05diameter.");
printf("\n2. Periphery of each tube=0.15707m");
trl=(2*dcc)+edht;
printf("\n\n\na.The transformer length in m=%f",trl);
trw=edht;
printf("\nb The transformer width in meter=%f",trw);
trh=(2*hy)+hw;
printf("The transformer height in m=%f",trh);
printf("\n\n\n TANK DESIGN");
tlen=trl+(2*0.07);
printf("\n\nd.The tank heightd in m=%f",tlen);
twid=trw+(2+0.1);
printf("\n The transformer width in m=%f",twid);
tht=trw+0.5;
printf("\n The tank height in m=%f",tht);
sat=2*tht*(tlen+twid);
printf("\ng.The surface area of the tank in sqarm=%f",sat);
ploss=(rate*(100-ef))/100;
printf("\nh The power loss to be dissipated from the tank and the tube surface in
KW=%f",ploss);
x=((ploss*1000)/(sat*temp)-3.7)/8.8;
str=(x-1)*sat;
printf("\ni.Surface area required for the tubes in sqarm=%f",str);
not=str/0.157;
printf("\nk. No.of tubes required=%f",not);
printf("n\n\n THE TRANSFORMER SIZE AND TANK DESIGN IS COMPLETED.");
getch();
}
# include<stdio.h>
# include<conio.h>
# include<math.h>
void main( )
{
float temp,l,d,pi=3.14,volt,power,speed,freq,bav=42;
float lg,va,q=15000,ratio=0.7;
float bemt,iemf,na,spp,z,hs,sp,nacps,nact,ia,ic,ampers;
float sa,fpp,tappa,atppa,td,sw;
float lt,tm,tb,ncs,csp,ts,hr,ib,bw,loc,cabs;
float wd,lp,fp,sap,pp;
float vav,vapc,atpp,fat,mlft,af,dfc,atpc;
float dc,yp,emax,it,hfc,tplfc,nlpfc,ttp,fc,cdfc,hp,dy;
float shy,ly,ty,edy;
float d21,pl,poles,r1,r;
int pole;
clrscr( );
printf("\n Enter the power rating in KW:");
scanf("%f",&power);
printf("\n Enter the speed in rpm: ");
scanf("%f",&speed);
printf("\n Enter the voltage in volts:");
scanf("%f",&volt);
printf("\n Enter the frequency in Hz:");
scanf("%f",&freq);
printf("\n Enter the poles:");
scanf("%d",&pole);
printf("\n MAIN DIMENSIONS:");
d21=(power/15000*60)/(pl*pi*bav*q*speed);
freq=(speed*poles)/120;
{double x =(2*dy)/(ratio*pi) , y =0.333;
printf("%lf raised to %lf is %lf\n", x, y, pow(x, y));
} //d=double pow(double((2*dy)/(ratio*pi)), double 0.333);
dc=85;
l=(ratio*pi*d)/pole;
yp=(pi*d*speed)/60;
va=(pi*d*speed)/60;
emax=(2*bav*l*va)/ratio;
lg=(l*100)-10;
wd=lg/2;
//lt=9*lg;
printf("\n\n MAIN DIMENSIONS:\n Diameter=%f,\n Length=%f\n",d,l);
printf("\n DESIGN OF MAIN DIMENSIONS COMPLETED");
printf("%f%f%f%f%f",d21,emax,yp,dc,wd);
getch( );
}
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main( )
{
float temp,l,d,d21,pi=3.14,volt,power,speed,freq,bav=42;
float lg,wd,lt,emax,va,yp;
float bemf,temp,nacspp,z,ns,sp,nacps,nact,ia,ic,ampcps,id=4;
float sa,fdats=1.35,fpp,tappa,pppp=0.72,spp=10,nc=32,atppa,td,sw;
float tm,tb,dc,ncs,csp,ts,hr,ib,bw,loc,cabs;
float fp,sap,pp;
float vav,vapc,atpp,fat,mlfa,af,dfc,atpc;
float say,ty,ly,edy;
int pole;
clrscr( );
printf("\n Enter the power rating in KW:");
scanf("%f",&power);
printf("\n Enter the speed in rpm");
scanf("%f",&speed);
printf("\n Enter the voltage in volts:");
scanf("%f",&volt);
printf("\n Enter the frequency in Hz:");
scanf("%f",&freq);
printf("\n Enter the poles:")
scanf("%d",&pole);
printf("\n ARMATURE DESIGN:");
bemf=0.9*volt;
lemf=bav*l*va;
nacspp=bemf/iemf;
z=pole*nacspp;
ns=spp*pole;
sp=(100*pi*d)/ns;
nact=nc*ns;
ia=(power*1000)/bemf;
ic=ia/pole;
ampcps=ic*nc;
sa=ic/id;
fpp=0.45*l*sp;
tappa=fpp/fdats;
atppa=(ns/pole)*pppp;
td=((tappa*10000)/(atppa*(lt*10));
sw=sp-td;
printf("\n back emf=%f,\n induced emf=%f
,\n no. of armature conductors required in series per path=%f,
\n total no of armature conductors=%f,\n no. of slots=%f,
\n slot pitch=%f,\n armature conductors per slot=%f,
\n armature conductors actually provided=%f,\n armature current=%f,
\n current in each parrel path=%f,\n ampere conductors per slot=%f,
\n sectional area=%f,\n",bemf,nacspp,z,ns,sp,nacps,nact,ia,ic,ampcps,sa);
printf("\n flux per pole=%f,\n total area per pole arc=%f,
\n armature teeth per pole arc=%f,\n tooth width=%f,\n slot width=%f\n,
fpp,tappa,atppa,td,sw);
printf("\n DESIGN OF DC ARMATURE COMPLETED:");
getch( );
}
# include<stdio.h>
# include<conio.h>
# include<math.h>
# define pi 3.14
void main( )
{
int speed,vol,fr,ph,p,rate;
float cap,ef,pf,di,len,li,adj;
char type[10];
clrscr( );
printf("\n\n DESIGN OF SQUIRREL CAGE INDUCTION MOTOR,\n THIS HAS
THREE PARTS:");
printf("\n\n enter the rating in watts:");
scanf("%d",&rate);
printf("\n enter the voltage in volts:");
scanf("%d",&vol);
printf("\n enter the frequency in Hertz:");
scanf("%d",&fr);
printf("\n enter the phase of machine");
scanf("%d",&ph);
printf("enter the speed in rpm");
scanf("%d",&speed);
printf("\n enter the power factor of machine in decimal");
scanf("%f",&pf);
printf("\n enter the efficiency of machine in decimal");
scanf("%f",&ef);
printf("\n\n THE OUTPUT OF GIVEN MOTOR IS ");
printf("\n\n MAIN DIMENSION DESIGN")
cap=(rate)/(1000*p*ef);
printf("\n\na Capacity of given motor in KVA is %",cap);
p=(120*f)/speed;
printf("\nb the no of poles is%d",p");
adi=(cap*60)/(1.11*3.14*3.14*0.4*20*speed*0.96);
printf("\nc Diameter of stator core in meter %f",di');
di=pow((adi*1.27)/0.334);
printf("\nd The length of stator core in meter:%f,len");
len=((pi*di)/4.0);
printf("\ne the net iron length of stator core in meter:%f",");
li=(0.9*(len-0));
printf("\n\n MAIN DIMENSION DESIGN COMPLETED");
getch( );
}

Vous aimerez peut-être aussi