next up previous contents index
Next: esys.pycad Classes Up: The Module esys.pycad Previous: Alternative File Formats   Contents   Index

Element Sizes

The element size used globally is defined by the element_size argument of the Design. The mesh generator will try to use this mesh size everywhere in the geometry. In some cases it can be desirable to use locally a finer mesh. A local refinement can be defined at each Point:
\begin{python}
p0=Point(0.,0.,0.,local_scale=0.01)
\end{python}
Here the mesh generator will create a mesh with an element size which is by the factor 0.01 times smaller than the global mesh size element_size=0.3, see Figure 5.4. The point where a refinement is defined must be a point of curve used to define the geometry.

Alternatively, one can define a mesh size along a curve by defining the number of elements to be used to subdivide the curve. For instance, to use $ 20$ element on line l23 on uses:
\begin{python}
l23=Line(p2, p3)
l23.setElementDistribution(20)
\end{python}
Setting the number of elements on a curve overwrites the global mesh size element_size. The result is shown in Figure 5.4.


next up previous contents index
Next: esys.pycad Classes Up: The Module esys.pycad Previous: Alternative File Formats   Contents   Index
esys@esscc.uq.edu.au