Show
Ignore:
Timestamp:
05/06/09 15:25:59 (15 years ago)
Author:
smidl
Message:

Multiple Models + changes in loggers

Files:
1 modified

Legend:

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

    r335 r338  
    2929istep=0.085; 
    3030R11 = (istep+istep)^2/12 
     31 
     32%diffs 
     33Tl=10; 
     34th=[0 pi/2 pi]; 
     35dom = p/J*Tl*dt 
     36dia = Fmag/Ls*dt*dom*sin(th) 
     37dib = -Fmag/Ls*dt*dom*cos(th) 
     38dth = dom*dt 
     39 
     40% from om=0; 
     41dom2= dom + kp*p*p * Fmag/J*dt* ( dib .* cos ( th +dth)- dia .* sin ( th +dth) ) + dom 
     42dia = Fmag/Ls*dt*dom2.*sin(th+dth) 
     43dib = -Fmag/Ls*dt*dom2.*cos(th+dth) 
     44dth = dom2*dt