Set specific element size for one part #633
Answered
by
BonneelP
Maschinenausleger
asked this question in
Q&A
-
|
Hi, everybody. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Answered by
BonneelP
Jul 10, 2023
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Maschinenausleger
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Hello,
Thank you for your interest in pyleecan. The mesh size of each part is computed in: pyleecan\Functions\FEMM\comp_FEMM_dict.py
When running a simulation, the full FEMM_dict is saved in out.mag.internal.FEMM_dict. So you can run a simulation with Nt_tot=1, get the generated FEMM_dict and check the content to find which key you need to set. I assume it will be something like FEMM_dict["mesh"]["Rotor-0"]["meshsize_magnet"] for instance.
On a side note you can also use simu.mag.Kmeshh_finess to change the mesh size for all the machine.
Best regards,
Pierre