/[escript]/branches/stage3.1/doc/user/guide_defs.tex
ViewVC logotype

Contents of /branches/stage3.1/doc/user/guide_defs.tex

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2864 - (show annotations)
Fri Jan 22 03:09:55 2010 UTC (9 years, 8 months ago) by gross
Original Path: trunk/doc/user/guide_defs.tex
File MIME type: application/x-tex
File size: 16494 byte(s)
projector added to users guide
1
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % Copyright (c) 2003-2009 by University of Queensland
5 % Earth Systems Science Computational Center (ESSCC)
6 % http://www.uq.edu.au/esscc
7 %
8 % Primary Business: Queensland, Australia
9 % Licensed under the Open Software License version 3.0
10 % http://www.opensource.org/licenses/osl-3.0.php
11 %
12 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13
14
15 \usepackage{subfigure}
16 \usepackage{epsfig}
17 \usepackage{graphicx,color}
18 \usepackage{makeidx} % handle the index properly
19 \usepackage{xspace} % handle spaces after commands more nicely
20 % use the ams math stuff, as it makes the maths easier to code, and
21 % nicer output than the standard LaTeX stuff
22 \usepackage{amsmath,amsfonts,amssymb} % this is handy for mathematicians and physici
23 % see http://www.ams.org/tex/amslatex.html
24 \usepackage{alltt} % handy verbatim stuff
25
26
27 % define some handy commands for escript stuff
28 \newcommand{\LINUX}{{\it Linux}\xspace}
29 \newcommand{\WINDOWS}{{\it MS Windows}\xspace}
30 \newcommand{\PYTHON}{{\it python}\xspace}
31 % \newcommand{\netCDF}{{\it netCDF}\cite{NETCDF}\index{netCDF} \xspace}
32 \newcommand{\netCDF}{{\it netCDF}\index{netCDF}\xspace}
33 \newcommand{\escript}{\module{esys.escript}\xspace}
34 \newcommand{\finley}{\module{esys.finley}\xspace}
35 \newcommand{\esys}{\module{esys}\xspace}
36 \newcommand{\pyvisi}{\module{esys.pyvisi}\xspace}
37 \newcommand{\pycad}{\module{esys.pycad}\xspace}
38 \newcommand{\gmsh}{\module{esys.pycad.gmsh}\xspace}
39 \newcommand{\gmshextern}{{\it Gmsh}\cite{GMSH}\index{Gmsh} \xspace}
40 \newcommand{\SCIPY}{{\it SciPy}\cite{SCIPY}\index{SciPy} \xspace}
41 \newcommand{\env}[1]{\textbf{\mbox{#1}}\index{Environment!#1}}
42 % \newcommand{\MPI}{{\it MPI}\xspace\index{Message Passing Interface!MPI}\cite{MPI}\xspace}
43 % \newcommand{\OPENMP}{{\it OpenMP}\xspace\index{OpenMP!threading}\cite{OPENMP}\xspace}
44 \newcommand{\MPI}{{\it MPI}\xspace\index{Message Passing Interface!MPI}\xspace}
45 \newcommand{\OPENMP}{{\it OpenMP}\xspace\index{OpenMP!threading}\xspace}
46 \newcommand{\linearPDEs}{\module{esys.escript.linearPDEs}\xspace}
47 \newcommand{\LinearPDE}{\class{LinearPDE}\xspace}
48 \newcommand{\modelframe}{\module{esys.modelframe}\xspace}
49 \newcommand{\pdetools}{\module{esys.escript.pdetools}\xspace}
50 \newcommand{\esysxml}{{\it esysxml}}
51
52 \newcommand{\SolverOptions}{\class{SolverOptions}\xspace}
53 \newcommand{\Poisson}{\class{Poisson}\xspace}
54 \newcommand{\Helmholtz}{\class{Helmholtz}\xspace}
55 \newcommand{\Lame}{\class{Lame}\xspace}
56 \newcommand{\Data}{\class{Data}\xspace}
57 \newcommand{\EmptyData}{empty \class{Data}\index{empty Data}\xspace}
58 \newcommand{\Domain}{\class{Domain}\xspace}
59 \newcommand{\gnuplot}{{\it gnuplot} \cite{GNUPLOT}\index{visualization!gnuplot}\index{gnuplot}}
60 \newcommand{\finleyelement}[1]{{\it #1}\index{finley!#1}}
61 \newcommand{\False}{\constant{False}\xspace}
62 \newcommand{\True}{\constant{True}\xspace}
63 \newcommand{\PCG}{\member{SolverOptions.PCG}\xspace\index{linear solver!PCG}\index{PCG}}
64 \newcommand{\BiCGStab}{\member{SolverOptions.BICGSTAB}\xspace\index{linear solver!BiCGStab}\index{BiCGStab}}
65 \newcommand{\Direct}{\member{SolverOptions.DIRECT}\xspace\index{linear solver!Direct}\index{Direct solver}}
66 \newcommand{\GMRES}{\member{SolverOptions.GMRES}\xspace\index{linear solver!GMRES}\index{GMRES}}
67 \newcommand{\PRESTWENTY}{\member{SolverOptions.PRES20}\xspace\index{linear solver!PRES20}\index{PRES20}}
68 \newcommand{\JACOBI}{\member{SolverOptions.JACOBI}\xspace\index{preconditioner!Jacobi}\index{Jacobi}}
69 \newcommand{\ILU}{\member{SolverOptions.ILU0}\xspace\index{preconditioner!ILU0}\index{ILU0}}
70 \newcommand{\ILUT}{\member{SolverOptions.ILUT}\xspace\index{preconditioner!ILUT}\index{ILUT}}
71 \newcommand{\RILU}{\member{SolverOptions.RILU}\xspace\index{preconditioner!RILU}\index{RILU}}
72 \newcommand{\LUMPING}{\member{SolverOptions.LUMPING}\xspace\index{linear solver!lumping}\index{lumping}}
73 \newcommand{\NOREORDERING}{\member{SolverOptions.NO\hackscore REORDERING}\xspace}
74 \newcommand{\MINIMUMFILLIN}{\member{SolverOptions.MINIMUM\hackscore FILL\hackscore IN}\xspace
75 \index{linear solver!minimum fill-in ordering}\index{minimum fill-in ordering}}
76 \newcommand{\NESTEDDESCTION}{\member{SolverOptions.NESTED\hackscore DISSECTION}\xspace\index{linear solver!nested dissection ordering}\index{nested dissection}}
77 \newcommand{\AMG}{\member{SolverOptions.AMG}\xspace\index{linear solver!AMG}\index{algebraic Multi-grid}\index{AMG}}
78 \newcommand{\GAUSSSEIDEL}{\member{SolverOptions.GAUSS\hackscore SEIDEL}\xspace\index{linear solver!Gauss-Seidel}\index{preconditioner!Gauss-Seidel}\index{Gauss-Seidel Scheme}}
79 \newcommand{\MKL}{\texttt{MKL}\xspace\index{packages!MKL}\index{MKL}}
80 \newcommand{\UMFPACK}{\texttt{UMFPACK}\xspace\index{packages!UMFPACK}\index{UMFPACK}}
81 \newcommand{\PASO}{\texttt{PASO}\xspace\index{packages!PASO}\index{PASO}}
82
83 \newcommand{\FunctionSpace}{\class{FunctionSpace}\xspace}
84 \newcommand{\Operator}{\class{Operator}\xspace}
85 \newcommand{\SolutionFS}{solution \class{FunctionSpace}\index{solution}\xspace}
86 \newcommand{\ReducedSolutionFS}{reduced solution \class{FunctionSpace}\index{solution!reduced}\xspace}
87 \newcommand{\FunctionOnBoundary}{boundary \class{FunctionSpace}\xspace}
88 \newcommand{\Function}{general \class{FunctionSpace}\xspace}
89 \newcommand{\FunctionOnContactZero}{contact \class{FunctionSpace} on side 0\xspace}
90 \newcommand{\FunctionOnContactOne}{contact \class{FunctionSpace} on side 1\xspace}
91 \newcommand{\ContinuousFunction}{continuous \class{FunctionSpace}\xspace}
92 \newcommand{\RankOne}{{rank-1 \Data object}\xspace}
93 \newcommand{\RankTwo}{{rank-2 \Data object}\xspace}
94 \newcommand{\RankThree}{{rank-3 \Data object}\xspace}
95 \newcommand{\RankFour}{{rank-4 \Data object}\xspace}
96 \newcommand{\Tensor}{{tensor \Data object}\xspace}
97 \newcommand{\Vector}{{vector \Data object}\xspace}
98 \newcommand{\Scalar}{{scalar \Data object}\xspace}
99 \newcommand{\DataSample}{{data sample}\index{data sample}\xspace}
100 \newcommand{\DataSamplePoints}{{data sample points}\index{data sample!points}\xspace}
101 \newcommand{\numpy}{\module{numpy}\xspace}
102 \newcommand{\numpyNDA}{\module{numpy.\class{ndarray}\xspace}}
103
104 \newcommand{\Shape}{shape\xspace\index{shape}}
105 \newcommand{\Rank}{rank\xspace\index{shape}}
106 \newcommand{\ExampleDirectory}{example directory\xspace}
107 \newcommand{\ReferenceGuide}{\url{http://esys.esscc.uq.edu.au/docs.html}\xspace}
108 \newcommand{\Point}{\class{Point} \xspace}
109 \newcommand{\PropertySet}{\class{PropertySet} \xspace}
110 \newcommand{\Design}{\class{Design} \xspace}
111 \newcommand{\TagMap}{\class{TagMap} \xspace}
112 \newcommand{\ManifoldOneD}{\class{Manifold1D} \xspace}
113 \newcommand{\ManifoldTwoD}{\class{Manifold2D} \xspace}
114 \newcommand{\ManifoldThreeD}{\class{Manifold3D} \xspace}
115
116 % handy commands for pyvisi
117 \newcommand{\VTK}{{\it VTK}\index{visualization!VTK}\index{VTK}\xspace}
118 \newcommand{\MATPLOTLIB}{\module{matplotlib}\index{visualization!matplotlib}\index{matplotlib}\xspace}
119 \newcommand{\VTKUrl}{\url{http://www.vtk.org/}\index{visualization!VTK}\index{VTK}\xspace}
120 \newcommand{\VisIt}{{\it VisIt}\index{visualization!VisIt}\index{VisIt}\xspace}
121 \newcommand{\mayavi}{{\it mayavi}\index{visualization!mayavi}\index{mayavi}\xspace}
122 \newcommand{\OpenDX}{{\it OpenDX} \index{visualization!OpenDX}\index{OpenDX}\cite{OPENDX}\xspace}
123
124 \newcommand{\Scene}{\class{Scene}\xspace}
125 \newcommand{\Camera}{\class{Camera}\xspace}
126 \newcommand{\Light}{\class{Light}\xspace}
127 \newcommand{\DataCollector}{\class{DataCollector}\xspace}
128 \newcommand{\ImageReader}{\class{ImageReader}\xspace}
129 \newcommand{\TextTwoD}{\class{Text2D}\xspace}
130 \newcommand{\ActorTwoD}{\class{Actor2D}\xspace}
131 \newcommand{\ActorThreeD}{\class{Actor3D}\xspace}
132 \newcommand{\Transform}{\class{Transform}\xspace}
133 \newcommand{\Clipper}{\class{Clipper}\xspace}
134 \newcommand{\Map}{\class{Map}\xspace}
135 \newcommand{\MapOnPlaneCut}{\class{MapOnPlaneCut}\xspace}
136 \newcommand{\MapOnPlaneClip}{\class{MapOnPlaneClip}\xspace}
137 \newcommand{\MapOnScalarClip}{\class{MapOnScalarClip}\xspace}
138 \newcommand{\MapOnScalarClipWithRotation}{\class{MapOnScalarClipWithRotation}\xspace}
139 \newcommand{\GlyphThreeD}{\class{Glyph3D}\xspace}
140 \newcommand{\MaskPoints}{\class{MaskPoints}\xspace}
141 \newcommand{\Velocity}{\class{Velocity}\xspace}
142 \newcommand{\VelocityOnPlaneCut}{\class{VelocityOnPlaneCut}\xspace}
143 \newcommand{\VelocityOnPlaneClip}{\class{VelocityOnPlaneClip}\xspace}
144 \newcommand{\Sphere}{\class{Sphere}\xspace}
145 \newcommand{\TensorGlyph}{\class{TensorGlyph}\xspace}
146 \newcommand{\Ellipsoid}{\class{Ellipsoid}\xspace}
147 \newcommand{\EllipsoidOnPlaneCut}{\class{EllipsoidOnPlaneCut}\xspace}
148 \newcommand{\EllipsoidOnPlaneClip}{\class{EllipsoidOnPlaneClip}\xspace}
149 \newcommand{\ContourModule}{\class{ContourModule}\xspace}
150 \newcommand{\Contour}{\class{Contour}\xspace}
151 \newcommand{\ContourOnPlaneCut}{\class{ContourOnPlaneCut}\xspace}
152 \newcommand{\ContourOnPlaneClip}{\class{ContourOnPlaneClip}\xspace}
153 \newcommand{\PointSource}{\class{PointSource}\xspace}
154 \newcommand{\StreamLineModule}{\class{StreamLineModule}\xspace}
155 \newcommand{\Tube}{\class{Tube}\xspace}
156 \newcommand{\StreamLine}{\class{StreamLine}\xspace}
157 \newcommand{\Warp}{\class{Warp}\xspace}
158 \newcommand{\Carpet}{\class{Carpet}\xspace}
159 \newcommand{\PlaneSource}{\class{PlaneSource}\xspace}
160 \newcommand{\Image}{\class{Image}\xspace}
161 \newcommand{\Logo}{\class{Logo}\xspace}
162 \newcommand{\ImageReslice}{\class{ImageReslice}\xspace}
163 \newcommand{\Position}{\class{Position}\xspace}
164 \newcommand{\DataSetMapper}{\class{DataSetMapper}\xspace}
165 \newcommand{\Legend}{\class{Legend}\xspace}
166 \newcommand{\ScalarBar}{\class{ScalarBar}\xspace}
167 \newcommand{\Movie}{\class{Movie}\xspace}
168 \newcommand{\CubeSource}{\class{CubeSource}\xspace}
169 \newcommand{\Rectangle}{\class{Rectangle}\xspace}
170 \newcommand{\LocalPosition}{\class{LocalPosition}\xspace}
171 \newcommand{\GlobalPosition}{\class{GlobalPosition}\xspace}
172 \newcommand{\Rotation}{\class{Rotation}\xspace}
173 \newcommand{\thumbnailwidth}{50mm}
174
175 % default width for figures
176 \newcommand{\figwidth}{100mm}
177 % commands useful in cross-referencing
178 \newcommand {\Ref}[1] {Reference~\cite{#1}}
179 \newcommand {\Sec}[1] {Section~\ref{#1}}
180 \newcommand {\App}[1] {Appendix~\ref{#1}}
181 \newcommand {\Chap}[1] {Chapter~\ref{#1}}
182 \newcommand {\etal} {\emph{~et~al.}}
183 \newcommand {\fig}[1] {Figure~\ref{#1}}
184 \newcommand {\eqn}[1] {Equation~(\ref{#1})}
185 \newcommand {\tab}[1] {Table~\ref{#1}}
186
187 % this stops one figure taking up a whole page and lets more text onto
188 % the one page when a figure exists
189 \renewcommand{\floatpagefraction}{0.8} % Default = 0.5
190
191 % improved version of caption handling
192 \usepackage{ccaption}
193 \captionnamefont{\scshape}
194 \captionstyle{}
195 \makeatletter
196 \renewcommand{\fnum@figure}[1]{\quad\small\textsc{\figurename~\thefigure}:}
197 \renewcommand{\@makecaption}[2]{%
198 \vskip\abovecaptionskip
199 \sbox\@tempboxa{#1: #2}%
200 \ifdim \wd\@tempboxa >\hsize
201 \def\baselinestretch{1}\@normalsize
202 #1: #2\par
203 \def\baselinestretch{1.5}\@normalsize
204 \else
205 \global \@minipagefalse
206 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
207 \fi
208 \vskip\belowcaptionskip}
209 \makeatother
210
211 % \usepackage{fancyvrb} % fancy verbatim stuff. Needed so code below goes
212 %%% this code grabbed from the PyScript docs
213 %%% pyscript.sourceforge.net
214
215 % --------------------------------------------------------------
216 % Code format within \Verb
217 % --------------------------------------------------------------
218
219 % \definecolor{pycolor}{rgb}{0,0.4,0}
220
221 %% \DefineVerbatimEnvironment{python}{Verbatim}
222 %% {frame=leftline,framerule=.5mm,rulecolor=\color{pycolor},
223 %% formatcom=\color{pycolor}\small,fontshape=rm}
224
225 %\DefineShortVerb[formatcom=\color{dgreen}\small,fontshape=sl]{\|}
226
227 % \RecustomVerbatimCommand{\Verb}{Verb}{formatcom=\color{pycolor}\small,fontshape=rm}
228
229 %%% end of grabbed code
230
231 % this is for when one uses pdflatex and therefore needs to load pdf
232 % figures into \includegraphics
233 \ifpdf
234 \DeclareGraphicsExtensions{.pdf} % this command defined in graphicx
235 \pdfcompresslevel=9 % 0: no compression, 9: highest compression
236 % or, set compress_level 9 in file pdftex.cfg
237 \else
238 \DeclareGraphicsExtensions{.eps}
239 \fi
240
241 % defines the colour for the background of code examples
242 \definecolor{LightGrey}{gray}{0.9}
243
244 % add the listings package to pretty print the code output
245 \usepackage{listings}
246
247
248 %Some colour definitions added to keep pdflatex happy
249 %I make no claim that these values are particularly good
250 \definecolor{Purple}{rgb}{0.7, 0, 0.6}
251 \definecolor{Tan}{rgb}{0.5,0.5,0.5}
252 \definecolor{BrickRed}{rgb}{0.7, 0.2, 0.2}
253 \definecolor{Black}{rgb}{0, 0, 0}
254
255 % All the \color{x} used to be \color[named]{x}
256 %end color defs
257
258 \lstdefinestyle{myC++}{%
259 %\lstset{%
260 language=C++,
261 showstringspaces=false,
262 basicstyle=\small\ttfamily,
263 commentstyle=\color{BrickRed}\ttfamily,
264 keywordstyle=\color{Purple}\ttfamily,
265 %identifierstyle=\color{Blue}\ttfamily,
266 %functionstyle=\color{Blue}\ttfamily,
267 %typestyle=\color{ForestGreen}\ttfamily,
268 stringstyle=\color{Tan}\ttfamily,%
269 morekeywords={,complex,}%
270 frame=none,%
271 backgroundcolor=\color{LightGrey}%
272 }
273
274 \lstdefinestyle{myMatlab}{%
275 %\lstset{%
276 language=Matlab,
277 showstringspaces=false,
278 basicstyle=\small\ttfamily,
279 commentstyle=\color{BrickRed}\ttfamily,
280 keywordstyle=\color{Purple}\ttfamily,
281 %identifierstyle=\color{Blue}\ttfamily,
282 %functionstyle=\color{Blue}\ttfamily,
283 %typestyle=\color{ForestGreen}\ttfamily,
284 stringstyle=\color{Tan}\ttfamily,%
285 frame=none,%
286 backgroundcolor=\color{LightGrey}%
287 }
288
289 \lstdefinestyle{myScilab}{%
290 %\lstset{%
291 language=Scilab,
292 showstringspaces=false,
293 basicstyle=\small\ttfamily,
294 commentstyle=\color{BrickRed}\ttfamily,
295 keywordstyle=\color{Purple}\ttfamily,
296 %identifierstyle=\color{Blue}\ttfamily,
297 %functionstyle=\color{Blue}\ttfamily,
298 %typestyle=\color{ForestGreen}\ttfamily,
299 stringstyle=\color{Tan}\ttfamily,%
300 frame=none,%
301 backgroundcolor=\color{LightGrey}%
302 }
303
304 \lstdefinestyle{myShell}{%
305 %\lstset{%
306 language=ksh,
307 showstringspaces=false,
308 basicstyle=\small\ttfamily,
309 commentstyle=\color{Black}\ttfamily,
310 keywordstyle=\color{Black}\ttfamily,
311 %identifierstyle=\color{Blue}\ttfamily,
312 %functionstyle=\color{Blue}\ttfamily,
313 %typestyle=\color{ForestGreen}\ttfamily,
314 stringstyle=\color{Black}\ttfamily,%
315 frame=none,%
316 backgroundcolor=\color{LightGrey}%
317 }
318
319 \lstdefinestyle{myPython}{%
320 %\lstset{%
321 language=python,
322 showstringspaces=false,
323 basicstyle=\small\ttfamily,
324 commentstyle=\color{BrickRed}\ttfamily,
325 keywordstyle=\color{Purple}\ttfamily,
326 %identifierstyle=\color{Blue}\ttfamily,
327 %functionstyle=\color{Blue}\ttfamily,
328 %typestyle=\color{ForestGreen}\ttfamily,
329 stringstyle=\color{Tan}\ttfamily,%
330 frame=none,%
331 %backgroundcolor=\color{LightGrey}%
332 }
333
334 \lstdefinestyle{myhtml}{%
335 %\lstset{%
336 language=xml,
337 showstringspaces=false,
338 basicstyle=\small\ttfamily,
339 commentstyle=\color{BrickRed}\ttfamily,
340 keywordstyle=\color{Purple}\ttfamily,
341 %identifierstyle=\color{Blue}\ttfamily,
342 %functionstyle=\color{Blue}\ttfamily,
343 %typestyle=\color{ForestGreen}\ttfamily,
344 stringstyle=\color{Tan}\ttfamily,
345 morekeywords={,simulation,prop_dim,error_check,stochastic,%
346 globals,field,dimensions,lattice,domains,samples,vector,%
347 components,fourier_space,sequence,integrate,algorithm,%
348 interval,k_operators,constant,operator_names,vectors,%
349 output,filename,group,sampling,moments,benchmark,use_double,%
350 use_wisdom,use_prefs,binary_output,cycles,filter,post_propagation,%
351 default_value,argv,arg,iterations,cross_propagation,%
352 use_mpi,paths,seed,noises,author,description,name,type,%
353 }
354 frame=none,%
355 %framerule=2pt,%
356 backgroundcolor=\color{LightGrey}%
357 }
358
359 % this implements producing nice code blocks
360 % it also saves time, typing and
361 % *should* reduce errors in the text by removing doubling up of code
362 \lstnewenvironment{xmdsCode}[1][]{\lstset{style=myhtml}\lstset{#1}}{}
363
364 % this implements nicely formatted shell code
365 \lstnewenvironment{shellCode}[1][]{\lstset{style=myShell}\lstset{#1}}{}
366
367 % this implements nicely formatted Perl code
368 \lstnewenvironment{perlCode}[1][]{\lstset{style=myPerl}\lstset{#1}}{}
369
370 % this implements nicely formatted Python code
371 \lstnewenvironment{python}[1][]{\lstset{style=myPython}\lstset{#1}}{}
372
373 % this implements nicely formatted C++ code
374 \lstnewenvironment{CCode}{\lstset{style=myC++}}{}
375
376 % this implements nicely formatted matlab code
377 \lstnewenvironment{matlabCode}{\lstset{style=myMatlab}}{}
378
379 % this implements nicely formatted scilab code
380 \lstnewenvironment{scilabCode}{\lstset{style=myScilab}}{}
381
382 %Ensures that latex doesn't have an error if we don't specify the version
383 \providecommand{\RepVersion}{Unknown\xspace}
384 % to set this value use:
385 % (pdf)latex '\newcommand{\RepVersion}{version\xspace}\input{guide.tex}'
386 % as your command-line

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26