Back to index

salome-smesh  6.5.0
Functions
Additional Hypotheses
Defining hypotheses
Collaboration diagram for Additional Hypotheses:

Functions

def smeshDC.Mesh_Algorithm.ViscousLayers
 Defines "ViscousLayers" hypothesis to give parameters of layers of prisms to build near mesh boundary.
def StdMeshersDC.StdMeshersDC_Segment.Propagation
 Defines "Propagation" hypothesis that propagates all other hypotheses on all other edges that are at the opposite side in case of quadrangular faces.
def StdMeshersDC.StdMeshersDC_Segment.QuadraticMesh
 Defines "QuadraticMesh" hypothesis, forcing construction of quadratic edges.

Function Documentation

Defines "Propagation" hypothesis that propagates all other hypotheses on all other edges that are at the opposite side in case of quadrangular faces.

Definition at line 249 of file StdMeshersDC.py.

00249 
00250     def Propagation(self):
00251         return self.Hypothesis("Propagation", UseExisting=1, CompareMethod=self.CompareEqualHyp)

Here is the call graph for this function:

Defines "QuadraticMesh" hypothesis, forcing construction of quadratic edges.

If the 2D mesher sees that all boundary edges are quadratic, it generates quadratic faces, else it generates linear faces using medium nodes as if they are vertices. The 3D mesher generates quadratic volumes only if all boundary faces are quadratic, else it fails.

Definition at line 313 of file StdMeshersDC.py.

00313 
00314     def QuadraticMesh(self):
00315         hyp = self.Hypothesis("QuadraticMesh", UseExisting=1, CompareMethod=self.CompareEqualHyp)
00316         return hyp
00317 
00318 # Public class: Mesh_CompositeSegment
00319 # --------------------------

Here is the call graph for this function:

def smeshDC.Mesh_Algorithm.ViscousLayers (   self,
  thickness,
  numberOfLayers,
  stretchFactor,
  ignoreFaces = [] 
)

Defines "ViscousLayers" hypothesis to give parameters of layers of prisms to build near mesh boundary.

This hypothesis can be used by several 3D algorithms: NETGEN 3D, GHS3D, Hexahedron(i,j,k)

Parameters:
thicknesstotal thickness of layers of prisms
numberOfLayersnumber of layers of prisms
stretchFactorfactor (>1.0) of growth of layer thickness towards inside of mesh
ignoreFaceslist of geometrical faces (or their ids) not to generate layers on

Definition at line 4246 of file smeshDC.py.

04246 
04247     def ViscousLayers(self, thickness, numberOfLayers, stretchFactor, ignoreFaces=[]):
04248         if not isinstance(self.algo, SMESH._objref_SMESH_3D_Algo):
04249             raise TypeError, "ViscousLayers are supported by 3D algorithms only"
04250         if not "ViscousLayers" in self.GetCompatibleHypothesis():
04251             raise TypeError, "ViscousLayers are not supported by %s"%self.algo.GetName()
04252         if ignoreFaces and isinstance( ignoreFaces[0], geompyDC.GEOM._objref_GEOM_Object ):
04253             ignoreFaces = [ self.mesh.geompyD.GetSubShapeID(self.mesh.geom, f) for f in ignoreFaces ]
04254         hyp = self.Hypothesis("ViscousLayers",
04255                               [thickness, numberOfLayers, stretchFactor, ignoreFaces])
04256         hyp.SetTotalThickness(thickness)
04257         hyp.SetNumberLayers(numberOfLayers)
04258         hyp.SetStretchFactor(stretchFactor)
04259         hyp.SetIgnoreFaces(ignoreFaces)
04260         return hyp

Here is the call graph for this function: