next up previous contents index
Next: Element Sizes Up: The Module esys.pycad Previous: A 3D example   Contents   Index

Alternative File Formats

pycad supports other file formats in including I-DEAS universal file, VRML, Nastran and STL. The following example shows how to generate the STL file brick.stl:
\begin{python}
from esys.pycad.gmsh import Design
\par
des=Design(dim=3, element...
...leFormat(des.STL)
des.setMeshFileName(''brick.stl'')
des.generate()
\end{python}
The example script of the cube is included with the software in brick_stl.py in the example directory.

Figure: Local refinement at the origin by local_scale=0.01 with element_size=0.3 and number of elements on the top set to 10.
\includegraphics[width=100mm]{figures/refine1}


next up previous contents index
Next: Element Sizes Up: The Module esys.pycad Previous: A 3D example   Contents   Index
esys@esscc.uq.edu.au