FEMM-LUA-stepper-motor-model This is a simple lua script that creates a stepper motor model that can be run in FEMM4.2. The code is available here. In order to run it, download FEMM 4.2, open it, select New > Magnetics problem and then paste this code in LUA console.