83 |
\begin{python} |
\begin{python} |
84 |
d.setScriptFileName("quad.geo") |
d.setScriptFileName("quad.geo") |
85 |
\end{python} |
\end{python} |
86 |
|
It is also useful to check error messages generated during the mesh generation process. \gmshextern writes |
87 |
|
messages to the \file{.gmsh-errors} in your home directory. |
88 |
|
|
89 |
If we put everything together we get the script |
If we put everything together we get the script |
90 |
\begin{python} |
\begin{python} |
91 |
from esys.pycad import * |
from esys.pycad import * |
103 |
s=PlaneSurface(c) |
s=PlaneSurface(c) |
104 |
d=Design(dim=2,element_size=0.05) |
d=Design(dim=2,element_size=0.05) |
105 |
d.setScriptFileName("quad.geo") |
d.setScriptFileName("quad.geo") |
|
d.setMeshFileName("quad.msh") |
|
106 |
d.addItems(s) |
d.addItems(s) |
107 |
pl1=PropertySet("sides",l01,l23) |
pl1=PropertySet("sides",l01,l23) |
108 |
pl2=PropertySet("top_and_bottom",l12,l30) |
pl2=PropertySet("top_and_bottom",l12,l30) |