SubMesh (class)

Warning : this file has been generated, you shouldn’t edit it

class SubMesh(mesh=None, parent_elem=None, parent_node=None, group_number=None, init_dict=None)[source]

Bases: pyleecan.Classes.frozen.FrozenClass

Define a submesh

VERSION = 1
get_node_coord
get_element
set_submesh(parent_mesh)

Define a MeshMat object corresponding to the submesh

Parameters:
  • self (SubMesh) – a SubMesh object
  • parent_mesh (MeshMat) – a MeshMat object which contains the submesh
save(save_path='')

Save the object to the save_path

Parameters:
  • self – A pyleecan object
  • save_path (str) – path to the folder to save the object
as_dict()[source]

Convert this objet in a json seriable dict (can be use in __init__)

mesh

A self-standing mesh object

parent_elem

List of corresponding element number in the parent mesh

parent_node

List of corresponding node number in the parent mesh

group_number

Group number defining this submesh. If several groups are indicated, the submesh corresponds to the intersection. Use (nbr,-1) to select the intersection of group “nbr” with all other groups.