FEMAG is an interactive program for Linux and MS Windows for calculating 2-dimensional and rotationally symmetric magnetic fields and eddy-current fields.

Schartenfelsstrasse 1b
CH - 5430 Wettingen (AG)

FEMAG Scripting Language FSL

FSL is a scripting language for the automation of the creation and analysis of finite-element models and for the extension of FEMAG by the user.


(FEMAG from 7.9.144)

FEMAG Modeling Language FML

The FEMAG Modeling Language (FML) extends the FSL scripting language with geometric modeling commands.


FEMAG 8.2: Version 0.31, FEMAG 8.2.2: Version 0.32, FEMAG 8.3: Version 0.33


Christian Deeg, Siemens AG, PD LD P R&D 2 1 3 (24.08.2017)

femagtools Python API

Femagtools is an Open-Source Python-API for FEMAG offering following features:

  • run Femag with a FSL/FML file anywhere: locally (single and multi-core), remote (ZMQ), HT Condor, Cloud (Amazon AWS, Google Cloud)

  • read BCH/BATCH, I7/ISA7, PLT, ERG files

  • read and write MCV files (magnetizing curves)

  • create FSL files from model and calculation templates and/or user specific FSL or from DXF

  • create a variety of plots

  • calculate machine characteristics by using analytic machine models

  • execute parameter studies and multi-objective optimization

The package is hosted on github: <https://github.com/SEMAFORInformatik/femagtools/>`. Contributions are highly welcome.

This document is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. There is also no warranty for the program itself. The entire risk as to the quality and performance of the program is with you. Should the program prove defective, your assume the cost of all necessary servicing, repair or correction.