next up previous contents index
Next: Models Up: The Module esys.pycad Previous: Properties   Contents   Index

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[19] . 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{memberdesc}[Design]{GMSH}
gmsh file format~\cite{GMSH}.
\end{memberdesc}


\begin{memberdesc}[Design]{IDEAS}
I-DEAS universal file format~\cite{IDEAS}.
\end{memberdesc}


\begin{memberdesc}[Design]{VRML}
VRML file format, \cite{VRML}.
\end{memberdesc}


\begin{memberdesc}[Design]{STL}
STL file format~\cite{STL}.
\end{memberdesc}

\begin{memberdesc}[Design]{NASTRAN}
NASTRAN bulk data format~\cite{NASTRAN}.
\end{memberdesc}


\begin{memberdesc}[Design]{MEDIT}
Medit file format~\cite{MEDIT}.
\end{memberdesc}


\begin{memberdesc}[Design]{CGNS}
CGNS file format~\cite{CGNS}.
\end{memberdesc}


\begin{memberdesc}[Design]{PLOT3D}
Plot3D file format~\cite{PLOT3D}.
\end{memberdesc}


\begin{memberdesc}[Design]{DIFFPACK}
Diffpack 3D file format~\cite{DIFFPACK}.
\end{memberdesc}


\begin{memberdesc}[Design]{DELAUNAY}
the Delauny triangulator, see {\it Gmsh}\cite{GMSH}\index{Gmsh} \xspace ,~\cite{TETGEN}.
\end{memberdesc}


\begin{memberdesc}[Design]{MESHADAPT}
the gmsh triangulator, see {\it Gmsh}\cite{GMSH}\index{Gmsh} \xspace .
\end{memberdesc}


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


\begin{methoddesc}[Design]{generate}{}
generates the mesh file. The data are are written to the file \var{Design.getMeshFileName}.
\end{methoddesc}


\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{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 ...
... is generated.
The format is set by \var{Design.setFileFormat}.
\end{methoddesc}


\begin{methoddesc}[Design]{getMeshFileName}{}
returns the name of the mesh file
\end{methoddesc}


\begin{methoddesc}[Design]{addItems}{*items}
adds the tuple of var{items}. An it...
...lass{PropertySet} \xspace are not considered in the messing.
}
\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...
...method returns a file name for a 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{optimize_quality=\constant{Tru...
...pace switches on the usage of quadrilateral/hexahedra elements.
\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}


\begin{methoddesc}[Design]{setFileFormat}{\optional{format=\var{Design.GMSH}}}
s...
...var{Design.CGNS},
\var{Design.PLOT3D} or
\var{Design.DIFFPACK}.
\end{methoddesc}


\begin{methoddesc}[Design]{getFileFormat}{}
returns the file format.
\end{methoddesc}


next up previous contents index
Next: Models Up: The Module esys.pycad Previous: Properties   Contents   Index
esys@esscc.uq.edu.au