Version: 6.3.1
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 smeshDC::Mesh_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 smeshDC::Mesh_Segment.QuadraticMesh
 Defines "QuadraticMesh" hypothesis, forcing construction of quadratic edges.

Function Documentation

def smeshDC.Mesh_Segment.Propagation (   self) [inherited]

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 4732 of file smeshDC.py.

04733                          :
04734         return self.Hypothesis("Propagation", UseExisting=1, CompareMethod=self.CompareEqualHyp)

def smeshDC.Mesh_Segment.QuadraticMesh (   self) [inherited]

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 4802 of file smeshDC.py.

04803                            :
04804         hyp = self.Hypothesis("QuadraticMesh", UseExisting=1, CompareMethod=self.CompareEqualHyp)
04805         return hyp
04806 
04807 # Public class: Mesh_CompositeSegment
04808 # --------------------------

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

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 4479 of file smeshDC.py.

04480                                                                                      :
04481         if not isinstance(self.algo, SMESH._objref_SMESH_3D_Algo):
04482             raise TypeError, "ViscousLayers are supported by 3D algorithms only"
04483         if not "ViscousLayers" in self.GetCompatibleHypothesis():
04484             raise TypeError, "ViscousLayers are not supported by %s"%self.algo.GetName()
04485         if ignoreFaces and isinstance( ignoreFaces[0], geompyDC.GEOM._objref_GEOM_Object ):
04486             ignoreFaces = [ self.mesh.geompyD.GetSubShapeID(self.mesh.geom, f) for f in ignoreFaces ]
04487         hyp = self.Hypothesis("ViscousLayers",
04488                               [thickness, numberOfLayers, stretchFactor, ignoreFaces])
04489         hyp.SetTotalThickness(thickness)
04490         hyp.SetNumberLayers(numberOfLayers)
04491         hyp.SetStretchFactor(stretchFactor)
04492         hyp.SetIgnoreFaces(ignoreFaces)
04493         return hyp
04494 
04495 # Public class: Mesh_Segment
04496 # --------------------------

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