# PDE magnetostatic electromagnet how to measure the magnetic field.

조회 수: 62(최근 30일)
Bastiaan Pierik 2020년 5월 14일
편집: Bastiaan Pierik 2020년 5월 20일
Hi dear support from Matlab.
I recently finished designing my step/stl file on an electromagnet.
I got the shape, how do I apply around the electromagnet a coil? Or is this not needed? I would like to know the magnet field between two poles in 3D. Second why do I need boundary conditions?. The whole nabla thing is new to me.
For what I understand is, I upload the stl file in to Matlab, somehow apply the Ampere windings, and permeability for the stl file component. and do a simulation to determine the magnetic field. Maybe also change the geometry of the magnetic poles to increase the amount of Tesla.
I build something from scratch, heat treated (permeability 15000-20000) it and applied 6A at 30V over 500 windings from 0.4mm insulated wire.
##### 댓글 수: 1표시숨기기 없음
Bastiaan Pierik 2020년 5월 14일
The max amount of permeability for saturation is 2.15 Tesla for pure Iron.

댓글을 달려면 로그인하십시오.

### 답변(3개)

Ravi Kumar 2020년 5월 14일
Hi Bastiaan,
It might be easier if you do a 2-D approximate analysis. For 3-D, modeling the air around the coil to solve for magnetic field can get very complicated if you are unfamiliar with FEA workflow, particularly dealing with mesh. On the other hand, you can draw simple 2-D geometry using PDEModeler, where you can complete the whole setup for magnetostatics analysis or create geometry using decsg function and use PDEModel object workflow.
Regards,
Ravi
##### 댓글 수: 1표시숨기기 없음
Bastiaan Pierik 2020년 5월 14일
Hi Ravi thanks, I have some spare time in corona, perfect to do a simulation thanks for pointing That out.
I’ll have look at the 2 solver.
Best
B

댓글을 달려면 로그인하십시오.

Bastiaan Pierik 2020년 5월 18일
편집: Bastiaan Pierik 2020년 5월 18일
So I tried various combinations based upon the magnetic field of a stator example:
So I have a surrounding Air around the Coil
(R1+IRON+R2+R3-R4)*SQ1
so it cuts a region of interest, ok. I go to pde mode and select the regions that have a 15000 permeability.
at a current density I guess is I * N current x windings correct or how does this correlate?
so I select region 2 and 1 and add 15000 permeability and 6000 Ampere Windings.
how do I know the magnetic field between the poles?
its red and 40. do I need an equation for this?
thanks:) its fun
here is the code for simulation:
%
pderect([-6.0 6.0 -4.0 4.0],'R1')
pderect([-5.5 5.5 -1.5 1.5],' IRON')
pderect([-4.5 5 -0.5 0.5],'R3')
pderect([5.0 5.5 -0.1 0.1],'R4')
%cut out a section from the pde which you require
pderect([4.5 5.5 -1.0 1.0], 'SQ1')
%(R1+R2+R3+R4)*SQ1 which you want to zoom in on.
%
Bastiaan
##### 댓글 수: 1표시숨기기 없음
Ravi Kumar 2020년 5월 18일
Hi Bastiaan,
Glad to see you make progress in setting up your model. You did not past the full code to fully understand and respond to your question. It would be good if you just save the whole set up in PDEModeler ->File ->Save As..., then I will have better idea of your setup.
Regards,
Ravi

댓글을 달려면 로그인하십시오.

Bastiaan Pierik 2020년 5월 19일
편집: Bastiaan Pierik 2020년 5월 19일
i calculated the current density which is through a wire 6A at 0.5mm diameter = 3.06*10^13A/m2.
I give in this value into the regions:5 and 6.
the following regions have zero current density
and permeability is 9,1,4,3,2 regions =20000
the regions:10,11,7,8 air/permeability or free space = 4*pi*^10^-7
if I run the pde solver after mesh refinement I get= step size to small...
##### 댓글 수: 2표시숨기기 이전 댓글 수: 1
Bastiaan Pierik 2020년 5월 20일
So I changed everything to the metric system and divided by 1000. meters to mm
based on my calculation I get a current density of 6A/(0.25*pi*0.0005^2) hoewever the values I get for the Magnetic Field are still to high, if I change the current density to around
the magnetic field ABS(H) in which value do I measure ? Gauss i am guessing Gaus
I made the shape of the Poles pointy to see if there is a concentration on flux

댓글을 달려면 로그인하십시오.

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by