Package esys :: Package pycad :: Module gmsh :: Class Design
[hide private]
[frames] | no frames]

Class Design

   object --+    
            |    
design.Design --+
                |
               Design

Design for gmsh.

Instance Methods [hide private]
 
__del__(self)
Cleans up.
 
__init__(self, dim=3, element_size=1.0, order=1, keep_files=False)
Initializes the gmsh design.
 
__mkArgs(self, args)
 
__mkTransfiniteLine(self, p)
 
__mkTransfiniteSurface(self, p)
 
getCommandString(self)
Returns the gmsh command line.
 
getMeshFileName(self)
Returns the name of the gmsh mesh file.
 
getMeshHandler(self)
Returns a handle to a mesh meshing the design.
 
getScriptFileName(self)
Returns the name of the gmsh script file.
 
getScriptString(self)
Returns the gmsh script to generate the mesh.
 
setMeshFileName(self, name=None)
Sets the name for the gmsh mesh file.
 
setOptions(self, algorithm=None, optimize_quality=True, smoothing=1, curvature_based_element_size=False)
Sets options for the mesh generator.
 
setScriptFileName(self, name=None)
Sets the filename for the gmsh input script.

Inherited from design.Design: addItems, clearItems, getAllPrimitives, getDim, getElementOrder, getElementSize, getItems, getTagMap, keepFiles, setDim, setElementOrder, setElementSize, setKeepFilesOff, setKeepFilesOn

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  DELAUNAY = 'iso'
  NETGEN = 'netgen'
  TETGEN = 'tetgen'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, dim=3, element_size=1.0, order=1, keep_files=False)
(Constructor)

 

Initializes the gmsh design.

Parameters:
  • dim - spatial dimension
  • element_size - global element size
  • order - element order
  • keep_files - flag to keep work files
Overrides: object.__init__

getMeshHandler(self)

 

Returns a handle to a mesh meshing the design. In the current implementation a mesh file name in gmsh format is returned.

Overrides: design.Design.getMeshHandler

setMeshFileName(self, name=None)

 

Sets the name for the gmsh mesh file. If no name is given a name with extension msh is generated.

setOptions(self, algorithm=None, optimize_quality=True, smoothing=1, curvature_based_element_size=False)

 

Sets options for the mesh generator.

Overrides: design.Design.setOptions

setScriptFileName(self, name=None)

 

Sets the filename for the gmsh input script. If no name is given a name with extension geo is generated.