Functions | |
def | Make2DMeshFrom3D |
Creates 2D mesh as skin on boundary faces of a 3D mesh. | |
def | MakeBoundaryMesh |
Creates missing boundary elements. | |
def | ChangeElemNodes |
Sets new nodes for the given element. | |
def | DoubleNode |
Creates a hole in a mesh by doubling the nodes of some particular elements This method provided for convenience works as DoubleNodes() described above. | |
def | DoubleNodeGroup |
Creates a hole in a mesh by doubling the nodes of some particular elements This method provided for convenience works as DoubleNodes() described above. | |
def | DoubleNodeGroups |
Creates a hole in a mesh by doubling the nodes of some particular elements This method provided for convenience works as DoubleNodes() described above. | |
def | DoubleNodeElem |
Creates a hole in a mesh by doubling the nodes of some particular elements. | |
def | DoubleNodeElemInRegion |
Creates a hole in a mesh by doubling the nodes of some particular elements. | |
def | DoubleNodeElemGroup |
Creates a hole in a mesh by doubling the nodes of some particular elements This method provided for convenience works as DoubleNodes() described above. | |
def | DoubleNodeElemGroupInRegion |
Creates a hole in a mesh by doubling the nodes of some particular elements This method provided for convenience works as DoubleNodes() described above. | |
def | DoubleNodeElemGroups |
Creates a hole in a mesh by doubling the nodes of some particular elements This method provided for convenience works as DoubleNodes() described above. | |
def | DoubleNodeElemGroupsInRegion |
Creates a hole in a mesh by doubling the nodes of some particular elements This method provided for convenience works as DoubleNodes() described above. |
def Make2DMeshFrom3D | ( | self | ) |
Creates 2D mesh as skin on boundary faces of a 3D mesh.
References Mesh.editor, and Mesh.MakeBoundaryMesh().
def MakeBoundaryMesh | ( | self, | |
elements, | |||
dimension = SMESH.BND_2DFROM3D , |
|||
groupName = "" , |
|||
meshName = "" , |
|||
toCopyElements = False , |
|||
toCopyExistingBondary = False |
|||
) |
Creates missing boundary elements.
elements | - elements whose boundary is to be checked: mesh, group, sub-mesh or list of elements if elements is mesh, it must be the mesh whose MakeBoundaryMesh() is called |
dimension | - defines type of boundary elements to create: SMESH.BND_2DFROM3D, SMESH.BND_1DFROM3D, SMESH.BND_1DFROM2D SMESH.BND_1DFROM3D creates mesh edges on all borders of free facets of 3D cells |
groupName | - a name of group to store created boundary elements in, "" means not to create the group |
meshName | - a name of new mesh to store created boundary elements in, "" means not to create the new mesh |
toCopyElements | - if true, the checked elements will be copied into the new mesh else only boundary elements will be copied into the new mesh |
toCopyExistingBondary | - if true, not only new but also pre-existing boundary elements will be copied into the new mesh |
References Mesh.GetElementType(), and Mesh.MakeBoundaryElements().
def ChangeElemNodes | ( | self, | |
ide, | |||
newIDs | |||
) |
Sets new nodes for the given element.
ide | the element id |
newIDs | nodes ids |
def DoubleNode | ( | self, | |
theNodeId, | |||
theModifiedElems | |||
) |
Creates a hole in a mesh by doubling the nodes of some particular elements This method provided for convenience works as DoubleNodes() described above.
theNodeId | identifiers of node to be doubled |
theModifiedElems | identifiers of elements to be updated |
def DoubleNodeGroup | ( | self, | |
theNodes, | |||
theModifiedElems, | |||
theMakeGroup = False |
|||
) |
Creates a hole in a mesh by doubling the nodes of some particular elements This method provided for convenience works as DoubleNodes() described above.
theNodes | group of nodes to be doubled |
theModifiedElems | group of elements to be updated. |
theMakeGroup | forces the generation of a group containing new nodes. |
def DoubleNodeGroups | ( | self, | |
theNodes, | |||
theModifiedElems, | |||
theMakeGroup = False |
|||
) |
Creates a hole in a mesh by doubling the nodes of some particular elements This method provided for convenience works as DoubleNodes() described above.
theNodes | list of groups of nodes to be doubled |
theModifiedElems | list of groups of elements to be updated. |
theMakeGroup | forces the generation of a group containing new nodes. |
def DoubleNodeElem | ( | self, | |
theElems, | |||
theNodesNot, | |||
theAffectedElems | |||
) |
Creates a hole in a mesh by doubling the nodes of some particular elements.
theElems | - the list of elements (edges or faces) to be replicated The nodes for duplication could be found from these elements |
theNodesNot | - list of nodes to NOT replicate |
theAffectedElems | - the list of elements (cells and edges) to which the replicated nodes should be associated to. |
def DoubleNodeElemInRegion | ( | self, | |
theElems, | |||
theNodesNot, | |||
theShape | |||
) |
Creates a hole in a mesh by doubling the nodes of some particular elements.
theElems | - the list of elements (edges or faces) to be replicated The nodes for duplication could be found from these elements |
theNodesNot | - list of nodes to NOT replicate |
theShape | - shape to detect affected elements (element which geometric center located on or inside shape). The replicated nodes should be associated to affected elements. |
References Mesh.DoubleNodeElemGroup().
def DoubleNodeElemGroup | ( | self, | |
theElems, | |||
theNodesNot, | |||
theAffectedElems, | |||
theMakeGroup = False , |
|||
theMakeNodeGroup = False |
|||
) |
Creates a hole in a mesh by doubling the nodes of some particular elements This method provided for convenience works as DoubleNodes() described above.
theElems | - group of of elements (edges or faces) to be replicated |
theNodesNot | - group of nodes not to replicated |
theAffectedElems | - group of elements to which the replicated nodes should be associated to. |
theMakeGroup | forces the generation of a group containing new elements. |
theMakeNodeGroup | forces the generation of a group containing new nodes. |
def DoubleNodeElemGroupInRegion | ( | self, | |
theElems, | |||
theNodesNot, | |||
theShape | |||
) |
Creates a hole in a mesh by doubling the nodes of some particular elements This method provided for convenience works as DoubleNodes() described above.
theElems | - group of of elements (edges or faces) to be replicated |
theNodesNot | - group of nodes not to replicated |
theShape | - shape to detect affected elements (element which geometric center located on or inside shape). The replicated nodes should be associated to affected elements. |
References Mesh.DoubleNodeElemGroups().
def DoubleNodeElemGroups | ( | self, | |
theElems, | |||
theNodesNot, | |||
theAffectedElems, | |||
theMakeGroup = False , |
|||
theMakeNodeGroup = False |
|||
) |
Creates a hole in a mesh by doubling the nodes of some particular elements This method provided for convenience works as DoubleNodes() described above.
theElems | - list of groups of elements (edges or faces) to be replicated |
theNodesNot | - list of groups of nodes not to replicated |
theAffectedElems | - group of elements to which the replicated nodes should be associated to. |
theMakeGroup | forces the generation of a group containing new elements. |
theMakeNodeGroup | forces the generation of a group containing new nodes. |
def DoubleNodeElemGroupsInRegion | ( | self, | |
theElems, | |||
theNodesNot, | |||
theShape | |||
) |
Creates a hole in a mesh by doubling the nodes of some particular elements This method provided for convenience works as DoubleNodes() described above.
theElems | - list of groups of elements (edges or faces) to be replicated |
theNodesNot | - list of groups of nodes not to replicated |
theShape | - shape to detect affected elements (element which geometric center located on or inside shape). The replicated nodes should be associated to affected elements. |