设为首页收藏本站|繁體中文 快速切换版块

 找回密码
 立即加入
搜索
查看: 7694|回复: 2

求助关于基于MATLAB的电机磁场建模与分析问题

[复制链接]

该用户从未签到

尚未签到

发表于 2007-6-9 02:48:02 | 显示全部楼层 |阅读模式

马上加入,结交更多好友,共享更多资料,让你轻松玩转电力研学社区!

您需要 登录 才可以下载或查看,没有账号?立即加入

×
请高手来解答一下,急需 。最好两天内,谢谢了。

) A' w6 W+ @. u; k* u* x6 ]1 o5 \* \) S, \2 i" i
; ]: k9 Z* {  j; _2 V3 H/ z
你问题太空洞了,别人怎么解答??

评分

参与人数 1威望 +5 金币 +5 收起 理由
cepsc + 5 + 5 欢迎你常来

查看全部评分

"真诚赞赏,手留余香"
还没有人打赏,支持一下
楼主热帖
帖文化:【文明发帖 和谐互动】 社区精神:【创新、交流、互助、共享】

该用户从未签到

尚未签到

 楼主| 发表于 2007-6-20 17:07:19 | 显示全部楼层

更详细的求助了

请帮忙用有限元法做个同步电机电机磁场的模型相关程序(基于MATLAB)如下:% 1:air-gap, 2:culasse stator, 3: fer rotor,  
0 F$ B- {4 k! n- K7 {4 d% 4-7: stator conductor,  28 - 29: rotor conductor
' q8 Z6 K) G: U( o
8 [1 p* q/ B4 i4 d& x3 Otic; clear;clc; close all;5 F+ R* ?6 l/ ~& G# j
7 V: _) t7 w& K. \" Z: h) p
. e, _' _/ S+ r% r3 F
$ l; ?- `0 ^- N' C5 R
%     ------------- Draw the geometry of stator, rotor et air-gap --------------
! R4 s5 k* I6 [+ k  V( P
! b7 i4 W- p. o' H  `( r5 xentref=1e-3;    % air-gap depth& _+ P3 [4 ^. E# M$ A' G
Rs=39.385e-3;        % radius of (rotor+airgap) % Q, w% t, b/ U
Rr=Rs-entref;        % radius of rotor
" I% `7 k! j& i2 @Rc=71.75e-3;         % radius of stator
. i- E$ Z# D+ y
7 e  h7 I3 ^$ O3 J9 S5 ?  }" qNb=140;         % number of turns per phase
8 x2 I% g4 O( U0 n6 Z" S* ~Long=0.125;     % longitude of machine in rotation axis direction8 d1 k0 ?( l5 a2 f; [$ F
p=1;            % ??, b8 R- o8 Y! q
f=50;           % ??
3 l! A0 C( s; j9 k, _) @
8 q: }5 n8 h1 e9 E# `4 ?9 P6 Rbeta=35*pi/180; beta=beta/p;    % culasse rotor
, }( [6 ^+ s' e) F* \' hbeta1=50*pi/180; beta1=beta1/p; % epanouissement polaire$ d2 W" d* X6 s9 B2 Z& x/ J
! x8 i+ i; U) _$ X/ b
dessinP1;                        % a sub-programme to draw the geometry of the machine section with the parameters defined above
4 L+ E8 i( e9 f$ a: Q4 q%     --------------5 h& H! `) c( {9 ?8 ]/ F2 D8 h( ]

4 a& T/ ?' t/ u" n) O1 v: C5 j
% I# k5 D) R% Y; H%     ------------- Rotor positioning and initial mesh --------------
. q" _$ I  a9 V- V- _
' u: M: e( ^  Kaa=-30*pi/180;         % initial angle of rotor. J* x7 G, v: [
gr=groto(gr,(aa));     % rotating the rotor to the angle specified above using the sub-programme 'groto' $ M" E& m9 W. F. C) c
g=[gsf gr];            % stator + rotor given the whole machine geometry& B9 D1 t7 W( C
limites;               % a sub-programme defining the bondary condition
# Z2 z8 s* s1 k[p,e,t]=initmesh(g);   % initial mesh for the partial differential equation resolution) h, l$ Y% ?: _: T0 ~5 _
( r7 m8 Z5 c) V  Q
%   ------------- mesh refine if necessary ------------! N/ `2 C) [3 S0 U
% [p,e,t]=refinemesh(g,p,e,t,[1 30]);
1 {4 ^. Z/ W+ k6 W) ^% pdegplot(g); axis equal, hold on ; pdemesh(p,e,t), hold off
$ x* R* F# l4 T: T' z  [% pause
" y, h( x4 o0 ^8 V& q%    -------------------------------------7 O7 G2 O! t3 d- L% ?
# V% X: C9 m2 @1 P

$ ?; i$ X1 b9 E% ]& X. w) x6 x8 M
%     -------------  specification of parameters required for calculation -------
% [, S( h( k0 {$ e    kexc=0;  
3 A) g4 U7 g0 N, z    sigmaexc=kexc*5e6;                       % conductivity of rotor coil conductor/ f% M! m5 F+ n
    nuo=1/(4e-7*pi);                   % inverse of permeability of vacuum / \, y, K$ m4 V9 g* n" ~) E
    murs=500; murr=500;                % relative permeability of stator and rotor
+ a- l* T4 B3 S/ C                                    
% p. y0 j2 q% G( z; Q    ks=1; kr=0;                        % ks=1 or 0: stator excited or not; kr=1 or 0: rotor excited or not.
' |* P) R5 v2 ?, _& B) m    ( W# m7 \$ H5 W. p3 X* d
    Jex1=0;    Jex11=0;0 [3 }) U# k% r1 r
    Jex2 = 10e6*ks;     Jex21 = -Jex2;
* R4 n5 C1 M* T3 p. R2 l: V    Jex3 = 0;     Jex31 = 0;
/ j9 o. N* ]+ i4 u%     Jex3=10e6*ks; Jex31=-Jex3;         % current density of phase a (stator)- Q# M1 l/ K, b1 h1 G
%     Jex1=-Jex3/2; Jex11=-Jex1;         % current density of phase b (stator)2 t7 U$ K" F  T3 H
%         Jex2=-Jex3/2; Jex21=-Jex2;         % current density of phase c (stator)
6 c6 m& p; y$ Q$ J" A6 @0 x7 f( f    Jexr1=10e6*kr; Jexr2=-Jexr1;       % current density of rotor excitation
$ Y/ g  Z6 Q  u$ t3 Q  q. n0 q. ^6 O
; J, Z. Q: ]" x+ Q, b5 G# L    garnissageP1;                           % a sub-programme for the giving the current density and permeability at each mesh element
! Q6 M, O1 `* x) m% n%     -------------
2 e& p& f/ |; R2 n0 j. S4 @, M) g4 a( N) E

+ H& L) r9 G# W, `4 j& h  K1 {/ {4 {, F. M
%     -------------   resolution of the partial differential equation and figure ploting ---------7 D! ~7 X3 T5 Q) [( ?1 o2 J, m

4 @- Z8 ~& N0 d0 z( fu=assempde(bond,p,e,t,nu,0,J);         % resolution of the partial differential equation1 Y% }4 T: `- v7 |9 W
% U=ASSEMPDE(B,P,E,T,C,A,F) assembles and solves the PDE problem -div(c*grad(u))+a*u=f
7 D$ _4 ^0 f( [7 K1 G# O! G6 H2 R8 F( X; ^
figure (1), pdemesh(p,e,t), axis equal, title ('Mesh of the machine section')
/ k  O6 s7 m8 l% Afigure (2), pdegplot(g); axis equal; hold on; pdecont(p,t,full(real(u)),30), hold off, title('Magnetic field distribution'), % plots using 30 levels.# v* Z3 p% X7 _7 x$ x
%    ------------------------------* J, y' M9 e/ ?5 l& S

8 I5 F+ I$ Q( _8 h6 Z4 c, I" W: m6 M+ ~7 W3 @/ T$ G. x
+ S* {7 A, ]  N
% -------------- calculation of the energy stocked in the machine (energy sum in the magnetic field) --------------------) P  k+ \) Y$ l" w) K

8 n$ v+ E' M% ]2 }. {1 ?% [ux,uy]=pdegrad(p,t,u);
2 R; J0 w, V! |, R/ D' o, C% bx=uy;
9 s; d$ b" B* [8 Z" l! S# n% by=-ux;1 U# D3 m4 U( [
% for i=1:length(bx);
8 O5 D0 ~' d+ ~& k, O%     b(i)=(bx(i)^2+by(i)^2)^.5;) ^+ E6 H$ M7 V* k4 l9 X- c' e
% end! M! B- {+ j2 I  d
% nu_e=1/(4e-7*pi);" x7 |& p. m: h9 P) Y# D7 i
% nu_c=nu_e;
/ l% a! M) F: I! e% nu_s=1/500*nu_e;
- M# O5 ~# r- o0 l! _9 b8 W% nu_r=1/500*nu_e;
8 Y7 A- a' b2 m. P( Q% h=sparse(1,ntrg);( I8 @! ~$ v0 u. u4 d9 Z# m
% ind_e=find(t(4,:)==2);
: W, T5 P( Y% f7 p: B% ind_s=find(t(4,:)==1);4 s2 J: g7 {7 t& R8 f! v
% ind_r=find(t(4,:)==3);9 V* n- J& ?# w+ E
% ind_c=find((t(4,:)>=4) & (t(4,:)<=27));0 h1 z/ e8 Z9 @8 I+ D8 z. x
% h(ind_e)=nu_e*b(ind_e)';
9 k1 ^2 F# V% }: ~+ ^% h(ind_s)=nu_s*b(ind_s);8 I3 w# X; p6 C) ~9 C& X5 W5 w+ k
% h(ind_r)=nu_r*b(ind_r);3 f1 W5 N6 r" Y! a2 ]4 @$ D
% h(ind_c)=nu_c*b(ind_c)';
" e' s, v7 k  r6 |8 h7 y% aire=pdetrg(p,t);
0 V9 P5 O0 ]0 }) ?% vol_trg=Long*aire;3 P8 ?6 ~8 |) u( D7 Q0 f
% energ_elem_e=1/2*(h(ind_e).*b(ind_e)').*vol_trg(ind_e);
5 K6 ^  d2 P# |. L) f% energ_tot_e=sum(energ_elem_e);. c6 e7 @: s1 C& U$ u; X
% energ_elem_s=1/2*(h(ind_s).*b(ind_s)').*vol_trg(ind_s);
) M- A' y  w7 T! h0 V4 `% energ_tot_s=sum(energ_elem_s);  P+ A5 S$ _: j0 ^0 y
% energ_elem_r=1/2*(h(ind_r).*b(ind_r)').*vol_trg(ind_r);
6 ]" @& G. O& C5 r. v% energ_tot_r=sum(energ_elem_r);8 Z5 m6 f% P# B0 m0 b: Z
% energ_elem_c=1/2*(h(ind_c).*b(ind_c)').*vol_trg(ind_c);# e: v3 T- |* h9 K$ Q) A3 t% h
% energ_tot_c=sum(energ_elem_c);
8 Y0 n4 v4 D) z' p% energ_total=energ_tot_e+energ_tot_s+energ_tot_r+energ_tot_c;& r( _# }; n" ?6 s$ P, M, c
% enr=energ_total;( s' U- C; Z5 }- f; f2 S* ]
9 F% n; x! @9 S( t: D. |$ M* D
toc;
"真诚赞赏,手留余香"
还没有人打赏,支持一下
帖文化:【文明发帖 和谐互动】 社区精神:【创新、交流、互助、共享】
  • TA的每日心情
    慵懒
    2021-2-25 12:06
  • 签到天数: 80 天

    连续签到: 1 天

    [LV.6]常住居民II

    累计签到:84 天
    连续签到:1 天
    发表于 2020-12-11 10:01:33 | 显示全部楼层
    太深奥了,都没有看明白。。。
    "真诚赞赏,手留余香"
    还没有人打赏,支持一下
    帖文化:【文明发帖 和谐互动】 社区精神:【创新、交流、互助、共享】
    回复 推荐 踩下

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即加入

    本版积分规则

    招聘斑竹

    小黑屋|手机版|APP下载(beta)|Archiver|电力研学网 ( 赣ICP备12000811号-1|赣公网安备36040302000210号 )|网站地图

    GMT+8, 2025-4-21 11:14

    Powered by Discuz! X3.5 Licensed

    © 2001-2025 Discuz! Team.

    快速回复 返回顶部 返回列表