As magnets are part of the machine, to define them you need to edit your machine file.
The type of buried magnet can be set using
Input.Geometry.type_shape_magnet = 10; % magnet shape type (PM only)
% 10: single magnet with rectangular shape (cf. schematics)
% 20: V-shaped double magnet without flux concentration (constant lamination radius)
% 21: V-shaped double magnet with flux concentration (radius defined by Rtopm)
% 22: V-shaped double magnet + single magnet
The slots in which interior magnets are inserted are defined by specific slot types:
- V-shape buried magnets are inserted in Slot Type 50