/[escript]/trunk/doc/cookbook/example09.tex
ViewVC logotype

Diff of /trunk/doc/cookbook/example09.tex

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

revision 3064 by ahallam, Thu Jul 15 02:58:23 2010 UTC revision 3067 by ahallam, Mon Jul 19 00:40:37 2010 UTC
# Line 137  domain=MakeDomain(d) Line 137  domain=MakeDomain(d)
137  domain.write(os.path.join(save_path,"example09m.fly"))  domain.write(os.path.join(save_path,"example09m.fly"))
138  \end{python}  \end{python}
139    
140    \begin{figure}[htp]
141    \begin{center}
142    \begin{subfigure}[Gmesh view of geometry only.]
143    {\label{fig:gmsh3dgeo}
144    \includegraphics[width=3.5in]{figures/gmsh/example09m.png}}
145    \end{subfigure}
146    \begin{subfigure}[Gmesh view of a 200m 2D mesh on the domain surfaces.]
147    {\label{fig:gmsh3dmsh}
148    \includegraphics[width=3.5in]{figures/gmsh/example09msh2d.png}}
149    \end{subfigure}
150    \begin{subfigure}[Gmesh view of a 200m 3D mesh on the domain volumes.]
151    {\label{fig:gmsh3dmsh}
152    \includegraphics[width=3.5in]{figures/gmsh/example09msh3d.png}}
153    \end{subfigure}
154    \end{center}
155    \end{figure}
156    \clearpage
157    
158  \section{Layer Cake Models}  \section{Layer Cake Models}
159  Whilst this type of model seems simple enough to construct for two layers,  Whilst this type of model seems simple enough to construct for two layers,
# Line 146  arguments and returns is available in th Line 163  arguments and returns is available in th
163  from pycad.  from pycad.
164  \begin{python}  \begin{python}
165  from esys.pycad import layer_cake  from esys.pycad import layer_cake
166    intfaces=[10,30,50,55,80,100,200,250,400,500]
167    
168    cmplx_domain=layer_cake.LayerCake(xwidth,ywidth,intfaces,200.0)
169    cmplx_domain.setScriptFileName(os.path.join(save_path,"example09lc.geo"))
170    cmplx_domain.setMeshFileName(os.path.join(save_path,"example09lc.msh"))
171    dcmplx=MakeDomain(cmplx_domain)
172    dcmplx.write(os.path.join(save_path,"example09lc.fly"))
173  \end{python}  \end{python}
174    
175    \begin{figure}[ht]
176    \begin{center}
177    \includegraphics[width=5in]{figures/gmsh/example09lc.png}
178    \caption{Example geometry using layer cake function.}
179    \label{fig:gmsh3dlc}
180    \end{center}
181    \end{figure}
182    \clearpage
183  \section{Troubleshooting Pycad}  \section{Troubleshooting Pycad}
184  There are some techniques which can be useful when trying to trouble shoot  There are some techniques which can be useful when trying to troubleshoot
185  problems with pycad.  problems with pycad. As mentioned earlier it is important to ensure the correct
186    directionality of your primatives when constructing more complicated domains. If
187    one cannot establist the tangent of a line or curveloop, or the normal of a
188    surface. These values can be checked by importing the geometry to gmesh and
189    applying the appropriate options.

Legend:
Removed from v.3064  
changed lines
  Added in v.3067

  ViewVC Help
Powered by ViewVC 1.1.26