add_cell (method)

add_cell(self, pt_indice, cell_type, group_name=None)[source]

Add a new cell defined by a point indices

Parameters
  • self (MeshMat) – an Mesh object

  • pt_indice (ndarray) – a ndarray of points indices

  • group_name (str) – name of the group

Returns

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

Return type

int