User Tools

Site Tools


start

This is an old revision of the document!


Start

This website is devoted to gathering extended documentation on the Finite Element Magnetics Method. It is a finite-element modelling software created by Dr David Meeker and kindly released for free use to anyone, under the Aladdin Free Public License.

The Unofficial FEMM documentation website.

Helpful page? Support Encyclopedia Magnetica.

All we need is $0.25 per month? Come on… ;-)

FEMM general settings

MAGNETICS

Don't know how to do something in FEMM? First, read through the manual. But perhaps you can find some useful tricks and tutorials below

Magnetics pre-process

Mesh

Boundary conditions

  • The length of segments for periodic and anti-periodic boundary should match to within 1e-6 of the base units used in the geometry.

Circuits

Materials

Analyse

Magnetics post-process

Currents

Magnetic coupling factor

LUA script for calculating magnetic coupling coefficient between two windings. The windings have to be set up as described in the comments in the code below:

-- Short Lua script for calculating coupling factor of two coils.
-- It presumes the problem is already defined in FEMM, and
-- that the two windings are defined by circuits named "pri" and "sec".
-- The problem may be DC or AC at a frequency of your choice.
-- Intended for circuits with series property.
-- Execute with the FEMM menu item File/OpenLuaScript.
clearconsole()
showconsole()
-- Simulate first with only secondary current:
mi_modifycircprop("pri",1,0)
mi_modifycircprop("sec",1,1)
mi_analyze()
mi_loadsolution()
print(mo_getcircuitproperties("sec"))  -- Optional display of intermediate results
print(mo_getcircuitproperties("pri"))  -- Optional display of intermediate results
i, Vsec, Lsec = mo_getcircuitproperties("sec")
i, Vpri_sec, Lpri_sec = mo_getcircuitproperties("pri")
-- Simulate next with only primary current:
mi_modifycircprop("pri",1,1)
mi_modifycircprop("sec",1,0)
mi_analyze()
mi_loadsolution()
print(mo_getcircuitproperties("sec"))  -- Optional display of intermediate results
print(mo_getcircuitproperties("pri"))  -- Optional display of intermediate results
i, Vsec_pri, Lsec_pri = mo_getcircuitproperties("sec")
i, Vpri, Lpri = mo_getcircuitproperties("pri")
-- Calculate and print coupling factor:
coupling_factor = sqrt(Lsec_pri * Lpri_sec / (Lpri * Lsec))
print("Coupling factor is:", coupling_factor) 

ELECTROSTATICS

THERMAL

CURRENT FLOW

LUA scripting

start.1631902822.txt.gz · Last modified: 2021/09/17 20:20 by stanzurek