The 2D magnetostatic task is solved in an ANSYS 10.0. Then the 2D magnetic field is exported to text files as parts and mapped to MATLAB. At the first you should run the RUN15A.MAC macro, ARG1 is the angle between rotor and stator. RUN15B exports nodes and elements. There is nodes offset implemented there to fit interpolation of discontinuous magnetic field. Imperfection of 2D field is ensured, there is Ez in winding. MATLAB MaxwellDriverMichal2D.m solves electric magnetic fields explosion. Michal Martinù cmelak9875@centrum.cz