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

Class Design

object --+
         |
        Design
Known Subclasses:

Template for a design which defines the input for a mesh generator.

Instance Methods [hide private]
 
__init__(self, dim=3, element_size=1.0, order=1, keep_files=False)
Initializes a design.
 
addItems(self, *items)
Adds items to the design.
 
clearItems(self)
Removes all items from the design.
 
getAllPrimitives(self)
Returns a list of all primitives used to create the design.
 
getDim(self, dim=3)
Returns the spatial dimension.
 
getElementOrder(self)
Returns the element order.
 
getElementSize(self)
Returns the global element size.
 
getItems(self)
Returns a list of the items used in the design.
 
getMeshHandler(self)
Returns a handle to a mesh meshing the design.
 
getTagMap(self)
Returns a TagMap to map the names of PropertySets to tags.
 
keepFiles(self)
Returns True if work files are kept, False otherwise.
 
setDim(self, dim=3)
Sets the spatial dimension.
 
setElementOrder(self, order=1)
Sets the element order.
 
setElementSize(self, element_size=1.0)
Sets the global element size.
 
setKeepFilesOff(self)
Work files are deleted at the end of the generation
 
setKeepFilesOn(self)
Work files are kept at the end of the generation.
 
setOptions(self, **kwargs)
Sets options of the mesh generator.

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

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 a design.

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

getAllPrimitives(self)

 

Returns a list of all primitives used to create the design. Each primitive appears once. The primitives are ordered by their order of generation.

getMeshHandler(self)

 

Returns a handle to a mesh meshing the design.

Note: this method has to be overwritten by a particular design implementation.

setOptions(self, **kwargs)

 

Sets options of the mesh generator.

Note: this method is typically overwritten by a particular design implementation.