Package esys :: Package pycad :: Module primitives :: Class Manifold3D
[hide private]
[frames] | no frames]

Class Manifold3D

   object --+    
            |    
PrimitiveBase --+
                |
               Manifold3D
Known Subclasses:

General three-dimensional manifold.
Instance Methods [hide private]
 
__init__(self)
Creates a three-dimensional manifold.
 
getBoundary(self)
Returns a list of the 2-dimensional manifolds forming the boundary of the volume (including holes).
tuple of a tuple of Point s (or None) and the orientation which is one of the values Manifold2D.LEFT , Manifold2D.RIGHT , Manifold2D.ALTERNATE
getTransfiniteMeshing(self)
returns the transfinite meshing setings.
 
resetTransfiniteMeshing(self)
removes the transfinite meshing from the volume but not from the surfaces
 
setElementDistribution(self, n, progression=1, createBump=False)
Defines the number of elements on the lines and surfaces
 
setRecombination(self, max_deviation=0.785398163397)
Recombines triangular meshes on all surface into mixed triangular/quadrangular meshes.
 
setTransfiniteMeshing(self, orientation='Left')
applies 3D transfinite meshing to the volume and all surface.

Inherited from PrimitiveBase: __add__, __cmp__, __eq__, __hash__, __iadd__, __imul__, __isub__, __lt__, __rmul__, __sub__, apply, copy, getConstructionPoints, getPrimitives, modifyBy, setLocalScale

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

 
Creates a three-dimensional manifold.
Overrides: object.__init__

getTransfiniteMeshing(self)

 
returns the transfinite meshing setings. If transfinite meshing is not set, None is returned.
Returns: tuple of a tuple of Point s (or None) and the orientation which is one of the values Manifold2D.LEFT , Manifold2D.RIGHT , Manifold2D.ALTERNATE
a tuple of the tuple of points used to define the transfinite meshing and the orientation. If no points are set the points tuple is returned as None. If no transfinite meshing is not set, None is returned.

setElementDistribution(self, n, progression=1, createBump=False)

 
Defines the number of elements on the lines and surfaces
Parameters:
  • n (int) - number of elements on the line
  • progression (positive float) - a positive progression factor
  • createBump (bool) - of elements on the line

setRecombination(self, max_deviation=0.785398163397)

 

Recombines triangular meshes on all surface into mixed triangular/quadrangular meshes. These meshes are then used to generate the volume mesh if possible. Recombination requires 3D transfinite meshing.

max_deviation specifies the maximum derivation of the largest angle in the quadrangle from the right angle. Use max_deviation``==``None to switch off recombination.

Parameters:
  • max_deviation (float or None.) - maximum derivation of the largest angle in the quadrangle from the right angle.

setTransfiniteMeshing(self, orientation='Left')

 
applies 3D transfinite meshing to the volume and all surface. It requires transfinite meshing on all faces which will be enforced (except if orientation is equal to None). :param orientation: sets the orientation of the triangles on the surfaces. It is only relevant if recombination is not used. If orientation is equal to None, the transinite meshing is not applied to the surfaces but must be set by the user. :type orientation: Manifold2D.LEFT, Manifold2D.RIGHT, Manifold2D.ALTERNATE :note: Transfinite meshing can not be applied if holes are present. :note: only five or six surfaces may be used. :warning: The functionality of transfinite meshing without recombination is not entirely clear in gmsh. So please apply this method with care.