summaryrefslogtreecommitdiff
path: root/3816/CH10/EX10.5/10_5.sce
blob: 38ca24ef6376f20b4c9073250a93c95ebb8bd219 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clc;
clear;
xad=1.5;
xaq=0.60;
x=0.1;
xf=0.13;
Vq=1;
theta_0=0;
xd1=((xad*xf)/(xad+xf))+x;
xsq=xaq+x;
Ifo=1;
t=[0:0.1:20];
Ia=4.5*(cos(t)-3-(1.5*(cos(2*t))));
If=4.2*(1-cos(t))+Ifo;
plot(t,Ia)
plot(t,If)
xlabel('Rotor position')
ylabel('Rotor field current')