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

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

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

[复制链接]

该用户从未签到

尚未签到

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

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

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

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

* g$ X9 u7 R/ M0 g
) a6 h. q/ w9 l* E
( _) W, K: C! n5 G* Y& e你问题太空洞了,别人怎么解答??

评分

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

查看全部评分

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

该用户从未签到

尚未签到

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

更详细的求助了

请帮忙用有限元法做个同步电机电机磁场的模型相关程序(基于MATLAB)如下:% 1:air-gap, 2:culasse stator, 3: fer rotor,  
- i: @, v! `# p8 l, Z" C% 4-7: stator conductor,  28 - 29: rotor conductor- G% p" r8 m2 }# a/ A9 O

! _1 j! f' S5 A2 D2 b/ v5 Utic; clear;clc; close all;1 A8 R& i1 q! h) ^1 T6 J3 x% G! s

: O# u) d$ m: [; ^5 p, O
7 x3 J5 k. F; F; p( d4 f% E$ L# j, R$ [: m
%     ------------- Draw the geometry of stator, rotor et air-gap --------------
% u6 w  N3 j, R; r# V( c% J/ Y: R2 y& h+ ?
entref=1e-3;    % air-gap depth
# v& Z3 A8 b6 d3 [0 ~Rs=39.385e-3;        % radius of (rotor+airgap) / n  H" U# z. a6 o
Rr=Rs-entref;        % radius of rotor
/ w) ]5 N5 Q) c  ERc=71.75e-3;         % radius of stator& _9 h. i, n; j! v. b
* J) R  d+ C: f( E7 y/ Z, {
Nb=140;         % number of turns per phase" v# H/ t/ J' ~8 P$ j- l
Long=0.125;     % longitude of machine in rotation axis direction7 \9 Y# ~" Y1 m% {; j! r& R2 _
p=1;            % ??6 X- ?. m0 P/ `! w* _3 r3 x
f=50;           % ??
; {7 Y- I$ u& ^* A4 t" Q/ H; t- G% _5 d/ q' @+ H3 S
beta=35*pi/180; beta=beta/p;    % culasse rotor
4 c5 j. K3 n4 T6 h+ ubeta1=50*pi/180; beta1=beta1/p; % epanouissement polaire
2 _0 J7 m: o; y6 w& s. U" s, h
dessinP1;                        % a sub-programme to draw the geometry of the machine section with the parameters defined above
( |3 V7 k" @7 t2 z6 a' ^- M; `%     --------------- B( J" |. u4 D: O( e

7 a; Q7 X6 O% c; P; k6 l, t7 @$ _/ R7 B0 S# W9 M
%     ------------- Rotor positioning and initial mesh --------------
) [! G" o& ^5 G; \- U" {, O, O  w) r9 U, v& M
aa=-30*pi/180;         % initial angle of rotor; z. E+ G, f, \2 [4 |" c
gr=groto(gr,(aa));     % rotating the rotor to the angle specified above using the sub-programme 'groto' 2 \$ @: ^8 ]* S/ f0 D: S9 U
g=[gsf gr];            % stator + rotor given the whole machine geometry8 h% ?1 r! b' r9 {1 J. g0 F  u
limites;               % a sub-programme defining the bondary condition
' U# }0 M3 T0 R[p,e,t]=initmesh(g);   % initial mesh for the partial differential equation resolution
) g- p. c+ v& e8 K) f
& A! E1 Z- w( X %   ------------- mesh refine if necessary ------------2 h2 U, Z7 T% b5 h
% [p,e,t]=refinemesh(g,p,e,t,[1 30]);
# D" ]' @* `" E. R% V) U0 N% pdegplot(g); axis equal, hold on ; pdemesh(p,e,t), hold off
; s$ N; n9 @+ Z. Z6 i% pause$ C$ m" a7 c3 P/ k$ c" ^) C
%    -------------------------------------
- |+ S, W7 L9 [1 J! {$ a: a; n1 M  E- e; V8 M$ s
/ H+ @( D, ~7 L6 U# ~  A2 U6 l

6 b' J8 e: T3 L6 `" ]% J; C8 B%     -------------  specification of parameters required for calculation -------4 Y  `" A& f' d7 }5 z
    kexc=0;    S& U- V# x2 G2 J$ B1 x: a3 ]
    sigmaexc=kexc*5e6;                       % conductivity of rotor coil conductor8 t6 H* t, g9 n* L
    nuo=1/(4e-7*pi);                   % inverse of permeability of vacuum
, B" S  H1 W, L9 E. h0 @% m    murs=500; murr=500;                % relative permeability of stator and rotor+ t+ D$ S* l* l7 |3 K$ Q
                                    
4 V' N9 G3 i# v    ks=1; kr=0;                        % ks=1 or 0: stator excited or not; kr=1 or 0: rotor excited or not.
8 g; u4 [8 R" i' t. Z: \   
+ d& i* N& h# n# h: {2 u    Jex1=0;    Jex11=0;
+ K9 u8 f/ Q* B1 Q    Jex2 = 10e6*ks;     Jex21 = -Jex2;
  x7 H; ^! h0 X, p, }    Jex3 = 0;     Jex31 = 0;
6 m! c- Q$ t# q; ^%     Jex3=10e6*ks; Jex31=-Jex3;         % current density of phase a (stator)* w# v. a, E# Q2 m4 j! e
%     Jex1=-Jex3/2; Jex11=-Jex1;         % current density of phase b (stator)  ~; b. d# r/ |  k' R" t5 K, T) T
%         Jex2=-Jex3/2; Jex21=-Jex2;         % current density of phase c (stator), ^+ K1 E1 n5 R
    Jexr1=10e6*kr; Jexr2=-Jexr1;       % current density of rotor excitation. j% H: q/ {' ]4 [7 u# m% ?# R( Y! G

, r/ E, g' x$ t    garnissageP1;                           % a sub-programme for the giving the current density and permeability at each mesh element4 u# r( n9 j$ W
%     ------------- : ?" I" C* h7 `) J0 E, V
+ |( `7 |& e! V2 Y, \, s5 @

% @. H8 M  C! W/ A: ?! e* e' F
0 a; `& J% L8 e. J! I%     -------------   resolution of the partial differential equation and figure ploting ---------" I1 K: o, x  \

: P  p5 d' w/ d0 f9 d+ D9 ~7 L  n5 vu=assempde(bond,p,e,t,nu,0,J);         % resolution of the partial differential equation
/ \2 J' Z7 ~0 ~' h2 J% U=ASSEMPDE(B,P,E,T,C,A,F) assembles and solves the PDE problem -div(c*grad(u))+a*u=f; R- D+ h8 e0 E+ J; {# ]/ C1 ~8 g. Y
/ f* a: x* u* b- s9 Z: `9 M
figure (1), pdemesh(p,e,t), axis equal, title ('Mesh of the machine section')
+ k2 W, h) k: A) S; \5 Ffigure (2), pdegplot(g); axis equal; hold on; pdecont(p,t,full(real(u)),30), hold off, title('Magnetic field distribution'), % plots using 30 levels., K$ u! ^. e1 n5 \, i& D
%    ------------------------------$ q3 Z: N" h6 x7 {/ N

6 ~7 T( E7 I% z8 q, D6 T/ {/ \* K' o" b" Z
/ V7 [! T9 y. ^/ T' s; Y! }
% -------------- calculation of the energy stocked in the machine (energy sum in the magnetic field) --------------------% C7 x5 O4 C4 W0 _) g
0 d- K! X% x, Y! W. s5 S
% [ux,uy]=pdegrad(p,t,u);
* p) A- X6 D; \; g3 ^, d% bx=uy;1 w+ i" \8 @- `# F2 k
% by=-ux;
6 M- L% c' k9 N# d# Z1 |% for i=1:length(bx);4 G5 {/ [. G3 d) q% T9 m
%     b(i)=(bx(i)^2+by(i)^2)^.5;
' L% C4 |. l6 m8 x% end
; w: Q* ~- A. H7 g% nu_e=1/(4e-7*pi);, I( U% T! U2 O
% nu_c=nu_e;
& ?4 {$ J- n' m* U) B- Q" ~6 G% nu_s=1/500*nu_e;! Y+ a% \8 w0 T% A, m. E7 D
% nu_r=1/500*nu_e;! r) n; H; H6 B/ M7 ^0 {
% h=sparse(1,ntrg);
' [3 @7 r+ X% k! |/ c% ind_e=find(t(4,:)==2);
# j" _  p; X2 K# F! w% ind_s=find(t(4,:)==1);* |% `7 g/ t; u9 `# w8 ~" s
% ind_r=find(t(4,:)==3);
& n  e9 y( E; U% ind_c=find((t(4,:)>=4) & (t(4,:)<=27));
* T; @* o+ Z/ A: o% h(ind_e)=nu_e*b(ind_e)';/ T5 s1 |" P7 i8 Y
% h(ind_s)=nu_s*b(ind_s);
- p! U# [1 n1 a6 _6 b' r7 I% h(ind_r)=nu_r*b(ind_r);
1 X+ ?& M4 u3 J& E' Y1 A' v% h(ind_c)=nu_c*b(ind_c)';( C' I+ b6 p* q
% aire=pdetrg(p,t);* o( A: A) i; ]+ l0 v
% vol_trg=Long*aire;( Y- g0 f: P: V; z% J0 S
% energ_elem_e=1/2*(h(ind_e).*b(ind_e)').*vol_trg(ind_e);
  I/ ~( c; K  m+ o- E% energ_tot_e=sum(energ_elem_e);- W3 G2 C1 ^" z; m  t
% energ_elem_s=1/2*(h(ind_s).*b(ind_s)').*vol_trg(ind_s);
$ {5 r5 }, S* ~6 j% energ_tot_s=sum(energ_elem_s);$ {; i) p: j3 a  g  |4 E1 z" l
% energ_elem_r=1/2*(h(ind_r).*b(ind_r)').*vol_trg(ind_r);6 l3 q; @! a/ s
% energ_tot_r=sum(energ_elem_r);" U3 T2 J% X! W: V, ~9 C% i6 n
% energ_elem_c=1/2*(h(ind_c).*b(ind_c)').*vol_trg(ind_c);, ~" k3 a# t, ~1 ^% B& Y
% energ_tot_c=sum(energ_elem_c);& K: d& V& Y# M2 X4 T! {
% energ_total=energ_tot_e+energ_tot_s+energ_tot_r+energ_tot_c;
$ m( L- O( R. b) S( t% enr=energ_total;! t/ N; J, Y1 \
! o% g: j0 K  n, V+ M7 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-10-12 15:09

    Powered by Discuz! X3.5 Licensed

    © 2001-2026 Discuz! Team.

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