mymesh.dmesh#
- class mymesh.dmesh(raw_NodeCoords, raw_NodeConn, ElemConn, ElemLabels=None)[source]#
Bases:
StructRefProxyA specialized mesh class intended for dynamic modification of mesh connectivity.
The dmesh (Dynamic Mesh) class only supports single element type meshes, and only element types that contain a single face type (e.g. wedge elements aren’t supported because they have both quadrilateral and triangular faces).
It’s recommended that a
dmeshobject is created from ameshobject usingmesh.mesh2dmesh(). Incorrect initialization of the mesh will likely lead to misbehavior.See also: Dynamic mesh
- Parameters:
NodeCoords (np.ndarray(dtype=np.float64)) – Node coordinates array with shape=(n,3)
NodeConn (np.ndarray) – Node connectivity of elements with shape=(l,m)
Properties#
Methods#
dmesh.addElem(NodeConn[, Label])
dmesh.addElemConn(NodeId, ElemId)
dmesh.addNodes(NodeCoords)
dmesh.getElemConn(NodeId)
dmesh.removeElem(ElemId)
dmesh.removeElemConn(NodeId, ElemId)
dmesh.removeElems(ElemIds)
dmesh.swapNode(NodeId1, NodeId2)