Version: 6.3.1
Functions

BLSURF Parameters hypothesis

Defining hypotheses
Collaboration diagram for BLSURF Parameters hypothesis:

Functions

def smeshDC::Mesh_Triangle.SetPhysicalMesh
 Sets a way to define size of mesh elements to generate.
def smeshDC::Mesh_Triangle.SetPhySize
 Sets size of mesh elements to generate.
def smeshDC::Mesh_Triangle.SetPhyMin
 Sets lower boundary of mesh element size (PhySize).
def smeshDC::Mesh_Triangle.SetPhyMax
 Sets upper boundary of mesh element size (PhySize).
def smeshDC::Mesh_Triangle.SetGeometricMesh
 Sets a way to define maximum angular deflection of mesh from CAD model.
def smeshDC::Mesh_Triangle.SetAngleMeshS
 Sets angular deflection (in degrees) of a mesh face from CAD surface.
def smeshDC::Mesh_Triangle.SetAngleMeshC
 Sets angular deflection (in degrees) of a mesh edge from CAD curve.
def smeshDC::Mesh_Triangle.SetGeoMin
 Sets lower boundary of mesh element size computed to respect angular deflection.
def smeshDC::Mesh_Triangle.SetGeoMax
 Sets upper boundary of mesh element size computed to respect angular deflection.
def smeshDC::Mesh_Triangle.SetGradation
 Sets maximal allowed ratio between the lengths of two adjacent edges.
def smeshDC::Mesh_Triangle.SetTopology
 Sets topology usage way.
def smeshDC::Mesh_Triangle.SetDecimesh
 To respect geometrical edges or not.
def smeshDC::Mesh_Triangle.SetVerbosity
 Sets verbosity level in the range 0 to 100.
def smeshDC::Mesh_Triangle.SetOptionValue
 Sets advanced option value.
def smeshDC::Mesh_Triangle.SetAttractorGeom
 Sets an attractor on the chosen face.
def smeshDC::Mesh_Triangle.UnsetAttractorGeom
 Unsets an attractor on the chosen face.
def smeshDC::Mesh_Triangle.SetQuadAllowed
 Sets QuadAllowed flag.

Function Documentation

def smeshDC.Mesh_Triangle.SetAngleMeshC (   self,
  theVal = _angleMeshS 
) [inherited]

Sets angular deflection (in degrees) of a mesh edge from CAD curve.

Definition at line 4965 of file smeshDC.py.

04966                                                :
04967         #  Parameter of BLSURF algo
04968         if self.Parameters().GetGeometricMesh() == 0: theVal = self._angleMeshS
04969         self.params.SetAngleMeshC(theVal)

def smeshDC.Mesh_Triangle.SetAngleMeshS (   self,
  theVal = _angleMeshS 
) [inherited]

Sets angular deflection (in degrees) of a mesh face from CAD surface.

Definition at line 4958 of file smeshDC.py.

04959                                                :
04960         #  Parameter of BLSURF algo
04961         if self.Parameters().GetGeometricMesh() == 0: theVal = self._angleMeshS
04962         self.params.SetAngleMeshS(theVal)

def smeshDC.Mesh_Triangle.SetAttractorGeom (   self,
  theFace,
  theAttractor,
  theStartSize,
  theEndSize,
  theInfluenceDistance,
  theConstantSizeDistance 
) [inherited]

Sets an attractor on the chosen face.

The mesh size will decrease exponentially with the distance from theAttractor, following the rule h(d) = theEndSize - (theEndSize - theStartSize) * exp [ - ( d / theInfluenceDistance ) ^ 2 ]

Parameters:
theFace: face on which the attractor will be defined
theAttractor: geometrical object from which the mesh size "h" decreases exponentially
theStartSize: mesh size on theAttractor
theEndSize: maximum size that will be reached on theFace
theInfluenceDistance: influence of the attractor ( the size grow slower on theFace if it's high)
theConstantSizeDistance: distance until which the mesh size will be kept constant on theFace

Definition at line 5024 of file smeshDC.py.

05025                                                                                                                               :
05026         AssureGeomPublished( self.mesh, theFace )
05027         AssureGeomPublished( self.mesh, theAttractor )
05028         #  Parameter of BLSURF algo
05029         self.Parameters().SetAttractorGeom(theFace, theAttractor, theStartSize, theEndSize, theInfluenceDistance, theConstantSizeDistance)
        
def smeshDC.Mesh_Triangle.SetDecimesh (   self,
  toIgnoreEdges = False 
) [inherited]

To respect geometrical edges or not.

Definition at line 5000 of file smeshDC.py.

05001                                               :
05002         #  Parameter of BLSURF algo
05003         self.Parameters().SetDecimesh(toIgnoreEdges)

def smeshDC.Mesh_Triangle.SetGeoMax (   self,
  theVal = -1 
) [inherited]

Sets upper boundary of mesh element size computed to respect angular deflection.

Definition at line 4978 of file smeshDC.py.

04979                                   :
04980         #  Parameter of BLSURF algo
04981         self.Parameters().SetGeoMax(theVal)

def smeshDC.Mesh_Triangle.SetGeometricMesh (   self,
  theGeometricMesh = 0 
) [inherited]

Sets a way to define maximum angular deflection of mesh from CAD model.

Parameters:
theGeometricMeshis: 0 (None) or 1 (Custom)

Definition at line 4951 of file smeshDC.py.

04952                                                   :
04953         #  Parameter of BLSURF algo
04954         if self.Parameters().GetPhysicalMesh() == 0: theGeometricMesh = 1
04955         self.params.SetGeometricMesh(theGeometricMesh)

def smeshDC.Mesh_Triangle.SetGeoMin (   self,
  theVal = -1 
) [inherited]

Sets lower boundary of mesh element size computed to respect angular deflection.

Definition at line 4972 of file smeshDC.py.

04973                                   :
04974         #  Parameter of BLSURF algo
04975         self.Parameters().SetGeoMin(theVal)

def smeshDC.Mesh_Triangle.SetGradation (   self,
  theVal = _gradation 
) [inherited]

Sets maximal allowed ratio between the lengths of two adjacent edges.

Definition at line 4984 of file smeshDC.py.

04985                                              :
04986         #  Parameter of BLSURF algo
04987         if self.Parameters().GetGeometricMesh() == 0: theVal = self._gradation
04988         self.params.SetGradation(theVal)

def smeshDC.Mesh_Triangle.SetOptionValue (   self,
  optionName,
  level 
) [inherited]

Sets advanced option value.

Definition at line 5012 of file smeshDC.py.

05013                                                :
05014         #  Parameter of BLSURF algo
05015         self.Parameters().SetOptionValue(optionName,level)

def smeshDC.Mesh_Triangle.SetPhyMax (   self,
  theVal = -1 
) [inherited]

Sets upper boundary of mesh element size (PhySize).

Definition at line 4944 of file smeshDC.py.

04945                                   :
04946         #  Parameter of BLSURF algo
04947         self.Parameters().SetPhyMax(theVal)

def smeshDC.Mesh_Triangle.SetPhyMin (   self,
  theVal = -1 
) [inherited]

Sets lower boundary of mesh element size (PhySize).

Definition at line 4938 of file smeshDC.py.

04939                                   :
04940         #  Parameter of BLSURF algo
04941         self.Parameters().SetPhyMin(theVal)

def smeshDC.Mesh_Triangle.SetPhysicalMesh (   self,
  thePhysicalMesh = DefaultSize 
) [inherited]

Sets a way to define size of mesh elements to generate.

Parameters:
thePhysicalMeshis: DefaultSize or Custom.

Definition at line 4925 of file smeshDC.py.

04926                                                           :
04927         # Parameter of BLSURF algo
04928         self.Parameters().SetPhysicalMesh(thePhysicalMesh)

def smeshDC.Mesh_Triangle.SetPhySize (   self,
  theVal 
) [inherited]

Sets size of mesh elements to generate.

Definition at line 4931 of file smeshDC.py.

04932                                 :
04933         # Parameter of BLSURF algo
04934         self.SetPhysicalMesh(1) #Custom - else why to set the size?
04935         self.Parameters().SetPhySize(theVal)

def smeshDC.Mesh_Triangle.SetQuadAllowed (   self,
  toAllow = True 
) [inherited]

Sets QuadAllowed flag.

Only for algoType == NETGEN(NETGEN_1D2D) || NETGEN_2D || BLSURF

Definition at line 5041 of file smeshDC.py.

05042                                           :
05043         if self.algoType == NETGEN_2D:
05044             if not self.params:
05045                 # use simple hyps
05046                 hasSimpleHyps = False
05047                 simpleHyps = ["QuadranglePreference","LengthFromEdges","MaxElementArea"]
05048                 for hyp in self.mesh.GetHypothesisList( self.geom ):
05049                     if hyp.GetName() in simpleHyps:
05050                         hasSimpleHyps = True
05051                         if hyp.GetName() == "QuadranglePreference":
05052                             if not toAllow: # remove QuadranglePreference
05053                                 self.mesh.RemoveHypothesis( self.geom, hyp )
05054                                 pass
05055                             return
05056                         pass
05057                     pass
05058                 if hasSimpleHyps:
05059                     if toAllow: # add QuadranglePreference
05060                         self.Hypothesis("QuadranglePreference", UseExisting=1, CompareMethod=self.CompareEqualHyp)
05061                         pass
05062                     return
05063                 pass
05064             pass
05065         if self.Parameters():
05066             self.params.SetQuadAllowed(toAllow)
05067             return

def smeshDC.Mesh_Triangle.SetTopology (   self,
  way 
) [inherited]

Sets topology usage way.

Parameters:
waydefines how mesh conformity is assured

  • FromCAD - mesh conformity is assured by conformity of a shape
  • PreProcess or PreProcessPlus - by pre-processing a CAD model

Definition at line 4994 of file smeshDC.py.

04995                               :
04996         #  Parameter of BLSURF algo
04997         self.Parameters().SetTopology(way)

def smeshDC.Mesh_Triangle.SetVerbosity (   self,
  level 
) [inherited]

Sets verbosity level in the range 0 to 100.

Definition at line 5006 of file smeshDC.py.

05007                                  :
05008         #  Parameter of BLSURF algo
05009         self.Parameters().SetVerbosity(level)

def smeshDC.Mesh_Triangle.UnsetAttractorGeom (   self,
  theFace 
) [inherited]

Unsets an attractor on the chosen face.

Parameters:
theFace: face on which the attractor has to be removed

Definition at line 5033 of file smeshDC.py.

05034                                          :
05035         AssureGeomPublished( self.mesh, theFace )
05036         #  Parameter of BLSURF algo
05037         self.Parameters().SetAttractorGeom(theFace)

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