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

Holes

The example included below shows how to use esys.pycad to create a 2-D mesh in the shape of a trapezoid with a cut-out area, see Figure 5.2:
\begin{python}
from esys.pycad import *
from esys.pycad.gmsh import Design
from ...
...n(d)
...
This example is included with the software in trapezoid.py in the example directory.

A CurveLoop is used to connect several lines into a single curve. It is used in the example above to create the trapezoidal outline for the grid and also for the triangular cutout area. You can use any number of lines when creating a CurveLoop, but the end of one line must be identical to the start of the next.

Figure 5.3: Three dimensional Block.
\includegraphics[width=100mm]{figures/brick}


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