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

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

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

[复制链接]

该用户从未签到

尚未签到

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

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

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

×
请高手来解答一下,急需 。最好两天内,谢谢了。
1 p$ e4 `# ]: }  u

$ [. ^" g0 ^1 @( [1 [! a' D
4 N" L* l5 L( w" n- I你问题太空洞了,别人怎么解答??

评分

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

查看全部评分

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

该用户从未签到

尚未签到

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

更详细的求助了

请帮忙用有限元法做个同步电机电机磁场的模型相关程序(基于MATLAB)如下:% 1:air-gap, 2:culasse stator, 3: fer rotor,  8 m/ U9 z1 Q; I) F8 U% l# B
% 4-7: stator conductor,  28 - 29: rotor conductor
( t* v7 c. b1 P+ w) t) v' W0 c2 M$ h
& c% \/ {, I1 k  qtic; clear;clc; close all;
- {2 b  K$ x  H& f6 N
( M: _% f( X' H) [4 {- g
' w0 H6 F: o% a' ~; s; ]/ d) `: K+ \
%     ------------- Draw the geometry of stator, rotor et air-gap --------------/ L9 T' r: J. B, N) F$ F

2 p, P& l; @" K5 V2 f& A" |8 Fentref=1e-3;    % air-gap depth0 Y: t9 Z# ]  b* O
Rs=39.385e-3;        % radius of (rotor+airgap)   L9 m! E5 y7 R+ \$ r2 ^$ L
Rr=Rs-entref;        % radius of rotor
: |8 u$ c- w: w3 m& pRc=71.75e-3;         % radius of stator
  U- q  z3 l" }7 o
/ K% t, _& {1 x0 INb=140;         % number of turns per phase3 t! _2 a$ X+ ~
Long=0.125;     % longitude of machine in rotation axis direction
( z! P0 U+ B2 N, Zp=1;            % ??3 P1 n" g9 M4 J8 V7 [8 C: x
f=50;           % ??
3 L% I4 c. ~7 Q7 X7 X) J* `
7 B# H* }. o  h, N, U7 Z$ K6 W3 K4 F: Ebeta=35*pi/180; beta=beta/p;    % culasse rotor
; `2 m2 \6 a9 C& A4 Z3 W+ G. jbeta1=50*pi/180; beta1=beta1/p; % epanouissement polaire$ L) [# Q5 y$ u: Y
# i: F! c* A5 W; O, p# Z7 G# S, Z
dessinP1;                        % a sub-programme to draw the geometry of the machine section with the parameters defined above
; d5 x5 k* C+ k* g" O%     --------------0 d9 {& i  ~' R4 b) G

" ?0 e( O) r1 `! S4 R, ]6 R
( o# i7 W' q+ ~- u%     ------------- Rotor positioning and initial mesh --------------
( A$ z1 H; F. e! i; M# W
) j4 V9 l3 _. Baa=-30*pi/180;         % initial angle of rotor$ Z8 M! S2 w/ X
gr=groto(gr,(aa));     % rotating the rotor to the angle specified above using the sub-programme 'groto'
0 T& y; N. K5 F" M- J7 eg=[gsf gr];            % stator + rotor given the whole machine geometry
5 p4 l1 i8 ~0 Q+ X# S) v2 zlimites;               % a sub-programme defining the bondary condition
7 m! j3 Y- H+ p[p,e,t]=initmesh(g);   % initial mesh for the partial differential equation resolution
, {8 Y" X5 l& x" p  V; ^$ Y" x% ^7 m. s2 L
%   ------------- mesh refine if necessary ------------
* `, P5 y7 \5 I% [p,e,t]=refinemesh(g,p,e,t,[1 30]);
1 D- k4 F  K  x% pdegplot(g); axis equal, hold on ; pdemesh(p,e,t), hold off5 ?+ u2 m+ E: {; u- @
% pause
/ c% k+ R5 b( C) C. B" a5 x/ ?%    -------------------------------------. k3 ?1 y+ P5 i9 T/ r

& T. G& V: |. X8 F) E7 b" ^7 g* w7 Y# B) L$ a3 Y* w: o
- n5 `2 ?4 T9 C* Z- i
%     -------------  specification of parameters required for calculation -------
, D! D! @$ d: h- b    kexc=0;  ( ^! z2 C9 [+ ]3 h- ^- f
    sigmaexc=kexc*5e6;                       % conductivity of rotor coil conductor
- ^: ~. N: q4 w% ]    nuo=1/(4e-7*pi);                   % inverse of permeability of vacuum 3 L+ K* Z. m0 h* F6 W7 p% Q( k
    murs=500; murr=500;                % relative permeability of stator and rotor
8 e3 j* M7 u3 T" M                                    3 N" x4 K: D/ G( c6 K& n6 e
    ks=1; kr=0;                        % ks=1 or 0: stator excited or not; kr=1 or 0: rotor excited or not.1 ]1 ?9 E7 j9 e9 m2 d8 Z" K' Z
    & m! u8 V0 R4 h+ B: D
    Jex1=0;    Jex11=0;- h' n6 A3 B8 H- `: t
    Jex2 = 10e6*ks;     Jex21 = -Jex2;0 h. p2 |7 a& G  W, R: Y
    Jex3 = 0;     Jex31 = 0;
# @& u/ Z) Q2 i& W6 `- }%     Jex3=10e6*ks; Jex31=-Jex3;         % current density of phase a (stator)
$ ^5 {5 j; V$ @; o%     Jex1=-Jex3/2; Jex11=-Jex1;         % current density of phase b (stator)
: n& k8 _- E# I- J/ B- F' T# i%         Jex2=-Jex3/2; Jex21=-Jex2;         % current density of phase c (stator)
8 U5 u3 R' f, i& Q2 S    Jexr1=10e6*kr; Jexr2=-Jexr1;       % current density of rotor excitation
' Y4 S% q5 _1 Q- r! r# g* r' ?6 P# t, a
    garnissageP1;                           % a sub-programme for the giving the current density and permeability at each mesh element
9 ?: R, W: D7 T5 v2 l# j3 y# a%     ------------- ! j, Z0 {: `3 l2 N/ r7 T+ m

7 ?% {" I% C$ ^" d+ V/ E
0 @  j7 r' Y9 n5 b$ e9 R1 r; w! Z
  J3 `/ E  {( u5 R% e%     -------------   resolution of the partial differential equation and figure ploting ---------3 Q+ U/ R: ^1 ]' V" K, ?

: ]' X+ }/ u+ L. q0 I4 Ou=assempde(bond,p,e,t,nu,0,J);         % resolution of the partial differential equation9 x2 K2 s1 F- _' e" U7 G6 q
% U=ASSEMPDE(B,P,E,T,C,A,F) assembles and solves the PDE problem -div(c*grad(u))+a*u=f0 i! Q: M# Y' V  O; b
% c  ^) D8 @, S! m* V+ C- J/ C8 ~
figure (1), pdemesh(p,e,t), axis equal, title ('Mesh of the machine section')
* `- F+ {% [7 v( Mfigure (2), pdegplot(g); axis equal; hold on; pdecont(p,t,full(real(u)),30), hold off, title('Magnetic field distribution'), % plots using 30 levels.9 F% L; P+ @6 }8 n
%    ------------------------------
- h1 [7 ^+ E* b7 @4 v* k4 U; m4 e1 h( ^- `# F+ R

; G: x! R" C) S0 U) m9 q: a, R9 D- m  k
% -------------- calculation of the energy stocked in the machine (energy sum in the magnetic field) --------------------
0 v4 W( i: B: T5 A! {+ X# p5 D, p0 @. ?6 B
, u; [! q1 v; _3 x% [ux,uy]=pdegrad(p,t,u);" y$ m$ v& e0 C/ Z9 a: ^0 W
% bx=uy;' q, g, \1 u7 A+ p
% by=-ux;" j8 l& r8 e3 r4 \4 H
% for i=1:length(bx);
$ V% y7 o  u# i" @3 S* U%     b(i)=(bx(i)^2+by(i)^2)^.5;% b7 n7 [1 D6 Z5 Z  |
% end/ ~1 n. t' X" Z* r/ K9 g8 v
% nu_e=1/(4e-7*pi);! u9 x. B+ E2 v- g. b! m3 J
% nu_c=nu_e;& q# C5 u1 t. Q
% nu_s=1/500*nu_e;
( ]9 G2 J3 H1 G' R9 ?9 Z- N% nu_r=1/500*nu_e;3 l# v" J  c3 R1 s5 n2 A% X' I8 k; ]
% h=sparse(1,ntrg);3 D  e8 @7 P+ a- R+ U5 Q
% ind_e=find(t(4,:)==2);
) t2 f& R2 v" i, p2 m8 N3 v" E% ind_s=find(t(4,:)==1);1 w6 v# e9 t" h2 U
% ind_r=find(t(4,:)==3);% M& w) l+ \. N4 t, W* [
% ind_c=find((t(4,:)>=4) & (t(4,:)<=27));" o. H9 v( o6 z6 w
% h(ind_e)=nu_e*b(ind_e)';
( X+ }& y# E; o) H" D% h(ind_s)=nu_s*b(ind_s);4 _. y/ B, F4 V* p5 E
% h(ind_r)=nu_r*b(ind_r);
0 L! ~% b- a% l9 u. S% h(ind_c)=nu_c*b(ind_c)';, @5 I: b* e" Z
% aire=pdetrg(p,t);
( C: f) l! ~5 d0 a% vol_trg=Long*aire;0 ]& D/ v2 n& `3 O
% energ_elem_e=1/2*(h(ind_e).*b(ind_e)').*vol_trg(ind_e);
  o3 g2 \5 o3 P' @4 v% energ_tot_e=sum(energ_elem_e);
6 k7 }: F' Q3 n+ F% z( `0 @+ A% energ_elem_s=1/2*(h(ind_s).*b(ind_s)').*vol_trg(ind_s);
9 v5 F) L6 n2 c& D0 Q% energ_tot_s=sum(energ_elem_s);0 ]* E4 F' V& n4 u3 G0 x& ?* i/ [8 ?
% energ_elem_r=1/2*(h(ind_r).*b(ind_r)').*vol_trg(ind_r);# H: ]$ X, a7 }0 o6 g* |" l
% energ_tot_r=sum(energ_elem_r);
5 _/ p& z5 p9 j: A; a% energ_elem_c=1/2*(h(ind_c).*b(ind_c)').*vol_trg(ind_c);
: I" F% q, \' N6 D: m! d) ?% energ_tot_c=sum(energ_elem_c);! s. e- a  @. f" K3 k8 k3 A
% energ_total=energ_tot_e+energ_tot_s+energ_tot_r+energ_tot_c;
, G: A& c' a1 @; G/ k5 H% enr=energ_total;$ T) T+ |9 x- H
/ ?/ E1 [* j: {* j& o3 g
toc;
"真诚赞赏,手留余香"
还没有人打赏,支持一下
帖文化:【文明发帖 和谐互动】 社区精神:【创新、交流、互助、共享】
  • TA的每日心情
    慵懒
    2021-2-25 12:06
  • 签到天数: 80 天

    连续签到: 1 天

    [LV.6]常住居民II

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

    使用道具 举报

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

    本版积分规则

    招聘斑竹

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

    GMT+8, 2026-3-16 11:44

    Powered by Discuz! X3.5 Licensed

    © 2001-2025 Discuz! Team.

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