Version: 6.3.1
Home
Public Member Functions | Data Fields | Static Public Attributes | Static Private Attributes

Mesh_Triangle Class Reference

Defines a triangle 2D algorithm. More...

Public Member Functions

def __init__
 Private constructor.
def MaxElementArea
 Defines "MaxElementArea" hypothesis basing on the definition of the maximum area of each triangle.
def CompareMaxElementArea
 Checks if the given "MaxElementArea" hypothesis has the same parameters as the given arguments.
def LengthFromEdges
 Defines "LengthFromEdges" hypothesis to build triangles based on the length of the edges taken from the wire.
def SetPhysicalMesh
 Sets a way to define size of mesh elements to generate.
def SetPhySize
 Sets size of mesh elements to generate.
def SetPhyMin
 Sets lower boundary of mesh element size (PhySize).
def SetPhyMax
 Sets upper boundary of mesh element size (PhySize).
def SetGeometricMesh
 Sets a way to define maximum angular deflection of mesh from CAD model.
def SetAngleMeshS
 Sets angular deflection (in degrees) of a mesh face from CAD surface.
def SetAngleMeshC
 Sets angular deflection (in degrees) of a mesh edge from CAD curve.
def SetGeoMin
 Sets lower boundary of mesh element size computed to respect angular deflection.
def SetGeoMax
 Sets upper boundary of mesh element size computed to respect angular deflection.
def SetGradation
 Sets maximal allowed ratio between the lengths of two adjacent edges.
def SetTopology
 Sets topology usage way.
def SetDecimesh
 To respect geometrical edges or not.
def SetVerbosity
 Sets verbosity level in the range 0 to 100.
def SetOptionValue
 Sets advanced option value.
def SetAttractorGeom
 Sets an attractor on the chosen face.
def UnsetAttractorGeom
 Unsets an attractor on the chosen face.
def SetQuadAllowed
 Sets QuadAllowed flag.
def Parameters
 Defines hypothesis having several parameters.
def SetMaxSize
 Sets MaxSize.
def SetSecondOrder
 Sets SecondOrder flag.
def SetOptimize
 Sets Optimize flag.
def SetFineness
 Sets Fineness.
def SetGrowthRate
 Sets GrowthRate.
def SetNbSegPerEdge
 Sets NbSegPerEdge.
def SetNbSegPerRadius
 Sets NbSegPerRadius.
def SetNumberOfSegments
 Sets number of segments overriding value set by SetLocalLength()
def SetLocalLength
 Sets number of segments overriding value set by SetNumberOfSegments()
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.

Data Fields

 algoType
 params
 mesh
 geom
 subm
 algo

Static Public Attributes

int algoType = 0
int params = 0

Static Private Attributes

int _angleMeshS = 8
float _gradation = 1.1

Detailed Description

Defines a triangle 2D algorithm.


Constructor & Destructor Documentation

def __init__ (   self,
  mesh,
  algoType,
  geom = 0 
)

Private constructor.


Member Function Documentation

def CompareMaxElementArea (   self,
  hyp,
  args 
)

Checks if the given "MaxElementArea" hypothesis has the same parameters as the given arguments.

def FindHypothesis (   self,
  hypname,
  args,
  CompareMethod,
  smeshpyD 
) [inherited]

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 
) [inherited]

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) [inherited]

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

def GetAlgorithm (   self) [inherited]

Returns the wrapped mesher.

def GetCompatibleHypothesis (   self) [inherited]

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

def GetName (   self) [inherited]

Gets the name of the algorithm.

def SetName (   self,
  name 
) [inherited]

Sets the name to the algorithm.

def GetId (   self) [inherited]

Gets the id of the algorithm.

def Create (   self,
  mesh,
  geom,
  hypo,
  so = "libStdMeshersEngine.so" 
) [inherited]

Private method.

def Assign (   self,
  algo,
  mesh,
  geom 
) [inherited]

Private method.

def CompareHyp (   self,
  hyp,
  args 
) [inherited]
def CompareEqualHyp (   self,
  hyp,
  args 
) [inherited]
def Hypothesis (   self,
  hyp,
  args = [],
  so = "libStdMeshersEngine.so",
  UseExisting = 0,
  CompareMethod = "" 
) [inherited]

Private method.

def MainShapeEntry (   self) [inherited]

Returns entry of the shape to mesh in the study.


Field Documentation

int algoType = 0 [static]
int params = 0 [static]
int _angleMeshS = 8 [static, private]
float _gradation = 1.1 [static, private]
mesh [inherited]
geom [inherited]

Reimplemented in Mesh_Segment.

subm [inherited]
algo [inherited]
 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