Show
Ignore:
Timestamp:
05/14/09 17:16:45 (15 years ago)
Author:
smidl
Message:

Barcelona

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/pmsm/Barcelona/QandR.m

    r338 r342  
    3030R11 = (istep+istep)^2/12 
    3131 
    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 
    3547dom = 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 
     48Qrat=[Fmag/Ls*dt,Fmag/Ls*dt, 1, dt].^2