Revision 338, 0.6 kB
(checked in by smidl, 16 years ago)
|
Multiple Models + changes in loggers
|
Line | |
---|
1 | % Q |
---|
2 | std_ua=1; %2std = 2V |
---|
3 | std_ub=1; |
---|
4 | std_i_om=0.0002; |
---|
5 | std_i_th=1e-7; |
---|
6 | |
---|
7 | dt=0.000125; |
---|
8 | |
---|
9 | Rs=0.28; |
---|
10 | Ls=0.003465; |
---|
11 | Fmag= 0.1989; |
---|
12 | kp = 1.5; |
---|
13 | p = 4.0; |
---|
14 | J = 0.04; |
---|
15 | Bf = 0.0; |
---|
16 | Uc = 200.0; |
---|
17 | DT = 3e-6; |
---|
18 | |
---|
19 | |
---|
20 | StdQ=[ (dt/Ls)*std_ua + 0.005, ... |
---|
21 | (dt/Ls)*std_ub + 0.005,... |
---|
22 | 0.0002,... |
---|
23 | 1e-7]; |
---|
24 | |
---|
25 | Q= StdQ.^2 |
---|
26 | |
---|
27 | %R |
---|
28 | |
---|
29 | istep=0.085; |
---|
30 | R11 = (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 |
---|