pyleecan.Functions.GMSH.draw_GMSH module¶
- draw_GMSH(output, sym, boundary_prop, is_lam_only_S=False, is_lam_only_R=False, user_mesh_dict={}, path_save='GMSH_model.msh', is_sliding_band=True, is_airbox=False, is_set_labels=False, is_run=False)[source]¶
Draws a machine mesh in GMSH format
- Parameters:
output (Output) – Output object
sym (int) – the symmetry applied on the stator and the rotor (take into account antiperiodicity)
boundary_prop (dict) – dictionary to match FEA boundary conditions (dict values) with line boundary property (dict keys)
is_lam_only_S (bool) – Draw only stator lamination
is_lam_only_R (bool) – Draw only rotor lamination
user_mesh_dict (dict) – Dictionary to enforce the mesh size on some surface/lines (key: surface label, value dict:key=line id, value:nb element)
path_save (str) – Path to save the result msh file
is_sliding_band (bool) – True uses sliding band, else airgap (Not implemented yet)
is_airbox (bool) – True to add the airbox
is_set_label (bool) – True to set all line labels as physical groups
is_run (bool) – True to launch Gmsh GUI at the end
- Returns:
GMSH_dict – dictionary containing the main parameters of GMSH File
- Return type:
dict