SALOME documentation central

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.

Function Documentation

def AddNode (   self,
  x,
  y,
  z 
) [inherited]

Add a node to the mesh by coordinates.

Returns:
Id of the new node
def Add0DElement (   self,
  IDOfNode 
) [inherited]

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

Parameters:
IDOfNode the ID of node for creation of the element.
Returns:
the Id of the new 0D element
def AddEdge (   self,
  IDsOfNodes 
) [inherited]

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

Parameters:
IDsOfNodes the 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.salome-platform.org/salome2/web_med_internet/logiciels/medV2.2.2_doc_html/html/modele_de_donnees.html#3.
Returns:
the Id of the new edge
def AddFace (   self,
  IDsOfNodes 
) [inherited]

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

Parameters:
IDsOfNodes the 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.salome-platform.org/salome2/web_med_internet/logiciels/medV2.2.2_doc_html/html/modele_de_donnees.html#3.
Returns:
the Id of the new face
def AddPolygonalFace (   self,
  IdsOfNodes 
) [inherited]

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

Parameters:
IdsOfNodes the list of node IDs for creation of the element.
Returns:
the Id of the new face
def AddVolume (   self,
  IDsOfNodes 
) [inherited]

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

Parameters:
IDsOfNodes the 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.salome-platform.org/salome2/web_med_internet/logiciels/medV2.2.2_doc_html/html/modele_de_donnees.html#3.
Returns:
the Id of the new volumic element
def AddPolyhedralVolume (   self,
  IdsOfNodes,
  Quantities 
) [inherited]

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

Parameters:
IdsOfNodes the list of node IDs for volume creation face by face.
Quantities the 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 
) [inherited]

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

Parameters:
IdsOfFaces the 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 
) [inherited]

Binds a node to a vertex.

Parameters:
NodeID a node ID
Vertex a vertex or vertex ID
Returns:
True if succeed else raises an exception
def SetNodeOnEdge (   self,
  NodeID,
  Edge,
  paramOnEdge 
) [inherited]

Stores the node position on an edge.

Parameters:
NodeID a node ID
Edge an edge or edge ID
paramOnEdge a parameter on the edge where the node is located
Returns:
True if succeed else raises an exception
def SetNodeOnFace (   self,
  NodeID,
  Face,
  u,
  v 
) [inherited]

Stores node position on a face.

Parameters:
NodeID a node ID
Face a face or face ID
u U parameter on the face where the node is located
v V parameter on the face where the node is located
Returns:
True if succeed else raises an exception
def SetNodeInVolume (   self,
  NodeID,
  Solid 
) [inherited]

Binds a node to a solid.

Parameters:
NodeID a node ID
Solid a solid or solid ID
Returns:
True if succeed else raises an exception
def SetMeshElementOnShape (   self,
  ElementID,
  Shape 
) [inherited]

Bind an element to a shape.

Parameters:
ElementID an element ID
Shape a shape or shape ID
Returns:
True if succeed else raises an exception
 All Data Structures Namespaces Files Functions Variables

Copyright © 2007-2008 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