Changeset 342 for applications/pmsm/Barcelona/QandR.m
- Timestamp:
- 05/14/09 17:16:45 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/pmsm/Barcelona/QandR.m
r338 r342 30 30 R11 = (istep+istep)^2/12 31 31 32 %diffs 33 Tl=10; 34 th=[0 pi/2 pi]; 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 35 47 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 48 Qrat=[Fmag/Ls*dt,Fmag/Ls*dt, 1, dt].^2