Version: 6.3.1
Home
Functions

Modifying nodes and elements

Modifying meshes

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.

Function Documentation

def Make2DMeshFrom3D (   self) [inherited]

Creates 2D mesh as skin on boundary faces of a 3D mesh.

Returns:
TRUE if operation has been completed successfully, FALSE otherwise
def MakeBoundaryMesh (   self,
  elements,
  dimension = SMESH.BND_2DFROM3D,
  groupName = "",
  meshName = "",
  toCopyElements = False,
  toCopyExistingBondary = False 
) [inherited]

Creates missing boundary elements.

Parameters:
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
Returns:
tuple (mesh, group) where bondary elements were added to
def ChangeElemNodes (   self,
  ide,
  newIDs 
) [inherited]

Sets new nodes for the given element.

Parameters:
idethe element id
newIDsnodes ids
Returns:
If the number of nodes does not correspond to the type of element - returns false
def DoubleNode (   self,
  theNodeId,
  theModifiedElems 
) [inherited]

Creates a hole in a mesh by doubling the nodes of some particular elements This method provided for convenience works as DoubleNodes() described above.

Parameters:
theNodeIdidentifiers of node to be doubled
theModifiedElemsidentifiers of elements to be updated
Returns:
TRUE if operation has been completed successfully, FALSE otherwise
def DoubleNodeGroup (   self,
  theNodes,
  theModifiedElems,
  theMakeGroup = False 
) [inherited]

Creates a hole in a mesh by doubling the nodes of some particular elements This method provided for convenience works as DoubleNodes() described above.

Parameters:
theNodesgroup of nodes to be doubled
theModifiedElemsgroup of elements to be updated.
theMakeGroupforces the generation of a group containing new nodes.
Returns:
TRUE or a created group if operation has been completed successfully, FALSE or None otherwise
def DoubleNodeGroups (   self,
  theNodes,
  theModifiedElems,
  theMakeGroup = False 
) [inherited]

Creates a hole in a mesh by doubling the nodes of some particular elements This method provided for convenience works as DoubleNodes() described above.

Parameters:
theNodeslist of groups of nodes to be doubled
theModifiedElemslist of groups of elements to be updated.
Returns:
TRUE if operation has been completed successfully, FALSE otherwise
def DoubleNodeElem (   self,
  theElems,
  theNodesNot,
  theAffectedElems 
) [inherited]

Creates a hole in a mesh by doubling the nodes of some particular elements.

Parameters:
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.
Returns:
TRUE if operation has been completed successfully, FALSE otherwise
def DoubleNodeElemInRegion (   self,
  theElems,
  theNodesNot,
  theShape 
) [inherited]

Creates a hole in a mesh by doubling the nodes of some particular elements.

Parameters:
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.
Returns:
TRUE if operation has been completed successfully, FALSE otherwise
def DoubleNodeElemGroup (   self,
  theElems,
  theNodesNot,
  theAffectedElems,
  theMakeGroup = False 
) [inherited]

Creates a hole in a mesh by doubling the nodes of some particular elements This method provided for convenience works as DoubleNodes() described above.

Parameters:
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.
theMakeGroupforces the generation of a group containing new elements.
Returns:
TRUE or a created group if operation has been completed successfully, FALSE or None otherwise
def DoubleNodeElemGroupInRegion (   self,
  theElems,
  theNodesNot,
  theShape 
) [inherited]

Creates a hole in a mesh by doubling the nodes of some particular elements This method provided for convenience works as DoubleNodes() described above.

Parameters:
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.
def DoubleNodeElemGroups (   self,
  theElems,
  theNodesNot,
  theAffectedElems,
  theMakeGroup = False 
) [inherited]

Creates a hole in a mesh by doubling the nodes of some particular elements This method provided for convenience works as DoubleNodes() described above.

Parameters:
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.
theMakeGroupforces the generation of a group containing new elements.
Returns:
TRUE or a created group if operation has been completed successfully, FALSE or None otherwise
def DoubleNodeElemGroupsInRegion (   self,
  theElems,
  theNodesNot,
  theShape 
) [inherited]

Creates a hole in a mesh by doubling the nodes of some particular elements This method provided for convenience works as DoubleNodes() described above.

Parameters:
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.
Returns:
TRUE if operation has been completed successfully, FALSE otherwise
 All Data Structures Namespaces Files Functions Variables
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS