Interface to the mesh generation software

extensionesys.pycad.gmsh Python geometry description and meshing interface

The class and methods described here provide an interface to the mesh generation software, which is currently gmsh. This interface could be adopted to triangle or another mesh generation package if this is deemed to be desirable in the future.


\begin{classdesc}{Design}{
\optional{dim=3, \optional{element_size=1., \optional...
...ise they are removed when the instance of the class is deleted.
\end{classdesc}


\begin{methoddesc}[Design]{setDim}{\optional{dim=3}}
sets the spatial dimension which needs to be $1$, $2$\ or $3$.
\end{methoddesc}


\begin{methoddesc}[Design]{getDim}{}
returns the spatial dimension.
\end{methoddesc}


\begin{methoddesc}[Design]{setElementOrder}{\optional{order=1}}
sets the element order which needs to be $1$\ or $2$.
\end{methoddesc}


\begin{methoddesc}[Design]{getElementOrder}{}
returns the element order.
\end{methoddesc}


\begin{methoddesc}[Design]{setElementSize}{\optional{element_size=1}}
set the gl...
...ltiplied by the local scale. The element size must be positive.
\end{methoddesc}


\begin{methoddesc}[Design]{getElementSize}{}
returns the global element size.
\end{methoddesc}


\begin{memberdesc}[Design]{DELAUNAY}
the gmsh Delauny triangulator.
\end{memberdesc}


\begin{memberdesc}[Design]{TETGEN}
the TetGen~\cite{TETGEN} triangulator.
\end{memberdesc}


\begin{memberdesc}[Design]{NETGEN}
the NETGEN~\cite{NETGEN} triangulator.
\end{memberdesc}


\begin{methoddesc}[Design]{setKeepFilesOn}{}
work files are kept at the end of the generation.
\end{methoddesc}


\begin{methoddesc}[Design]{setKeepFilesOff}{}
work files are deleted at the end of the generation.
\end{methoddesc}


\begin{methoddesc}[Design]{keepFiles}{}
returns \constant{True}\xspace if work files are kept. Otherwise \constant{False}\xspace is returned.
\end{methoddesc}


\begin{methoddesc}[Design]{setScriptFileName}{\optional{name=None}}
set the file...
...if no name is given a name with extension ''geo'' is generated.
\end{methoddesc}


\begin{methoddesc}[Design]{getScriptFileName}{}
returns the name of the file for the gmsh script.
\end{methoddesc}


\begin{methoddesc}[Design]{setMeshFileName}{\optional{name=None}}
sets the name ...
...if no name is given a name with extension ''msh'' is generated.
\end{methoddesc}


\begin{methoddesc}[Design]{getMeshFileName}{}
returns the name of the file for the gmsh msh
\end{methoddesc}


\begin{methoddesc}[Design]{addItems}{*items}
adds the tuple of var{items}. An it...
...PropertySet} \xspace are not considered in the messing.
}
\par
\end{methoddesc}


\begin{methoddesc}[Design]{getItems}{}
returns a list of the items
\end{methoddesc}


\begin{methoddesc}[Design]{clearItems}{}
resets the items in design
\end{methoddesc}


\begin{methoddesc}[Design]{getMeshHandler}{}
returns a handle to the mesh. The c...
...d returns a file name for a gmsh file containing the mesh data.
\end{methoddesc}


\begin{methoddesc}[Design]{getScriptString}{}
returns the gmsh script to generate the mesh as a string.
\end{methoddesc}


\begin{methoddesc}[Design]{getCommandString}{}
returns the gmsh command used to generate the mesh as string.
\end{methoddesc}


\begin{methoddesc}[Design]{setOptions}{\optional{algorithm=None, \optional{ opti...
... sets the number of smoothing steps to be applied to the mesh.
\end{methoddesc}


\begin{methoddesc}[Design]{getTagMap}{}
returns a \class{TagMap} to map the name...
...ass{PropertySet} in the class to tag numbers generated by gmsh.
\end{methoddesc}

esys@esscc.uq.edu.au