summaryrefslogtreecommitdiff
path: root/503/CH8/EX8.17/ch8_17.sci
blob: a420656b4f820dba9998f45766ef09d02774e080 (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
25
26
27
28
29
30
31
32
33
34
35
//to calculate motor eff,excitation emf and power angle, max power op,corresponding net op

clc;
j=sqrt(-1);
Sop=40*1000;
Vt=600;
Ra=.8;
Xs=8;

Pst=2000;
Pmnet=30*1000;
Pm_dev=Pst+Pmnet;
Ia=Sop/(sqrt(3)*Vt);
Poh=3*Ia^2*Ra;
Pin=Pm_dev+Poh;
eff=(1-(Poh+Pst)/Pin)*100;disp(eff,'motor eff(%)');

cos_phi=Pin/(sqrt(3)*Vt*Ia);
phi=acosd(cos_phi);
Ia=Ia*(cosd(phi)+j*sind(phi));
Vt=Vt/sqrt(3);
Za=Ra+Xs*j;
Ef=Vt-Ia*Za;
Ef_line=Ef*sqrt(3);disp(Ef_line,'excitation emf(V)');
delta=atand(imag(Ef)/real(Ef));disp(delta,'power angle(deg)');
IaRa=abs(Ia)*Ra;
IaXs=abs(Ia)*Xs;
AD=Vt*cosd(phi)-IaRa;
CD=Vt*sind(phi)+abs(Ia)*Xs;
Ef_mag=sqrt((abs(AD))^2+(abs(CD))^2);

Pm_out_gross=-((abs(Ef_mag))^2*Ra/(abs(Za))^2)+(Vt*abs(Ef_mag)/abs(Za));
disp(Pm_out_gross,'max power op(W)');
power_angle=atand(imag(Za)/real(Za));
disp(power_angle,'power angle(deg)');