Definition of the electrical machine

To run a MANATEE simulation, we first need to define an electrical machine and a simulation project. During this whole tutorial, we will use (mostly) the same machine and simulation file. In fact, each part of this tutorial will slightly modify these two files to highlight a MANATEE feature.

To create a new machine, you need to create a file (named machine_test_SPMSM_A.m for instance) inside the MachineData folder. Instead of creating an empty script, you can copy the "default_machine.m" script which contain every single machine variable (with comments to explain its use). You can also use the GUI by clicking on "New machine" on the main page.

You don’t need to set all the variables in the machine file (since some are advanced parameters or not used in all the cases). To define our machine, we will only set the most useful parameters.

Note that all MANATEE inputs are expressed in the International Unit System (m, kg, etc).

Global Parameters

The surface permanent magnet synchronous machine (SPMSM) is selected with Input.Magnetics.type_machine = 6 and the number of pole pairs is fixed to Input.Magnetics.p = 2
The airgap width is here fixed at 3.35 mm with Input.Geometry.gap = 0.9e-3+2.45e-3. Note that the airgap is the distance between the rotor and the stator bore radii (so the magnet is ignored for this definition). In this example Hmag = 2.45 mm and the distance from the magnet top to the stator is 0.9 mm.

Next