add_element (method)

add_element(self, node_tags, elem_type, group=-1)[source]

Add a new element defined by a vector of node tags

Parameters:
  • self (Mesh) – an Mesh object
  • node_tags (array) – an array of node tags
Returns:

new_tag – Tag of the created element. None if the element already exist

Return type:

int