Version: 6.5.0
Home
 All Data Structures Namespaces Files Functions Variables Groups
Public Member Functions | Data Fields
Mesh_Algorithm Class Reference

The mother class to define algorithm, it is not recommended to use it directly. More...

Public Member Functions

def __init__
def FindHypothesis
 Finds a hypothesis in the study by its type name and parameters.
def FindAlgorithm
 Finds the algorithm in the study by its type name.
def GetSubMesh
 If the algorithm is global, returns 0;
else returns the submesh associated to this algorithm.
def GetAlgorithm
 Returns the wrapped mesher.
def GetCompatibleHypothesis
 Gets the list of hypothesis that can be used with this algorithm.
def GetName
 Gets the name of the algorithm.
def SetName
 Sets the name to the algorithm.
def GetId
 Gets the id of the algorithm.
def Create
 Private method.
def Assign
 Private method.
def CompareHyp
def CompareEqualHyp
def Hypothesis
 Private method.
def MainShapeEntry
 Returns entry of the shape to mesh in the study.
def ViscousLayers
 Defines "ViscousLayers" hypothesis to give parameters of layers of prisms to build near mesh boundary.
def ReversedEdgeIndices
 Transform a list of ether edges or tuples (edge 1st_vertex_of_edge) into a list acceptable to SetReversedEdges() of some 1D hypotheses.

Data Fields

 mesh
 geom
 subm
 algo

Detailed Description

The mother class to define algorithm, it is not recommended to use it directly.

For each meshing algorithm, a python class inheriting from class Mesh_Algorithm should be defined. This descendant class sould have two attributes defining the way it is created by class Mesh (see e.g. class StdMeshersDC_Segment in StdMeshersDC.py).

Constructor & Destructor Documentation

def __init__ (   self)

Member Function Documentation

def FindHypothesis (   self,
  hypname,
  args,
  CompareMethod,
  smeshpyD 
)

Finds a hypothesis in the study by its type name and parameters.

Finds only the hypotheses created in smeshpyD engine.

Returns
SMESH.SMESH_Hypothesis
def FindAlgorithm (   self,
  algoname,
  smeshpyD 
)

Finds the algorithm in the study by its type name.

Finds only the algorithms, which have been created in smeshpyD engine.

Returns
SMESH.SMESH_Algo
def GetSubMesh (   self)

If the algorithm is global, returns 0;
else returns the submesh associated to this algorithm.

References Mesh_Algorithm.subm.

def GetAlgorithm (   self)

Returns the wrapped mesher.

References Mesh_Algorithm.algo.

def GetCompatibleHypothesis (   self)

Gets the list of hypothesis that can be used with this algorithm.

References Mesh_Algorithm.algo.

def GetName (   self)

Gets the name of the algorithm.

References Mesh_Algorithm.algo.

def SetName (   self,
  name 
)

Sets the name to the algorithm.

References Mesh_Algorithm.algo.

def GetId (   self)

Gets the id of the algorithm.

def Create (   self,
  mesh,
  geom,
  hypo,
  so = "libStdMeshersEngine.so" 
)
def Assign (   self,
  algo,
  mesh,
  geom 
)
def CompareHyp (   self,
  hyp,
  args 
)
def CompareEqualHyp (   self,
  hyp,
  args 
)
def Hypothesis (   self,
  hyp,
  args = [],
  so = "libStdMeshersEngine.so",
  UseExisting = 0,
  CompareMethod = "" 
)
def MainShapeEntry (   self)

Returns entry of the shape to mesh in the study.

References Mesh.mesh, and Mesh_Algorithm.mesh.

Field Documentation

mesh
geom
subm
algo
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