Back to index

salome-smesh  6.5.0
Classes | Functions
Basic meshing algorithms
Defining Algorithms
Collaboration diagram for Basic meshing algorithms:

Classes

class  StdMeshersDC.StdMeshersDC_Segment
 Class to define a REGULAR 1D algorithm for discretization. More...
class  StdMeshersDC.StdMeshersDC_CompositeSegment
 A regular 1D algorithm for discretization of a set of adjacent edges as one. More...
class  StdMeshersDC.StdMeshersDC_Segment_Python
 Defines a segment 1D algorithm for discretization with python function It is created by calling Mesh.Segment(PYTHON,geom=0) More...
class  StdMeshersDC.StdMeshersDC_Triangle_MEFISTO
 Triangle MEFISTO 2D algorithm It is created by calling Mesh.Triangle(MEFISTO,geom=0) More...
class  StdMeshersDC.StdMeshersDC_Quadrangle
 Defines a quadrangle 2D algorithm It is created by calling Mesh.Quadrangle(geom=0) More...
class  StdMeshersDC.StdMeshersDC_Hexahedron
 Defines a hexahedron 3D algorithm It is created by calling Mesh.Hexahedron(geom=0) More...
class  StdMeshersDC.StdMeshersDC_UseExistingElements_1D
 Defines a Radial Quadrangle 1D2D algorithm It is created by calling Mesh.UseExisting1DElements(geom=0) More...
class  StdMeshersDC.StdMeshersDC_UseExistingElements_1D2D
 Defines a Radial Quadrangle 1D2D algorithm It is created by calling Mesh.UseExisting2DElements(geom=0) More...
class  StdMeshersDC.StdMeshersDC_Cartesian_3D
 Defines a Body Fitting 3D algorithm It is created by calling Mesh.BodyFitted(geom=0) More...
class  StdMeshersDC.StdMeshersDC_UseExisting_1D
 Defines a stub 1D algorithm, which enables "manual" creation of nodes and segments usable by 2D algoritms It is created by calling Mesh.UseExistingSegments(geom=0) More...
class  StdMeshersDC.StdMeshersDC_UseExisting_2D
 Defines a stub 2D algorithm, which enables "manual" creation of nodes and faces usable by 3D algoritms It is created by calling Mesh.UseExistingFaces(geom=0) More...

Functions

def smeshDC.Mesh.AutomaticTetrahedralization
 Computes a tetrahedral mesh using AutomaticLength + MEFISTO + NETGEN.
def smeshDC.Mesh.AutomaticHexahedralization
 Computes an hexahedral mesh using AutomaticLength + Quadrangle + Hexahedron.

Class Documentation

class StdMeshersDC::StdMeshersDC_Segment

Class to define a REGULAR 1D algorithm for discretization.

It is created by calling Mesh.Segment(geom=0)

Definition at line 47 of file StdMeshersDC.py.

Inheritance diagram for StdMeshersDC.StdMeshersDC_Segment:
Collaboration diagram for StdMeshersDC.StdMeshersDC_Segment:

Public Member Functions

def __init__
 Private constructor.
def LocalLength
 Defines "LocalLength" hypothesis to cut an edge in several segments with the same length.
def MaxSize
 Defines "MaxSize" hypothesis to cut an edge into segments not longer than given value.
def NumberOfSegments
 Defines "NumberOfSegments" hypothesis to cut an edge in a fixed number of segments.
def Arithmetic1D
 Defines "Arithmetic1D" hypothesis to cut an edge in several segments with increasing arithmetic length.
def FixedPoints1D
 Defines "FixedPoints1D" hypothesis to cut an edge using parameter on curve from 0 to 1 (additionally it is neecessary to check orientation of edges and create list of reversed edges if it is needed) and sets numbers of segments between given points (default values are equals 1.
def StartEndLength
 Defines "StartEndLength" hypothesis to cut an edge in several segments with increasing geometric length.
def Deflection1D
 Defines "Deflection1D" hypothesis.
def 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 AutomaticLength
 Defines "AutomaticLength" hypothesis.
def LengthNearVertex
 Defines "SegmentLengthAroundVertex" hypothesis.
def QuadraticMesh
 Defines "QuadraticMesh" hypothesis, forcing construction of quadratic edges.

Public Attributes

 geom
 0D algorithm

Static Public Attributes

string meshMethod = "Segment"
 Name of method of class Mesh creating an instance of this class.
 algoType = REGULAR
 Name of algorithm type.
 isDefault = True

Private Member Functions

def _compareNumberOfSegments
 Private method Checks if the given "NumberOfSegments" hypothesis has the same parameters as the given arguments.

Constructor & Destructor Documentation

def StdMeshersDC.StdMeshersDC_Segment.__init__ (   self,
  mesh,
  geom = 0 
)

Private constructor.

Reimplemented in StdMeshersDC.StdMeshersDC_CompositeSegment.

Definition at line 56 of file StdMeshersDC.py.

00056 
00057     def __init__(self, mesh, geom=0):
00058         Mesh_Algorithm.__init__(self)
00059         self.Create(mesh, geom, self.algoType)

Here is the call graph for this function:


Member Function Documentation

def StdMeshersDC.StdMeshersDC_Segment._compareNumberOfSegments (   self,
  hyp,
  args 
) [private]

Private method Checks if the given "NumberOfSegments" hypothesis has the same parameters as the given arguments.

Definition at line 139 of file StdMeshersDC.py.

00139 
00140     def _compareNumberOfSegments(self, hyp, args):
00141         if hyp.GetNumberOfSegments() == args[0]:
00142             if len(args) == 3:
00143                 if hyp.GetReversedEdges() == args[1]:
00144                     if not args[1] or hyp.GetObjectEntry() == args[2]:
00145                         return True
00146             else:
00147                 if hyp.GetReversedEdges() == args[2]:
00148                     if not args[2] or hyp.GetObjectEntry() == args[3]:
00149                         if hyp.GetDistrType() == 1:
00150                             if IsEqual(hyp.GetScaleFactor(), args[1]):
00151                                 return True
00152         return False

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Name of algorithm type.

Reimplemented in StdMeshersDC.StdMeshersDC_CompositeSegment.

Definition at line 52 of file StdMeshersDC.py.

0D algorithm

Definition at line 279 of file StdMeshersDC.py.

string StdMeshersDC.StdMeshersDC_Segment.meshMethod = "Segment" [static]

Name of method of class Mesh creating an instance of this class.

Reimplemented in StdMeshersDC.StdMeshersDC_CompositeSegment.

Definition at line 50 of file StdMeshersDC.py.

class StdMeshersDC::StdMeshersDC_CompositeSegment

A regular 1D algorithm for discretization of a set of adjacent edges as one.

It is created by calling Mesh.Segment(COMPOSITE,geom=0)

Definition at line 324 of file StdMeshersDC.py.

Inheritance diagram for StdMeshersDC.StdMeshersDC_CompositeSegment:
Collaboration diagram for StdMeshersDC.StdMeshersDC_CompositeSegment:

Public Member Functions

def __init__
 Private constructor.
def LocalLength
 Defines "LocalLength" hypothesis to cut an edge in several segments with the same length.
def MaxSize
 Defines "MaxSize" hypothesis to cut an edge into segments not longer than given value.
def NumberOfSegments
 Defines "NumberOfSegments" hypothesis to cut an edge in a fixed number of segments.
def Arithmetic1D
 Defines "Arithmetic1D" hypothesis to cut an edge in several segments with increasing arithmetic length.
def FixedPoints1D
 Defines "FixedPoints1D" hypothesis to cut an edge using parameter on curve from 0 to 1 (additionally it is neecessary to check orientation of edges and create list of reversed edges if it is needed) and sets numbers of segments between given points (default values are equals 1.
def StartEndLength
 Defines "StartEndLength" hypothesis to cut an edge in several segments with increasing geometric length.
def Deflection1D
 Defines "Deflection1D" hypothesis.
def 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 AutomaticLength
 Defines "AutomaticLength" hypothesis.
def LengthNearVertex
 Defines "SegmentLengthAroundVertex" hypothesis.
def QuadraticMesh
 Defines "QuadraticMesh" hypothesis, forcing construction of quadratic edges.

Public Attributes

 geom
 0D algorithm

Static Public Attributes

string meshMethod = "Segment"
 Name of method of class Mesh creating an instance of this class.
 algoType = COMPOSITE
 Name of algorithm type.
 isDefault = False

Constructor & Destructor Documentation

def StdMeshersDC.StdMeshersDC_CompositeSegment.__init__ (   self,
  mesh,
  geom = 0 
)

Private constructor.

Reimplemented from StdMeshersDC.StdMeshersDC_Segment.

Definition at line 333 of file StdMeshersDC.py.

00333 
00334     def __init__(self, mesh, geom=0):
00335         self.Create(mesh, geom, self.algoType)
00336 
00337 
00338 # Public class: Mesh_Segment_Python
00339 # ---------------------------------

Here is the call graph for this function:


Member Data Documentation

Name of algorithm type.

Reimplemented from StdMeshersDC.StdMeshersDC_Segment.

Definition at line 329 of file StdMeshersDC.py.

0D algorithm

Definition at line 279 of file StdMeshersDC.py.

Reimplemented from StdMeshersDC.StdMeshersDC_Segment.

Definition at line 330 of file StdMeshersDC.py.

Name of method of class Mesh creating an instance of this class.

Reimplemented from StdMeshersDC.StdMeshersDC_Segment.

Definition at line 327 of file StdMeshersDC.py.

class StdMeshersDC::StdMeshersDC_Segment_Python

Defines a segment 1D algorithm for discretization with python function It is created by calling Mesh.Segment(PYTHON,geom=0)

Definition at line 344 of file StdMeshersDC.py.

Inheritance diagram for StdMeshersDC.StdMeshersDC_Segment_Python:
Collaboration diagram for StdMeshersDC.StdMeshersDC_Segment_Python:

Public Member Functions

def __init__
 Private constructor.
def PythonSplit1D
 Defines "PythonSplit1D" hypothesis.

Static Public Attributes

string meshMethod = "Segment"
 Name of method of class Mesh creating an instance of this class.
 algoType = PYTHON
 Name of algorithm type.

Constructor & Destructor Documentation

def StdMeshersDC.StdMeshersDC_Segment_Python.__init__ (   self,
  mesh,
  geom = 0 
)

Private constructor.

Definition at line 352 of file StdMeshersDC.py.

00352 
00353     def __init__(self, mesh, geom=0):
00354         import Python1dPlugin
00355         self.Create(mesh, geom, self.algoType, "libPython1dEngine.so")

Here is the call graph for this function:


Member Data Documentation

Name of algorithm type.

Definition at line 349 of file StdMeshersDC.py.

Name of method of class Mesh creating an instance of this class.

Definition at line 347 of file StdMeshersDC.py.

class StdMeshersDC::StdMeshersDC_Triangle_MEFISTO

Triangle MEFISTO 2D algorithm It is created by calling Mesh.Triangle(MEFISTO,geom=0)

Definition at line 377 of file StdMeshersDC.py.

Inheritance diagram for StdMeshersDC.StdMeshersDC_Triangle_MEFISTO:
Collaboration diagram for StdMeshersDC.StdMeshersDC_Triangle_MEFISTO:

Public Member Functions

def __init__
 Private constructor.
def MaxElementArea
 Defines "MaxElementArea" hypothesis basing on the definition of the maximum area of each triangle.
def LengthFromEdges
 Defines "LengthFromEdges" hypothesis to build triangles based on the length of the edges taken from the wire.

Static Public Attributes

string meshMethod = "Triangle"
 Name of method of class Mesh creating an instance of this class.
 algoType = MEFISTO
 Name of algorithm type.
 isDefault = True

Constructor & Destructor Documentation

def StdMeshersDC.StdMeshersDC_Triangle_MEFISTO.__init__ (   self,
  mesh,
  geom = 0 
)

Private constructor.

Definition at line 386 of file StdMeshersDC.py.

00386 
00387     def __init__(self, mesh, geom=0):
00388         Mesh_Algorithm.__init__(self)
00389         self.Create(mesh, geom, self.algoType)

Here is the call graph for this function:


Member Data Documentation

Name of algorithm type.

Definition at line 382 of file StdMeshersDC.py.

Definition at line 383 of file StdMeshersDC.py.

Name of method of class Mesh creating an instance of this class.

Definition at line 380 of file StdMeshersDC.py.

class StdMeshersDC::StdMeshersDC_Quadrangle

Defines a quadrangle 2D algorithm It is created by calling Mesh.Quadrangle(geom=0)

Definition at line 418 of file StdMeshersDC.py.

Inheritance diagram for StdMeshersDC.StdMeshersDC_Quadrangle:
Collaboration diagram for StdMeshersDC.StdMeshersDC_Quadrangle:

Public Member Functions

def __init__
 Private constructor.
def QuadrangleParameters
 Defines "QuadrangleParameters" hypothesis.
def QuadranglePreference
 Defines "QuadrangleParams" hypothesis with a type of quadrangulation that only quadrangles are built in the transition area along the finer meshed sides, iff the total quantity of segments on all four sides of the face is even.
def TrianglePreference
 Defines "QuadrangleParams" hypothesis with a type of quadrangulation that only triangles are built in the transition area along the finer meshed sides.
def Reduced
 Defines "QuadrangleParams" hypothesis with a type of quadrangulation that only quadrangles are built and the transition between the sides is made gradually, layer by layer.
def TriangleVertex
 Defines "QuadrangleParams" hypothesis with QUAD_STANDARD type of quadrangulation.

Public Attributes

 params

Static Public Attributes

string meshMethod = "Quadrangle"
 Name of method of class Mesh creating an instance of this class.
 algoType = QUADRANGLE
 Name of algorithm type.
 isDefault = True
int params = 0

Constructor & Destructor Documentation

def StdMeshersDC.StdMeshersDC_Quadrangle.__init__ (   self,
  mesh,
  geom = 0 
)

Private constructor.

Definition at line 429 of file StdMeshersDC.py.

00429 
00430     def __init__(self, mesh, geom=0):
00431         Mesh_Algorithm.__init__(self)
00432         self.Create(mesh, geom, self.algoType)
00433         return

Here is the call graph for this function:


Member Data Documentation

Name of algorithm type.

Definition at line 423 of file StdMeshersDC.py.

Definition at line 424 of file StdMeshersDC.py.

string StdMeshersDC.StdMeshersDC_Quadrangle.meshMethod = "Quadrangle" [static]

Name of method of class Mesh creating an instance of this class.

Definition at line 421 of file StdMeshersDC.py.

Definition at line 426 of file StdMeshersDC.py.

class StdMeshersDC::StdMeshersDC_Hexahedron

Defines a hexahedron 3D algorithm It is created by calling Mesh.Hexahedron(geom=0)

Definition at line 526 of file StdMeshersDC.py.

Inheritance diagram for StdMeshersDC.StdMeshersDC_Hexahedron:
Collaboration diagram for StdMeshersDC.StdMeshersDC_Hexahedron:

Public Member Functions

def __init__
 Private constructor.

Static Public Attributes

string meshMethod = "Hexahedron"
 Name of method of class Mesh creating an instance of this class.
 algoType = Hexa
 Name of algorithm type.
 isDefault = True

Constructor & Destructor Documentation

def StdMeshersDC.StdMeshersDC_Hexahedron.__init__ (   self,
  mesh,
  geom = 0 
)

Private constructor.

Definition at line 535 of file StdMeshersDC.py.

00535 
00536     def __init__(self, mesh, geom=0):
00537         Mesh_Algorithm.__init__(self)
00538         self.Create(mesh, geom, Hexa)
00539         pass
00540 
00541 # Public class: Mesh_Projection1D
00542 # -------------------------------

Here is the call graph for this function:


Member Data Documentation

Name of algorithm type.

Definition at line 531 of file StdMeshersDC.py.

Definition at line 532 of file StdMeshersDC.py.

string StdMeshersDC.StdMeshersDC_Hexahedron.meshMethod = "Hexahedron" [static]

Name of method of class Mesh creating an instance of this class.

Definition at line 529 of file StdMeshersDC.py.

class StdMeshersDC::StdMeshersDC_UseExistingElements_1D

Defines a Radial Quadrangle 1D2D algorithm It is created by calling Mesh.UseExisting1DElements(geom=0)

Definition at line 964 of file StdMeshersDC.py.

Inheritance diagram for StdMeshersDC.StdMeshersDC_UseExistingElements_1D:
Collaboration diagram for StdMeshersDC.StdMeshersDC_UseExistingElements_1D:

Public Member Functions

def __init__
def SourceEdges
 Defines "Source edges" hypothesis, specifying groups of edges to import.

Static Public Attributes

string meshMethod = "UseExisting1DElements"
 Name of method of class Mesh creating an instance of this class.
string algoType = "Import_1D"
 Name of algorithm type.
 isDefault = True

Constructor & Destructor Documentation

def StdMeshersDC.StdMeshersDC_UseExistingElements_1D.__init__ (   self,
  mesh,
  geom = 0 
)

Definition at line 972 of file StdMeshersDC.py.

00972 
00973     def __init__(self, mesh, geom=0):
00974         Mesh_Algorithm.__init__(self)
00975         self.Create(mesh, geom, self.algoType)
00976         return

Here is the call graph for this function:


Member Function Documentation

def StdMeshersDC.StdMeshersDC_UseExistingElements_1D.SourceEdges (   self,
  groups,
  toCopyMesh = False,
  toCopyGroups = False,
  UseExisting = False 
)

Defines "Source edges" hypothesis, specifying groups of edges to import.

Parameters:
groupslist of groups of edges
toCopyMeshif True, the whole mesh groups belong to is imported
toCopyGroupsif True, all groups of the mesh groups belong to are imported
UseExistingif ==true - searches for the existing hypothesis created with the same parameters, else (default) - creates a new one

Definition at line 983 of file StdMeshersDC.py.

00983 
00984     def SourceEdges(self, groups, toCopyMesh=False, toCopyGroups=False, UseExisting=False):
00985         for group in groups:
00986             AssureGeomPublished( self.mesh, group )
00987         compFun = lambda hyp, args: ( hyp.GetSourceEdges() == args[0] and \
00988                                       hyp.GetCopySourceMesh() == args[1], args[2] )
00989         hyp = self.Hypothesis("ImportSource1D", [groups, toCopyMesh, toCopyGroups],
00990                               UseExisting=UseExisting, CompareMethod=compFun)
00991         hyp.SetSourceEdges(groups)
00992         hyp.SetCopySourceMesh(toCopyMesh, toCopyGroups)
00993         return hyp
00994 
00995 # Public class: Mesh_UseExistingElements
# --------------------------------------

Here is the call graph for this function:


Member Data Documentation

Name of algorithm type.

Definition at line 969 of file StdMeshersDC.py.

string StdMeshersDC.StdMeshersDC_UseExistingElements_1D.meshMethod = "UseExisting1DElements" [static]

Name of method of class Mesh creating an instance of this class.

Definition at line 967 of file StdMeshersDC.py.

class StdMeshersDC::StdMeshersDC_UseExistingElements_1D2D

Defines a Radial Quadrangle 1D2D algorithm It is created by calling Mesh.UseExisting2DElements(geom=0)

Definition at line 1000 of file StdMeshersDC.py.

Inheritance diagram for StdMeshersDC.StdMeshersDC_UseExistingElements_1D2D:
Collaboration diagram for StdMeshersDC.StdMeshersDC_UseExistingElements_1D2D:

Public Member Functions

def __init__
def SourceFaces
 Defines "Source faces" hypothesis, specifying groups of faces to import.

Static Public Attributes

string meshMethod = "UseExisting2DElements"
 Name of method of class Mesh creating an instance of this class.
string algoType = "Import_1D2D"
 Name of algorithm type.
 isDefault = True

Constructor & Destructor Documentation

def StdMeshersDC.StdMeshersDC_UseExistingElements_1D2D.__init__ (   self,
  mesh,
  geom = 0 
)

Definition at line 1008 of file StdMeshersDC.py.

01008 
01009     def __init__(self, mesh, geom=0):
01010         Mesh_Algorithm.__init__(self)
01011         self.Create(mesh, geom, self.algoType)
01012         return

Here is the call graph for this function:


Member Function Documentation

def StdMeshersDC.StdMeshersDC_UseExistingElements_1D2D.SourceFaces (   self,
  groups,
  toCopyMesh = False,
  toCopyGroups = False,
  UseExisting = False 
)

Defines "Source faces" hypothesis, specifying groups of faces to import.

Parameters:
groupslist of groups of faces
toCopyMeshif True, the whole mesh groups belong to is imported
toCopyGroupsif True, all groups of the mesh groups belong to are imported
UseExistingif ==true - searches for the existing hypothesis created with the same parameters, else (default) - creates a new one

Definition at line 1019 of file StdMeshersDC.py.

01019 
01020     def SourceFaces(self, groups, toCopyMesh=False, toCopyGroups=False, UseExisting=False):
01021         for group in groups:
01022             AssureGeomPublished( self.mesh, group )
01023         compFun = lambda hyp, args: ( hyp.GetSourceFaces() == args[0] and \
01024                                       hyp.GetCopySourceMesh() == args[1], args[2] )
01025         hyp = self.Hypothesis("ImportSource2D", [groups, toCopyMesh, toCopyGroups],
01026                               UseExisting=UseExisting, CompareMethod=compFun)
01027         hyp.SetSourceFaces(groups)
01028         hyp.SetCopySourceMesh(toCopyMesh, toCopyGroups)
01029         return hyp
01030 
01031 
01032 # Public class: Mesh_Cartesian_3D
# --------------------------------------

Here is the call graph for this function:


Member Data Documentation

Name of algorithm type.

Definition at line 1005 of file StdMeshersDC.py.

string StdMeshersDC.StdMeshersDC_UseExistingElements_1D2D.meshMethod = "UseExisting2DElements" [static]

Name of method of class Mesh creating an instance of this class.

Definition at line 1003 of file StdMeshersDC.py.

class StdMeshersDC::StdMeshersDC_Cartesian_3D

Defines a Body Fitting 3D algorithm It is created by calling Mesh.BodyFitted(geom=0)

Definition at line 1037 of file StdMeshersDC.py.

Inheritance diagram for StdMeshersDC.StdMeshersDC_Cartesian_3D:
Collaboration diagram for StdMeshersDC.StdMeshersDC_Cartesian_3D:

Public Member Functions

def __init__
def SetGrid
 Defines "Body Fitting parameters" hypothesis.

Public Attributes

 hyp

Static Public Attributes

string meshMethod = "BodyFitted"
 Name of method of class Mesh creating an instance of this class.
string algoType = "Cartesian_3D"
 Name of algorithm type.
 isDefault = True

Constructor & Destructor Documentation

def StdMeshersDC.StdMeshersDC_Cartesian_3D.__init__ (   self,
  mesh,
  geom = 0 
)

Definition at line 1045 of file StdMeshersDC.py.

01045 
01046     def __init__(self, mesh, geom=0):
01047         self.Create(mesh, geom, self.algoType)
01048         self.hyp = None
01049         return

Here is the call graph for this function:


Member Function Documentation

def StdMeshersDC.StdMeshersDC_Cartesian_3D.SetGrid (   self,
  xGridDef,
  yGridDef,
  zGridDef,
  sizeThreshold = 4.0,
  UseExisting = False 
)

Defines "Body Fitting parameters" hypothesis.

Parameters:
xGridDefis definition of the grid along the X asix. It can be in either of two following forms:
  • Explicit coordinates of nodes, e.g. [-1.5, 0.0, 3.1] or range( -100,200,10)
  • Functions f(t) defining grid spacing at each point on grid axis. If there are several functions, they must be accompanied by relative coordinates of points dividing the whole shape into ranges where the functions apply; points coodrinates should vary within (0.0, 1.0) range. Parameter t of the spacing function f(t) varies from 0.0 to 1.0 witin a shape range. Examples:
    • "10.5" - defines a grid with a constant spacing
    • [["1", "1+10*t", "11"] [0.1, 0.6]] - defines different spacing in 3 ranges.
yGridDefdefines the grid along the Y asix the same way as xGridDef does
zGridDefdefines the grid along the Z asix the same way as xGridDef does
sizeThreshold(> 1.0) defines a minimal size of a polyhedron so that a polyhedron of size less than hexSize/sizeThreshold is not created
UseExistingif ==true - searches for the existing hypothesis created with the same parameters, else (default) - creates a new one

Definition at line 1068 of file StdMeshersDC.py.

01068 
01069     def SetGrid(self, xGridDef, yGridDef, zGridDef, sizeThreshold=4.0, UseExisting=False):
01070         if not self.hyp:
01071             compFun = lambda hyp, args: False
01072             self.hyp = self.Hypothesis("CartesianParameters3D",
01073                                        [xGridDef, yGridDef, zGridDef, sizeThreshold],
01074                                        UseExisting=UseExisting, CompareMethod=compFun)
01075         if not self.mesh.IsUsedHypothesis( self.hyp, self.geom ):
01076             self.mesh.AddHypothesis( self.hyp, self.geom )
01077 
01078         for axis, gridDef in enumerate( [xGridDef, yGridDef, zGridDef]):
01079             if not gridDef: raise ValueError, "Empty grid definition"
01080             if isinstance( gridDef, str ):
01081                 self.hyp.SetGridSpacing( [gridDef], [], axis )
01082             elif isinstance( gridDef[0], str ):
01083                 self.hyp.SetGridSpacing( gridDef, [], axis )
01084             elif isinstance( gridDef[0], int ) or \
01085                  isinstance( gridDef[0], float ):
01086                 self.hyp.SetGrid(gridDef, axis )
01087             else:
01088                 self.hyp.SetGridSpacing( gridDef[0], gridDef[1], axis )
01089         self.hyp.SetSizeThreshold( sizeThreshold )
01090         return self.hyp
01091 
01092 # Public class: Mesh_UseExisting_1D
# ---------------------------------

Here is the call graph for this function:


Member Data Documentation

string StdMeshersDC.StdMeshersDC_Cartesian_3D.algoType = "Cartesian_3D" [static]

Name of algorithm type.

Definition at line 1042 of file StdMeshersDC.py.

Definition at line 1043 of file StdMeshersDC.py.

string StdMeshersDC.StdMeshersDC_Cartesian_3D.meshMethod = "BodyFitted" [static]

Name of method of class Mesh creating an instance of this class.

Definition at line 1040 of file StdMeshersDC.py.

class StdMeshersDC::StdMeshersDC_UseExisting_1D

Defines a stub 1D algorithm, which enables "manual" creation of nodes and segments usable by 2D algoritms It is created by calling Mesh.UseExistingSegments(geom=0)

Definition at line 1099 of file StdMeshersDC.py.

Inheritance diagram for StdMeshersDC.StdMeshersDC_UseExisting_1D:
Collaboration diagram for StdMeshersDC.StdMeshersDC_UseExisting_1D:

Public Member Functions

def __init__

Static Public Attributes

string meshMethod = "UseExistingSegments"
 Name of method of class Mesh creating an instance of this class.
string algoType = "UseExisting_1D"
 Name of algorithm type.

Constructor & Destructor Documentation

def StdMeshersDC.StdMeshersDC_UseExisting_1D.__init__ (   self,
  mesh,
  geom = 0 
)

Definition at line 1106 of file StdMeshersDC.py.

01106 
01107     def __init__(self, mesh, geom=0):
01108         self.Create(mesh, geom, self.algoType)
01109 
01110 
01111 # Public class: Mesh_UseExisting
# -------------------------------

Here is the call graph for this function:


Member Data Documentation

string StdMeshersDC.StdMeshersDC_UseExisting_1D.algoType = "UseExisting_1D" [static]

Name of algorithm type.

Definition at line 1104 of file StdMeshersDC.py.

string StdMeshersDC.StdMeshersDC_UseExisting_1D.meshMethod = "UseExistingSegments" [static]

Name of method of class Mesh creating an instance of this class.

Definition at line 1102 of file StdMeshersDC.py.

class StdMeshersDC::StdMeshersDC_UseExisting_2D

Defines a stub 2D algorithm, which enables "manual" creation of nodes and faces usable by 3D algoritms It is created by calling Mesh.UseExistingFaces(geom=0)

Definition at line 1118 of file StdMeshersDC.py.

Inheritance diagram for StdMeshersDC.StdMeshersDC_UseExisting_2D:
Collaboration diagram for StdMeshersDC.StdMeshersDC_UseExisting_2D:

Public Member Functions

def __init__

Static Public Attributes

string meshMethod = "UseExistingFaces"
 Name of method of class Mesh creating an instance of this class.
string algoType = "UseExisting_2D"
 Name of algorithm type.

Constructor & Destructor Documentation

def StdMeshersDC.StdMeshersDC_UseExisting_2D.__init__ (   self,
  mesh,
  geom = 0 
)

Definition at line 1125 of file StdMeshersDC.py.

01125 
01126     def __init__(self, mesh, geom=0):
01127         self.Create(mesh, geom, self.algoType)

Here is the call graph for this function:


Member Data Documentation

string StdMeshersDC.StdMeshersDC_UseExisting_2D.algoType = "UseExisting_2D" [static]

Name of algorithm type.

Definition at line 1123 of file StdMeshersDC.py.

string StdMeshersDC.StdMeshersDC_UseExisting_2D.meshMethod = "UseExistingFaces" [static]

Name of method of class Mesh creating an instance of this class.

Definition at line 1121 of file StdMeshersDC.py.


Function Documentation

def smeshDC.Mesh.AutomaticHexahedralization (   self,
  fineness = 0 
)

Computes an hexahedral mesh using AutomaticLength + Quadrangle + Hexahedron.

Parameters:
fineness[0.0, 1.0] defines mesh fineness
Returns:
True or False

Definition at line 1290 of file smeshDC.py.

01290 
01291     def AutomaticHexahedralization(self, fineness=0):
01292         dim = self.MeshDimension()
01293         # assign the hypotheses
01294         self.RemoveGlobalHypotheses()
01295         self.Segment().AutomaticLength(fineness)
01296         if dim > 1 :
01297             self.Quadrangle()
01298             pass
01299         if dim > 2 :
01300             self.Hexahedron()
01301             pass
01302         return self.Compute()

Here is the call graph for this function:

def smeshDC.Mesh.AutomaticTetrahedralization (   self,
  fineness = 0 
)

Computes a tetrahedral mesh using AutomaticLength + MEFISTO + NETGEN.

Parameters:
fineness[0.0,1.0] defines mesh fineness
Returns:
True or False

Definition at line 1272 of file smeshDC.py.

01272 
01273     def AutomaticTetrahedralization(self, fineness=0):
01274         dim = self.MeshDimension()
01275         # assign hypotheses
01276         self.RemoveGlobalHypotheses()
01277         self.Segment().AutomaticLength(fineness)
01278         if dim > 1 :
01279             self.Triangle().LengthFromEdges()
01280             pass
01281         if dim > 2 :
01282             from NETGENPluginDC import NETGEN
01283             self.Tetrahedron(NETGEN)
01284             pass
01285         return self.Compute()

Here is the call graph for this function: