Version: 6.5.0
Home
 All Data Structures Namespaces Files Functions Variables Groups
Functions
Adding nodes and elements
Modifying meshes

Functions

def AddNode
 Add a node to the mesh by coordinates.
def Add0DElement
 Creates a 0D element on a node with given number.
def AddEdge
 Creates a linear or quadratic edge (this is determined by the number of given nodes).
def AddFace
 Creates a linear or quadratic face (this is determined by the number of given nodes).
def AddPolygonalFace
 Adds a polygonal face to the mesh by the list of node IDs.
def AddVolume
 Creates both simple and quadratic volume (this is determined by the number of given nodes).
def AddPolyhedralVolume
 Creates a volume of many faces, giving nodes for each face.
def AddPolyhedralVolumeByFaces
 Creates a volume of many faces, giving the IDs of the existing faces.
def SetNodeOnVertex
 Binds a node to a vertex.
def SetNodeOnEdge
 Stores the node position on an edge.
def SetNodeOnFace
 Stores node position on a face.
def SetNodeInVolume
 Binds a node to a solid.
def SetMeshElementOnShape
 Bind an element to a shape.

Detailed Description

Function Documentation

def AddNode (   self,
  x,
  y,
  z 
)

Add a node to the mesh by coordinates.

Returns
Id of the new node

References smesh.ParseParameters().

def Add0DElement (   self,
  IDOfNode 
)

Creates a 0D element on a node with given number.

Parameters
IDOfNodethe ID of node for creation of the element.
Returns
the Id of the new 0D element
def AddEdge (   self,
  IDsOfNodes 
)

Creates a linear or quadratic edge (this is determined by the number of given nodes).

Parameters
IDsOfNodesthe list of node IDs for creation of the element. The order of nodes in this list should correspond to the description of MED.
This description is located by the following link: http://www.code-aster.org/outils/med/html/modele_de_donnees.html#3.
Returns
the Id of the new edge
def AddFace (   self,
  IDsOfNodes 
)

Creates a linear or quadratic face (this is determined by the number of given nodes).

Parameters
IDsOfNodesthe list of node IDs for creation of the element. The order of nodes in this list should correspond to the description of MED.
This description is located by the following link: http://www.code-aster.org/outils/med/html/modele_de_donnees.html#3.
Returns
the Id of the new face
def AddPolygonalFace (   self,
  IdsOfNodes 
)

Adds a polygonal face to the mesh by the list of node IDs.

Parameters
IdsOfNodesthe list of node IDs for creation of the element.
Returns
the Id of the new face
def AddVolume (   self,
  IDsOfNodes 
)

Creates both simple and quadratic volume (this is determined by the number of given nodes).

Parameters
IDsOfNodesthe list of node IDs for creation of the element. The order of nodes in this list should correspond to the description of MED.
This description is located by the following link: http://www.code-aster.org/outils/med/html/modele_de_donnees.html#3.
Returns
the Id of the new volumic element
def AddPolyhedralVolume (   self,
  IdsOfNodes,
  Quantities 
)

Creates a volume of many faces, giving nodes for each face.

Parameters
IdsOfNodesthe list of node IDs for volume creation face by face.
Quantitiesthe list of integer values, Quantities[i] gives the quantity of nodes in face number i.
Returns
the Id of the new volumic element
def AddPolyhedralVolumeByFaces (   self,
  IdsOfFaces 
)

Creates a volume of many faces, giving the IDs of the existing faces.

Parameters
IdsOfFacesthe list of face IDs for volume creation.

Note: The created volume will refer only to the nodes of the given faces, not to the faces themselves.

Returns
the Id of the new volumic element
def SetNodeOnVertex (   self,
  NodeID,
  Vertex 
)

Binds a node to a vertex.

Parameters
NodeIDa node ID
Vertexa vertex or vertex ID
Returns
True if succeed else raises an exception
def SetNodeOnEdge (   self,
  NodeID,
  Edge,
  paramOnEdge 
)

Stores the node position on an edge.

Parameters
NodeIDa node ID
Edgean edge or edge ID
paramOnEdgea parameter on the edge where the node is located
Returns
True if succeed else raises an exception
def SetNodeOnFace (   self,
  NodeID,
  Face,
  u,
  v 
)

Stores node position on a face.

Parameters
NodeIDa node ID
Facea face or face ID
uU parameter on the face where the node is located
vV parameter on the face where the node is located
Returns
True if succeed else raises an exception
def SetNodeInVolume (   self,
  NodeID,
  Solid 
)

Binds a node to a solid.

Parameters
NodeIDa node ID
Solida solid or solid ID
Returns
True if succeed else raises an exception
def SetMeshElementOnShape (   self,
  ElementID,
  Shape 
)

Bind an element to a shape.

Parameters
ElementIDan element ID
Shapea shape or shape ID
Returns
True if succeed else raises an exception
Copyright © 2007-2012 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