[Getdp] 2D axisymmetric magnetostatics

Stepan Roucka stepan at roucka.eu
Mon Dec 7 23:38:46 CET 2009


Hello everybody,
I am designing a magnetic adiabatic collimator and
I need to compute the electrostatic and magnetostatic
field in the apparatus. I have a problem with computing
the magnetic field in axial symmetry. I adopted an
example from the wiki with vector potential formulation.
I use the Form1P function space with zero Dirichlet BC
on axis an on the domain boundary (finite domain for now).
The resulting B field is very noisy especially close to the
axis (as illustrated by the attached plot of B magnitude).
Moreover, the shape of magnetic fields looks ok, but the
value is approximately 300 times smaller in comparison
to the results of FEMM.

Could someone please tell me what am I doing wrong?
My project files are attached.

Thanks in advance
Stepan Roucka
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ss.png
Type: image/png
Size: 171014 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/getdp/attachments/20091207/6657a460/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: my.geo
Type: application/octet-stream
Size: 5428 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/getdp/attachments/20091207/6657a460/attachment.geo>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: my.pro
Type: application/octet-stream
Size: 5900 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/getdp/attachments/20091207/6657a460/attachment.pro>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: EleSta_vl.pro
Type: application/octet-stream
Size: 3205 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/getdp/attachments/20091207/6657a460/attachment-0001.pro>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Integration_Lib.pro
Type: application/octet-stream
Size: 1191 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/getdp/attachments/20091207/6657a460/attachment-0002.pro>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Jacobian_Lib.pro
Type: application/octet-stream
Size: 1797 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/getdp/attachments/20091207/6657a460/attachment-0003.pro>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MagSta_a_2D.pro
Type: application/octet-stream
Size: 2935 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/getdp/attachments/20091207/6657a460/attachment-0004.pro>