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

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

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

[复制链接]

该用户从未签到

尚未签到

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

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

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

×
请高手来解答一下,急需 。最好两天内,谢谢了。
3 e9 F0 o' d$ i
! ?- V, d: o( C) m7 O- W* ]
# q; D1 n$ |+ L  T( a
你问题太空洞了,别人怎么解答??

评分

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

查看全部评分

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

该用户从未签到

尚未签到

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

更详细的求助了

请帮忙用有限元法做个同步电机电机磁场的模型相关程序(基于MATLAB)如下:% 1:air-gap, 2:culasse stator, 3: fer rotor,  
4 O  v6 [1 d, L  Y* @7 y% 4-7: stator conductor,  28 - 29: rotor conductor$ U8 r3 a- K) m5 v! Z9 a" F
5 p! v" o4 J4 p5 c+ g1 x- f
tic; clear;clc; close all;
7 i' p# |- G" u$ q! f* g% p  z# g: z6 h1 j# J8 G
2 c/ w# c" A+ |
9 P* D! f% R1 L7 b' n% U* I
%     ------------- Draw the geometry of stator, rotor et air-gap --------------
, q$ M9 }6 i7 G, y. K3 z- `1 s% \8 n5 N
entref=1e-3;    % air-gap depth
' J0 I1 B& ]+ c3 W' S; Q% T1 I* DRs=39.385e-3;        % radius of (rotor+airgap) 7 k5 z7 N( X% Q" v. z! X/ y% B
Rr=Rs-entref;        % radius of rotor
& X* y/ W# |: m: H. gRc=71.75e-3;         % radius of stator
- ?+ k9 o4 n4 ]+ I# l* `! |
  X6 g  p- d( W6 P7 N6 z4 r, p7 SNb=140;         % number of turns per phase
$ g1 M% Q( ^% T7 [$ C, }Long=0.125;     % longitude of machine in rotation axis direction
3 x( _) B' A2 q& \  A% U6 q+ F0 yp=1;            % ??; A/ J) x% i8 s
f=50;           % ??
4 ?7 V% ?( U/ l5 g! Q7 _
: [' E! @! T- d4 R3 Gbeta=35*pi/180; beta=beta/p;    % culasse rotor6 Y$ f8 u" @, E& X
beta1=50*pi/180; beta1=beta1/p; % epanouissement polaire8 }! K& x  X! k5 y9 d

" N  U+ k0 O  a2 O0 sdessinP1;                        % a sub-programme to draw the geometry of the machine section with the parameters defined above
4 P7 R# j6 d3 {" u, w& c%     --------------
4 Q% B( R0 E: k" s) y6 G: ~# v( T7 G8 |8 t5 d
. b) y, K% a2 \& W
%     ------------- Rotor positioning and initial mesh --------------! {! P4 I- U& |9 }3 P1 Q- W+ ^& S9 `

2 i5 b& n' J# h2 baa=-30*pi/180;         % initial angle of rotor% y; s/ n8 T. d9 {, v4 ^3 c/ B$ N! k9 R
gr=groto(gr,(aa));     % rotating the rotor to the angle specified above using the sub-programme 'groto' # v) n" W, Z( D8 g& c
g=[gsf gr];            % stator + rotor given the whole machine geometry
1 `. J& `0 y' p+ g7 B) e- f4 ]! olimites;               % a sub-programme defining the bondary condition$ P3 E- ?4 t( _" z, _' Y
[p,e,t]=initmesh(g);   % initial mesh for the partial differential equation resolution
  {/ v7 z6 w4 ^5 T
+ `% v( d; [& ~5 K$ Y% z+ F# D %   ------------- mesh refine if necessary ------------5 I' o. p; M- ?+ {4 P# V9 y1 m
% [p,e,t]=refinemesh(g,p,e,t,[1 30]);0 _3 {3 y# w6 I' l, _* C
% pdegplot(g); axis equal, hold on ; pdemesh(p,e,t), hold off$ Y3 ?* t6 f+ a% ]5 _
% pause
  F7 {, L1 J+ k$ i3 U& i%    -------------------------------------
9 m: r4 D) e& \) v7 z# I6 M6 b9 B& W  e9 \, d, s; I2 {
; k# t2 W6 c$ ]; V
2 A& D2 S) A; j. x$ ]4 k
%     -------------  specification of parameters required for calculation -------2 _7 u+ X! V! K5 D# m  ^) |4 e6 r
    kexc=0;  1 e1 I3 I. x6 T. [
    sigmaexc=kexc*5e6;                       % conductivity of rotor coil conductor
) P8 _  C' R; q/ u# k. \    nuo=1/(4e-7*pi);                   % inverse of permeability of vacuum , Q: H+ R: V$ G: Z
    murs=500; murr=500;                % relative permeability of stator and rotor
  g0 w9 A% ~2 v( v4 I+ ?9 [                                    ' h* t; m# C% V) C& g
    ks=1; kr=0;                        % ks=1 or 0: stator excited or not; kr=1 or 0: rotor excited or not.1 C6 C8 n0 e$ W8 t3 a# S- \
   
- b' l* U, w( e+ G2 x6 V- w    Jex1=0;    Jex11=0;
" X  {2 D( I/ U+ ?9 R. w    Jex2 = 10e6*ks;     Jex21 = -Jex2;9 J- ^7 ]' Q# u7 @& |8 g
    Jex3 = 0;     Jex31 = 0;5 q. V7 @' a; ?* ~9 r& g! `3 y
%     Jex3=10e6*ks; Jex31=-Jex3;         % current density of phase a (stator)/ p# |+ z; `4 K
%     Jex1=-Jex3/2; Jex11=-Jex1;         % current density of phase b (stator)
8 w3 c, v! T) C9 @%         Jex2=-Jex3/2; Jex21=-Jex2;         % current density of phase c (stator)
' m% S9 c4 @6 C    Jexr1=10e6*kr; Jexr2=-Jexr1;       % current density of rotor excitation* I% y1 ~  H, ^, n
( p& z, z* x. m' `8 n( s
    garnissageP1;                           % a sub-programme for the giving the current density and permeability at each mesh element
5 u6 j8 [! _7 i. D%     ------------- & a. }" |2 ?2 u  j1 z4 [7 g
7 Z# W9 _  u3 s6 F% q; f8 ]

9 c" f- D) b6 W" u, y. ^3 H
/ q" d9 `. N, F  m: m4 d& W' P$ _2 ]%     -------------   resolution of the partial differential equation and figure ploting ---------/ g! Q7 j9 a! N

( T* [$ L& z" ~" J8 ?u=assempde(bond,p,e,t,nu,0,J);         % resolution of the partial differential equation
' L6 c/ i$ z5 J$ |: X% U=ASSEMPDE(B,P,E,T,C,A,F) assembles and solves the PDE problem -div(c*grad(u))+a*u=f' i& ~! D! X# J, _. \

1 I/ F+ o. s1 Z* c  ?% ]figure (1), pdemesh(p,e,t), axis equal, title ('Mesh of the machine section')
/ T' X9 |* S# K1 H% Efigure (2), pdegplot(g); axis equal; hold on; pdecont(p,t,full(real(u)),30), hold off, title('Magnetic field distribution'), % plots using 30 levels., d, V# r, E& J9 H6 n' d! O7 I
%    ------------------------------, V0 |4 a# i. m  ], j; k

" {$ F) z1 P6 G  T9 j0 ^- S! X
; r9 E: z- z, t3 s4 L) o% U4 E
3 N) O& [1 m' {- [7 ~, s0 [% -------------- calculation of the energy stocked in the machine (energy sum in the magnetic field) --------------------; I% F9 x# m8 O' M& j9 l

  X9 W' a4 D7 W! h3 W9 Q# \5 G4 s7 S% [ux,uy]=pdegrad(p,t,u);
* W$ k) R' l) q5 |% bx=uy;6 O8 e4 t1 d; F7 [6 q" n$ t
% by=-ux;
8 }3 A' d7 W! j) h6 c, Q9 _. Q+ _% for i=1:length(bx);
3 b9 N5 O- D* }%     b(i)=(bx(i)^2+by(i)^2)^.5;
) p. {. X4 h# m. ^% end% `( O  e- X& T$ t6 G; g. _
% nu_e=1/(4e-7*pi);+ f0 X- E6 b6 z
% nu_c=nu_e;7 \5 I) Q. Y3 o1 s
% nu_s=1/500*nu_e;
# z: t9 x- _% [% y/ D! K% nu_r=1/500*nu_e;
, X( D; a# J: W5 _/ g, @9 ~% h=sparse(1,ntrg);
5 V' T# ^  k# Y9 k* w. t4 a% ind_e=find(t(4,:)==2);4 b- w: N3 `1 I; k8 Z
% ind_s=find(t(4,:)==1);' G5 E! U% F/ d) v! A; o/ ]0 K
% ind_r=find(t(4,:)==3);4 e0 H# \' T& n6 ~
% ind_c=find((t(4,:)>=4) & (t(4,:)<=27));8 t. E5 h4 C4 r  [
% h(ind_e)=nu_e*b(ind_e)';
$ u6 B4 y, K$ i* A7 O' Y% h(ind_s)=nu_s*b(ind_s);' E( S3 i* b) y2 q- \
% h(ind_r)=nu_r*b(ind_r);! n8 R9 C3 p6 U$ i, }
% h(ind_c)=nu_c*b(ind_c)';
1 ~3 O! x- k" v/ @% aire=pdetrg(p,t);
! p% k9 d  Z2 J6 L. n% vol_trg=Long*aire;
# a! x2 {8 Y) n0 i; L% t% energ_elem_e=1/2*(h(ind_e).*b(ind_e)').*vol_trg(ind_e);1 H' t. y3 [+ e3 D/ k
% energ_tot_e=sum(energ_elem_e);% X8 f3 c* e/ j8 `/ G) P* a( {
% energ_elem_s=1/2*(h(ind_s).*b(ind_s)').*vol_trg(ind_s);9 Z! `. s4 p( ^6 V7 n  q- l
% energ_tot_s=sum(energ_elem_s);' J* p' o: l5 t; p
% energ_elem_r=1/2*(h(ind_r).*b(ind_r)').*vol_trg(ind_r);- ^% S& I5 z# y; a. e$ O
% energ_tot_r=sum(energ_elem_r);. _$ |9 r0 F2 ^4 o1 d8 M4 y
% energ_elem_c=1/2*(h(ind_c).*b(ind_c)').*vol_trg(ind_c);
  B8 U* I+ ?: [% energ_tot_c=sum(energ_elem_c);
* b, R* t/ r! J% energ_total=energ_tot_e+energ_tot_s+energ_tot_r+energ_tot_c;
# p5 H) F, C/ t. K% enr=energ_total;# C, [) `) J( x8 u

4 ~( P( q9 J0 `" `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, 2024-4-19 20:02

    Powered by Discuz! X3.5 Licensed

    © 2001-2024 Discuz! Team.

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