To run the model, open electromagnet.pro with Gmsh
and click on the "Run" button in the left panel.
Features addressed in this tutorial
Right-hand-side term of a Poisson problem
Boundary conditions at infinity
This is the magnetostatic 2D model of an electromagnet.
Only a quarter of the system is represented.
Symmetry is accounted for by means of
a Dirichlet boudary condition (bn=0) on the y-axis
and a Neumann boundary condition (ht=0) on the x-axis.
The coil has 1000 turns and is supplied with a current of 0.01A.
A magnetic core of default relative magnetic permeability equal to
(this value can be change by the user) is placed inside the coil.
The boundary condition at infinity
is accounted for exactly by means of a shell transformation (infinite elements).