[CO] mat_void != Air in MagFEMM
Hello all,
We received a question on the mailing list regarding rotor hole with void material that are not "Air". I thought that it was already possible but it is not the case. Here are some hint to solve that: The simulation of the magnetic module for SynRM is done with a MagFEMM object. This object will automatically draw and define your machine within FEMM. To understand how you can take a look at https://github.com/Eomys/pyleecan/blob/master/pyleecan/Functions/FEMM/draw_FEMM.py. At line 165 we create all the materials with the function https://github.com/Eomys/pyleecan/blob/master/pyleecan/Functions/FEMM/create_FEMM_materials.py. This file needs to be updated to create the material within the rotor.hole[0].mat_void (for now it only creates the "Air" material). Then in draw_FEMM line 194 we assign the surfaces with the function https://github.com/Eomys/pyleecan/blob/master/pyleecan/Functions/FEMM/assign_FEMM_surface.py and here again we assume that Hole is only "Air" so we need to use the previously created material instead. To go further, we should be able to scan the machine to get all its materials and define them all in create_FEMM_materials.py from this list instead of the "surf_list". Such function should already exist for the DMatlib object.
Best regards, Pierre