SALOME documentation central

Basic meshing algorithms
[Defining Algorithms]

Data Structures

class  Mesh_Segment
 Class to define a segment 1D algorithm for discretization. More...
class  Mesh_CompositeSegment
 Defines a segment 1D algorithm for discretization. More...
class  Mesh_Segment_Python
 Defines a segment 1D algorithm for discretization with python function. More...
class  Mesh_Triangle
 Defines a triangle 2D algorithm. More...
class  Mesh_Quadrangle
 Defines a quadrangle 2D algorithm. More...
class  Mesh_Tetrahedron
 Defines a tetrahedron 3D algorithm. More...
class  Mesh_Hexahedron
 Defines a hexahedron 3D algorithm. More...
class  Mesh_Netgen
 Defines a NETGEN-based 2D or 3D algorithm that needs no discrete boundary (i.e. More...

Functions

def Segment
 Creates a segment discretization 1D algorithm.
def UseExistingSegments
 Enables creation of nodes and segments usable by 2D algoritms.
def UseExistingFaces
 Enables creation of nodes and faces usable by 3D algoritms.
def Triangle
 Creates a triangle 2D algorithm for faces.
def Quadrangle
 Creates a quadrangle 2D algorithm for faces.
def Tetrahedron
 Creates a tetrahedron 3D algorithm for solids.
def Hexahedron
 Creates a hexahedron 3D algorithm for solids.
def Netgen
 Deprecated, used only for compatibility!
def AutomaticTetrahedralization
 Computes a tetrahedral mesh using AutomaticLength + MEFISTO + NETGEN.
def AutomaticHexahedralization
 Computes an hexahedral mesh using AutomaticLength + Quadrangle + Hexahedron.

Function Documentation

def Segment (   self,
  algo = REGULAR,
  geom = 0 
) [inherited]

Creates a segment discretization 1D algorithm.

If the optional algo parameter is not set, this algorithm is REGULAR.
If the optional geom parameter is not set, this algorithm is global. Otherwise, this algorithm defines a submesh based on geom subshape.

Parameters:
algo the type of the required algorithm. Possible values are:

  • smesh.REGULAR,
  • smesh.PYTHON for discretization via a python function,
  • smesh.COMPOSITE for meshing a set of edges on one face side as a whole.
geom If defined is the subshape to be meshed
Returns:
an instance of Mesh_Segment or Mesh_Segment_Python, or Mesh_CompositeSegment class
def UseExistingSegments (   self,
  geom = 0 
) [inherited]

Enables creation of nodes and segments usable by 2D algoritms.

The added nodes and segments must be bound to edges and vertices by SetNodeOnVertex(), SetNodeOnEdge() and SetMeshElementOnShape() If the optional geom parameter is not set, this algorithm is global.
Otherwise, this algorithm defines a submesh based on geom subshape.

Parameters:
geom the subshape to be manually meshed
Returns:
StdMeshers_UseExisting_1D algorithm that generates nothing
def UseExistingFaces (   self,
  geom = 0 
) [inherited]

Enables creation of nodes and faces usable by 3D algoritms.

The added nodes and faces must be bound to geom faces by SetNodeOnFace() and SetMeshElementOnShape() If the optional geom parameter is not set, this algorithm is global.
Otherwise, this algorithm defines a submesh based on geom subshape.

Parameters:
geom the subshape to be manually meshed
Returns:
StdMeshers_UseExisting_2D algorithm that generates nothing
def Triangle (   self,
  algo = MEFISTO,
  geom = 0 
) [inherited]

Creates a triangle 2D algorithm for faces.

If the optional geom parameter is not set, this algorithm is global.
Otherwise, this algorithm defines a submesh based on geom subshape.

Parameters:
algo values are: smesh.MEFISTO || smesh.NETGEN_1D2D || smesh.NETGEN_2D || smesh.BLSURF
geom If defined, the subshape to be meshed (GEOM_Object)
Returns:
an instance of Mesh_Triangle algorithm
def Quadrangle (   self,
  geom = 0 
) [inherited]

Creates a quadrangle 2D algorithm for faces.

If the optional geom parameter is not set, this algorithm is global.
Otherwise, this algorithm defines a submesh based on geom subshape.

Parameters:
geom If defined, the subshape to be meshed (GEOM_Object)
Returns:
an instance of Mesh_Quadrangle algorithm
def Tetrahedron (   self,
  algo = NETGEN,
  geom = 0 
) [inherited]

Creates a tetrahedron 3D algorithm for solids.

The parameter algo permits to choose the algorithm: NETGEN or GHS3D If the optional geom parameter is not set, this algorithm is global.
Otherwise, this algorithm defines a submesh based on geom subshape.

Parameters:
algo values are: smesh.NETGEN, smesh.GHS3D, smesh.GHS3DPRL, smesh.FULL_NETGEN
geom If defined, the subshape to be meshed (GEOM_Object)
Returns:
an instance of Mesh_Tetrahedron algorithm
def Hexahedron (   self,
  algo = Hexa,
  geom = 0 
) [inherited]

Creates a hexahedron 3D algorithm for solids.

If the optional geom parameter is not set, this algorithm is global.
Otherwise, this algorithm defines a submesh based on geom subshape.

Parameters:
algo possible values are: smesh.Hexa, smesh.Hexotic
geom If defined, the subshape to be meshed (GEOM_Object)
Returns:
an instance of Mesh_Hexahedron algorithm
def Netgen (   self,
  is3D,
  geom = 0 
) [inherited]

Deprecated, used only for compatibility!

Returns:
an instance of Mesh_Netgen algorithm
def AutomaticTetrahedralization (   self,
  fineness = 0 
) [inherited]

Computes a tetrahedral mesh using AutomaticLength + MEFISTO + NETGEN.

Parameters:
fineness [0,-1] defines mesh fineness
Returns:
True or False
def AutomaticHexahedralization (   self,
  fineness = 0 
) [inherited]

Computes an hexahedral mesh using AutomaticLength + Quadrangle + Hexahedron.

Parameters:
fineness [0,-1] defines mesh fineness
Returns:
True or False
 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