root/applications/pmsm/Barcelona/QandR.m @ 1465

Revision 706, 0.7 kB (checked in by smidl, 15 years ago)

eol-native

  • Property svn:eol-style set to native
Line 
1% Q
2std_ua=1; %2std = 2V
3std_ub=1;
4std_i_om=0.0002;
5std_i_th=1e-7;
6
7dt=0.000125;
8
9Rs=0.28;
10Ls=0.003465;
11Fmag= 0.1989;
12kp = 1.5;
13p = 4.0;
14J = 0.04;   
15Bf = 0.0; 
16Uc = 200.0;
17DT = 3e-6;
18
19
20StdQ=[ (dt/Ls)*std_ua + 0.005, ...
21    (dt/Ls)*std_ub + 0.005,...
22    0.0002,...
23    1e-7];
24
25Qu = (dt/Ls)^2*(2*3)^2/12;
26
27%R
28
29istep=0.085;
30R11 = (istep+istep)^2/12
31
32% %diffs
33 Tl=10;
34% th=[0 pi/2 pi];
35% dom = p/J*Tl*dt
36% dia = Fmag/Ls*dt*dom*sin(th)
37% dib = -Fmag/Ls*dt*dom*cos(th)
38% dth = dom*dt
39%
40% % from om=0;
41% dom2= dom + kp*p*p * Fmag/J*dt* ( dib .* cos ( th +dth)- dia .* sin ( th +dth) ) + dom
42% dia = Fmag/Ls*dt*dom2.*sin(th+dth)
43% dib = -Fmag/Ls*dt*dom2.*cos(th+dth)
44% dth = dom2*dt
45%
46
47dom = p/J*Tl*dt
48Qrat=[Fmag/Ls*dt,Fmag/Ls*dt, 1, dt].^2
Note: See TracBrowser for help on using the browser.