Beruflich Dokumente
Kultur Dokumente
JOURNAL OF
Engineering Science and
Journal of Engineering Science and Technology Review 1 (2008) 83- 89 JOURNAL OF
Technology Review
Engineering Science and
Journal of Engineering Science and Technology Review 1 (2008) 83-89 Technology Review
Lecture Note www.jestr.org
Lecture Note www.jestr.org
The FEMM Package: A Simple, Fast, and Accurate Open Source Electromagnetic
Tool inFast,
The FEMM Package: A Simple, Science
andand Engineering
Accurate Open Source Electromagnetic
Tool in Science and Engineering
K. B. Baltzis*
K. B. Baltzis*
RadioCommunications Laboratory, Section of Applied and Environmental Physics,Dept. of Physics,
Aristotle University of Thessaloniki, 54124, Thessaloniki, Hellas
RadioCommunications Laboratory, Section
Received of Applied
7 April and Environmental
2008; Accepted 17 NovemberPhysics,Dept.
2008 of Physics,
Aristotle University of Thessaloniki, 54124, Thessaloniki, Hellas
Received 7 April 2008; Accepted 17 November 2008
___________________________________________________________________________________________
___________________________________________________________________________________________
Abstract
Abstract
The finite element method (FEM) is one of the most successful computational techniques for obtaining approximate
solutions
The finite elementto the partial(FEM)
method differential
is oneequations
of the most thatsuccessful
arise in many scientific and
computational engineering
techniques applications.
for obtaining Finite Element
approximate
Method
solutions to theMagnetics (FEMM)equations
partial differential is a software package
that arise for solving
in many scientificelectromagnetic
and engineeringproblems usingFinite
applications. FEM.Element
The program
addresses 2D planar and 3D axisymmetric linear and nonlinear harmonic low
Method Magnetics (FEMM) is a software package for solving electromagnetic problems using FEM. The program frequency magnetic and magnetostatic
problems
addresses and linear
2D planar and 3D electrostatic
axisymmetricproblems. It is nonlinear
linear and a simple, harmonic
accurate, and
low low computational
frequency magneticcost
andopen source product,
magnetostatic
popular in science, engineering, and education. In this paper the main characteristics and
problems and linear electrostatic problems. It is a simple, accurate, and low computational cost open source product, functions of the package are
popular in science, engineering, and education. In this paper the main characteristics and functions of the packagea are
presented. In order to demonstrate its use and exhibit the aid it offers in the study of electromagnetics series of
illustrative
presented. In orderexamples are given.
to demonstrate Theand
its use aimexhibit
of thethe paper
aid itis offers
to demonstrate
in the studytheofcapability of FEMM
electromagnetics to meet
a series of as a
illustrative examples are given. The aim of the paper is to demonstrate the capability of FEMM to meet as software
complementary tool the needs of science and technology especially when factors like the economic cost or the a
complexity
complementary tooldothe
notneeds
allow of thescience
use of commercial
and technology products.
especially when factors like the economic cost or the software
complexity do notElectromagnetics,
Keywords: allow the use ofsimulation,
commercial products.
finite element method, open source software.
___________________________________________________________________________________________
Keywords: Electromagnetics, simulation, finite element method, open source software.
___________________________________________________________________________________________
1. Introduction electrostatics solver considers the cases in which the
1. Introduction magneticsolver
electrostatics field considers
is neglected. the The
casesprogram
in which addresses
the 2D
The finite element method (FEM) is a computational method planar and 3D axisymmetric linear
magnetic field is neglected. The program addresses 2D and nonlinear harmonic
that element
The finite can be method applied(FEM) to obtain solutions to method
is a computational a variety of planarmagnetic and magnetostatic
and 3D axisymmetric linear and as nonlinear
well linear electrostatic
harmonic
problems in engineering and
that can be applied to obtain solutions to a variety of science. Steady, transient, problems. It is an open source, simple,
magnetic and magnetostatic as well linear electrostatic accurate, and low
linear and nonlinear problems
problems in engineering and science. Steady, transient, in electromagnetics, structuralproblems. It is an open source, simple, accurate, and lowseveral
computational cost open source product with
linear analysis,
and nonlinear and fluid
problems dynamics may be analyzed
in electromagnetics, and solved
structural applications
computational costin electromagnetics,
open source product materials science,
with severalindustry,
with it, [1-3]. It combines
analysis, and fluid dynamics may be analyzed and solved geometrical adaptability and medicine, experimental and particle
applications in electromagnetics, materials science, industry, physics, robotics,
material generality for modeling
with it, [1-3]. It combines geometrical adaptability and arbitrary geometries and astronomy, space engineering, and
medicine, experimental and particle physics, robotics,education, e.g. [5-14]. In
materialmaterials
generality of anyfor composition
modeling arbitrary withoutgeometries
a need to and alter the this paper
astronomy, spaceit engineering,
will be shown andthat FEMM ise.g.
education, a useful
[5-14]. toolIn for an
formulation
materials of the computer
of any composition withoutcodea thatneedimplements
to alter theit. The indepth
this paper it willstudy
be shownof electromagnetics,
that FEMM is a useful suitable
toolforfor scientists
an
idea of the method is to divide
formulation of the computer code that implements it. The the problem domain into a and engineers.
indepth study of electromagnetics, suitable for scientists
idea oflarge number isoftosubdomains,
the method divide the problemcalled finite
domain elements,
into a each The paper is organized as follows. In Section II some
and engineers.
with a simple geometry resulting
large number of subdomains, called finite elements, each in the transformation of the discussion about electromagnet
The paper is organized as follows. Intheory Sectionand the basic
II some
initial problem from a small but
with a simple geometry resulting in the transformation of the difficult to solve into a big principles of the finite element method
discussion about electromagnet theory and the basic is made. The main
initial but
probleman easy from to asolve.
small Through
but difficultthe process
to solve of discretization
into a big characteristics
principles of the finite of element
FEMM methodare presented
is made. in The
Section
mainIII. In
but an(also
easy referred
to solve.toThrough
as meshing) a linear of
the process algebraic system with
discretization order to point
characteristics of FEMM out theareevolutionary
presented in features
Section of III.
the software
In
many unknowns is formed. However,
(also referred to as meshing) a linear algebraic system with algorithms exist that illustrative examples are given in Section
order to point out the evolutionary features of the software IV. Finally, in
many allow
unknowns the resulting
is formed. problem
However, to bealgorithms
solved, usually in a short
exist that Section
illustrative VI conclusions
examples are givenare drawn.
in Section IV. Finally, in
allow amount
the resulting of time.
problem In theto beelectromagnetics
solved, usually in a discretization
a short Section VI conclusions are drawn.
amountscheme,of time. suchInasthe the electromagnetics
one that FEM implies, which implicitly
a discretization
scheme, incorporates
such as themost one of thattheFEMtheoretical
implies,features of the problem
which implicitly 2. Theoretical Backround
under analysis
incorporates most of the is one of the best
theoretical solutions
features of thetoproblem
get accurate 2. Theoretical Backround
under results
analysis in is
a variety
one ofofthe problems.
best solutions to get accurate The electromagnetic field is expressed in terms of the
Finite Element
results in a variety of problems. Method Magnetics (FEMM) software field isE expressed
electric field intensity
The electromagnetic , the magnetic in termsfield offluxthedensity
package, [4], has been developed
Magnetics for this reason addressing B J
Finite Element Method (FEMM) software electric field intensity E , the magnetic field flux density
, and the current density , using the Maxwells
package,some [4],limiting
has been cases of Maxwells
developed for thisequations. The magnetic
reason addressing equations. These are, [15-16]:
B , and the current density J , using the Maxwells
problemscases
some limiting facedofareMaxwells
magnetostatic or the The
equations. low magnetic
frequency (LF)
ones in which displacement currents are negligible. equations. These are, [15-16]:
The
problems faced are magnetostatic or the low frequency (LF) E = 0 (1)
ones in which displacement currents are negligible. The
______________
* E-mail address kmpal@physics.auth.gr
E = 0 (1)
______________
ISSN: 1791-2377 2008 Kavala Institute of Technology. All rights reserved.
* E-mail address kmpal@physics.auth.gr
ISSN: 1791-2377 2008 Kavala Institute of Technology. All rights reserved.
83
K.B. Baltzis/ Journal of Engineering Science and Technology Review 1 (2008) 83-89
K.B. Baltzis/ Journal of Engineering Science and Technology Review 1 (2008) 83 89
B = 0 (2)
1
B + V J + j = 0 (13)
E + =0 (3) eff ( B )
t
where J is the phasor transform of the applied current
E
B J + =0 (4) sources, eff ( B ) is the effective magnetic permeability,
t and is the complex amplitude of the phasor
transformation, [20] , of A .
where is the charge density, while and are
In any electromagnetic problem a unique solution is
respectively the electrical permittivity and the magnetic guaranteed by the boundary conditions applied, [15-16]. The
permeability of the medium. Quantities E and J are also conditions used by FEMM are the Dirichlet, the Neumann,
related (Ohms law). It is: and the Robin. In the first, the potential is explicitly defined
on the boundary. This is used in magnetic problems to keep
J =E (5) magnetic flux from crossing the boundary and in
electrostatics to fix the voltage of a surface in the problem
with the medium conductivity. domain. The second specifies the normal derivative of
The FEMM package, [4], [17-18], addresses some potential along the boundary and is consistent with an
limiting cases of Maxwells equations, the magnetostatics, interface with a highly permeable metal. The last one is a
the electrostatics, and the LF time harmonic magnetic linear combination of the previous two and is used to define
problems. For the timeinvariant cases (3) and (4) are boundary conditions that allow a bounded domain to mimic
simplified into: the behavior of an unbounded one. It usually denotes an
interface with a material subject to eddy currents, [21-23], at
frequencies where the material skin depth is very small.
E = 0 (6)
As it is already mentioned FEM is used in many fields of
science and engineering to obtain approximate solutions for
B J = 0 (7) the partial differential equations to be solved. Its basic
concept is that although the behavior of a function may be
In a magnetostatic problem FEMM goes about finding a complex when viewed over a large region, a simple
field that satisfies (2) and (7) via the magnetic vector approximation may be sufficed for a small subregion. In
potential approach. Flux density is written in terms of the practice, it utilizes a variational problem that involves an
vector potential A , as: integral of the differential equation over the problem domain
by dividing it into a large number of nonoverlapping
subregions, each with a simple geometry. Over each
B = A (8) subregion the solution of the partial differential equation is
def
approximated by a polynomial function. These polynomials
and Eq. (7) becomes: have to be pieced together so that where the edges of
adjoining elements overlap the field representations must
agree to maintain continuity of the field. Then the variational
1 integral is evaluated as a sum of contributions from each
A = J (9)
(B)
element resulting in an algebraic system with a finite size
than the original infinitedimensional partial differential
equation. When enough small regions are used the
Which for the case of a linear isotropic magnetic material, approximate solution closely matches the exact one. The
[19], it is further simplified into advantage of breaking the domain down into a number of
small elements is the problem transformation from a small
2A + J = 0 (10) but too complex into a big but relatively easy to solve. It has
to be noticed that, unlike other computational techniques, in
the finite element method the approximate solution is known
In an electrostatic problem FEMM employs the electric throughout the domain as a pieceise function and not as a set
scalar potential V , defined from of points.
E = V (11)
def 3.The main characteristics of the package
In this case the differential equation solved is the FEMM is a suite of programs for solving electromagnetic
problems on 2D planar and 3D axisymmetric domains,
[4], [17-18]. The problems addressed are linear and
2V + =0 (12) nonlinear magnetostatic and LF time harmonic magnetic,
and linear electrostatic ones. Its popularity is based on its
open source distribution, simplicity, accuracy, low
Low frequency time harmonic magnetic problems are computational cost, the great amount of users contributed
also solved with FEMM when the field is oscillating in one libraries and applications and the development of the Lua
fixed frequency . In this case the equation solved is:
84
84
K.B. Baltzis/ Journal of Engineering Science and Technology Review 1 (2008) 83-89
K.B. Baltzis/ Journal of Engineering Science and Technology Review 1 (2008) 83 89
85
K.B. Baltzis/ Journal of Engineering Science and Technology Review 1 (2008) 83-89
K.B. Baltzis/ Journal of Engineering Science and Technology Review 1 (2008) 83 89
A
+ RA = 0 (14)
n
86
86
K.B. Baltzis/ Journal of Engineering Science and Technology Review 1 (2008) 83-89
K.B. Baltzis/ Journal of Engineering Science and Technology Review 1 (2008) 83 89
d 2 H 1 dH 1
2
+ 2 (1 + j 2 fr 2 ) H = 0 (15)
dr r dr r Fig. 10. Density and vector plot of the real part of the magnetic flux
density.
where f is the current frequency and and are
respectively the magnetic permeability and conductivity of
the medium. The only boundary condition that is used is the
A = 0 at the outer radius of the tube. For increased
accuracy and low computational cost different discretization
steps (mess sizes) are considered in the different parts of the
problem domain, see Fig. 9.
Fig. 11. Density and vector plot of the imaginary part of the magnetic
flux density.
87
87
K.B. Baltzis/ Journal of Engineering Science and Technology Review 1 (2008) 83-89
K.B. Baltzis/ Journal of Engineering Science and Technology Review 1 (2008) 83 89
V 2
+ V =0 (16)
Fig. 12. Illustration of eddy currents induced in the tube. n
Fig. 16. Electric voltage (electric field scalar potential) density plot and
equipotential curves.
5. Conclusions
88
88
K.B. Baltzis/ Journal of Engineering Science and Technology Review 1 (2008) 83-89
K.B. Baltzis/ Journal of Engineering Science and Technology Review 1 (2008) 83 89
and engineering. The problems can be solved are 2D planar through simple examples. Its capability to meet as a
and 3D axisymmetric ones. The paper provides a brief complementary tool the needs of science and technology has
overview of the software characteristics and its potential been shown.
applications. A demonstration of its features it presented
______________________________
References
[1] R. C. Booton Jr, Computational Methods for Electromagnetics observations at 433 Eros: First measurements form the surface of
and Microwaves, John Wiley & Sons, Inc, New York, (1992). an asteroid, Icarus, 155, pp. 220-228, (2002).
[2] J. L. Volakis, A. Chatterjee., and L. C. Kempel, Finite Element [13] C. Boniface, G. J. M. Hagelaar, L. Garrigues, J. P. Boeuf, and M.
Methods for Electromagnetics, IEEE Press, USA, (1998). Prioul, A MonteCarlo study of ionization processes in Double
[3] S. Moaveni, Finite Element Analysis: Theory and Application Stage Hall Effect Thruster, Proc. XXVIIth ICPIG, topic 19,
with ANSYS, 3rd ed., PrenticeHall, Inc., New Jersey, (2007). Eindhoven, The Netherlands, (2005).
[4] http://femm.foster-miller.net [14] K. B. Baltzis, On the usage and potential applications of the finite
[5] J. iquez, V. Raposo, A. G. Flores, M. Zazo, and A. Hernndez element method magnetics (FEMM) package in the teaching of
Lpez, Magnetic levitation by induced eddy currents in non electromagnetics in higher education, in Proc. CBLIS 2007, pp.
magnetic conductors and conductivity measurements, Eur. J. 408-420, Heraklion, Greece, (2007).
Phys., 26, pp. 951-957, (2005). [15] C. A. Balanis, Advanced Engineering Electromagnetics, John
[6] N. Pamme, Magnetism and microfluidics, Lab Chip, 6, pp. 24-38, Willey & Sons, Inc., New York, (1989).
(2006). [16] R. F. Harrington, Time-Harmonic Electromagnetic Fields, IEEE
[7] T. Wichert and H. Kub, Design and optimization of switched Press, New York, (2001).
reluctance machines, Proc. XLI International Symposium on [17] D. Meeker, Finite Element Method Magnetics: Users Manual, 4th
Electrical Machines (SME 2005), Jarnotwek, Poland, (2005). ver., Waltham, (2004)
[8] O. Rotariu, L. E. Udrea, N. J. C. Strachan, and V. Badesqu, [18] FEMM 4.0 Electrostatics Tutorial, Waltham, (2004).
Targeting magnetic carrier particles in tumor microvasculature [19] N. A. Spaldin, Magnetic Materials: Fundamentals and Device
A numerical study, Journal of Optoelectronics and Advanced Applications, University Press, Cambridge, (2003).
Materials, 7, pp. 3209-3218, (2005). [20] S. R. Hoole, Computeraided Analysis and Design of
[9] Y. S. Lee, G. Kim, V. R. Skoy, and T. Ino, Development of a Electromagnetic Devices, Elsevier, New York, (1989)
neutron polarizer 3He spin filter at the Pohang neutron facility, [21] R. L. Stoll, The Analysis of Eddy Currents, Oxford University
Journal of the Korean Physical Society, 48, pp. 233-239, (2006). Press, Oxford, England, (1974).
[10] R. Picker, A new superconducting magnetic trap for ultracold [22] A. Krawczyk A. and J. A. Tegopoulos, Numerical Modelling of
neutrons, Diploma thesis, Technische Universitt Mnchen, Eddy Currents, Oxford University Press, USA, (1993).
Germany, (2004). [23] J. K. Sakellaris, Eddy Currents Modelling in Thin Layers,
[11] C. J. Zandsteeg, Design of a RoboCup Shooting Mechanism, WSEAS Press, (2007).
Report 2005.147, Eindhoven University of Technology, The [24] R. Ierusalimschy, Programming in Lua, 2nd ed., Biblioteca do
Netherlands, (2005). Departamento de Informtica, (2006)
[12] M. H. Acua, B. J. Anderson, C. T. Rusell, P. Wasilewski, G. [25] http://www.lua.org
Kletetshka, L. Zanetti, and N. Omidi, Near magnetic field
89