/[escript]/trunk/doc/user/pycad.tex
ViewVC logotype

Diff of /trunk/doc/user/pycad.tex

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2694 by gross, Tue Sep 29 06:00:44 2009 UTC revision 2695 by gross, Tue Sep 29 06:29:12 2009 UTC
# Line 83  for the script file. In our case we use Line 83  for the script file. In our case we use
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 *
# Line 100  c=CurveLoop(l01,l12,l23,l30) Line 103  c=CurveLoop(l01,l12,l23,l30)
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)

Legend:
Removed from v.2694  
changed lines
  Added in v.2695

  ViewVC Help
Powered by ViewVC 1.1.26