mymesh.mesh.mesh.addElems#

mesh.addElems(NodeConn, ElemSet=None, reset=True)[source]#

Add new elements to the mesh. These elements will be appended to the end of the list of elements (mesh.NodeConn) and should reference nodes that already exist in the mesh. Note that properties that are calculated on demand are not updated by this operation - it’s safest to use the reset=True option or use mesh.reset() after this operation

Parameters:
  • NodeConn (array_like) – Node connectivities of the new element(s). This can either be a single element (shape=(1,m)) or multiple elements (shape=(n,m) or list of lists with length n for mixed element type elements). If a single element, it must be a 2D array or list of a single list (i.e. [[a,b,c]]).

  • ElemSet (str, optional) – If provided, name of a element set that the new elements will be added to in mesh.ElemSets[<ElemSet>], by default None.

  • reset (bool) – If True, will reset all cached mesh properties (e.g. Faces, ElemNeighbors)