MeshMat (class)

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

class MeshMat(element=None, node=None, group=None, nb_elem=None, nb_node=None, submesh=[], nb_node_per_element=None, name=None, init_dict=None)[source]

Bases: pyleecan.Classes.Mesh.Mesh

Gather the parameters of a mesh under matricial format containing one type of element.

VERSION = 1
get_submesh(group)

Define a submesh of a MeshMat object

Parameters:
  • self (MeshMat) – a MeshMat object
  • group (int) –

    id of the targeted group

    Returns

  • -------
  • submesh (Submesh) – a Submesh object
get_group(name_submesh)

Define a mesh object as submesh of parent mesh object

Parameters:
  • self (MeshFEMM) – a MeshFEMM object
  • group (int) –

    id of the targeted group

    Returns

  • -------
  • submesh (Submesh) – a Submesh object
get_node(elem)

Return the nodes coordinates in the element elem

Parameters:self (MeshMat) – an MeshMat object
Returns:nodes – Selected nodes coordinates
Return type:ndarray
get_element
get_node2element
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__)

element

Matrix of connectivity for one element type

node

Containing nodes coordinates

group

Attribute a number to each subpart of the machine

nb_elem

Total number of elements

nb_node

Total number of nodes

submesh

List of submesh

nb_node_per_element

Define the number of node per element