source: trunk/anuga_core/documentation/user_manual/anuga_installation_guide.tex @ 7951

Last change on this file since 7951 was 7951, checked in by habili, 14 years ago

Manual updated to reflect changes in 1.2.0

  • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
File size: 12.6 KB
Line 
1\documentclass{manual}
2
3\title{ANUGA Installation Guide}
4
5\usepackage{graphicx}
6\usepackage{hyperref}
7
8% Please at least include a long-lived email address;
9% the rest is at your discretion.
10\authoraddress{Geoscience Australia \\
11  Email: \email{anuga@ga.gov.au}
12}
13
14%Draft date
15\date{\today}                   % update before release!
16                % Use an explicit date so that reformatting
17                % doesn't cause a new date to be used.  Setting
18                % the date to \today can be used during draft
19                % stages to make it easier to handle versions.
20
21               
22\input{version} % Get version info - this file may be modified by
23                % update_anuga_user_manual.py - if not a dummy
24                % will be used.
25                               
26
27\makeindex          % tell \index to actually write the .idx file
28%\makemodindex          % If this contains a lot of module sections.
29
30
31
32\begin{document}
33\maketitle
34
35
36
37% This makes the contents more accessible from the front page of the HTML.
38\ifhtml
39\chapter*{Front Matter\label{front}}
40\fi
41
42
43
44
45\chapter{Introduction}
46
47This document outlines the procedure for installing the Anuga toolbox.
48All components are licensed as open source and readily available from the net.
49It is assumed that the reader is familiar with the Python programming language
50and the process of downloading, installing and unpacking files into directories.
51
52
53\section{System requirements}
54\label{sec:requirements}
55
56To run ANUGA you will need a Windows PC (XP, Vista or 7) or a Linux PC with at
57least 512MB RAM.  As ANUGA is a memory-intensive numerical system, more memory is better than less.
58
59The viewer (Windows only) requires a graphics adapter that
60is OpenGL compatible. It has been tested with ATI FireGL X1 cards
61and the NVIDIA family. It may not work with other cards such as those from the
62Intel(R) 82915G Express chipset family.
63
64The instructions below are written for the numpy version of ANUGA.  ANUGA changed from
65relying on the Numeric package to the numpy package early in July, 2009.  If you have a Numeric ANUGA,
66you should refer to the installation instructions for that version.  The last Numeric version of
67ANUGA had a build number of 7163.
68
69Where the text below refers to a specific package file such as \code{python-2.5.msi} you will find that
70file in a download area linked through the \emph{numpy_support_software} link on the page
71\url{https://datamining.anu.edu.au/anuga/wiki/NumpyInstall}.
72
73
74\section{Installation}
75
76Below are the install procedures for Windows XP, Windows Vista, Windows 7 (all 32 bit) and Linux (32 and 64 bit).
77
78\subsection{Quick install - Windows XP (32 bit)}
79\label{sec:winxp}
80
81If you already have previous versions of Python, ANUGA support software or the ANUGA source code installed
82on the target machine, start off by uninstalling them. Next, download the latest version of the ANUGA
83Windows installer from \url{http://sourceforge.net/projects/anuga/files/}. The Windows installer will
84install Python, MingW (select the "Minimal" install), NumPy, NetCDF, Scientific Python, Matplotlib, the
85ANUGA source code and the viewer (animate). Note that you will need an internet connection to install MingW.
86
87After all the necessary packages have been installed, the installer will proceed to compile the ANUGA C code,
88run the test suite (optional) and then run a series of validation examples (optional). This may take some time.
89Try the demonstrations provided in the ANUGA directory \code{anuga\_demos} (discussed in the ANUGA user manual at
90\url{https://datamining.anu.edu.au/anuga/attachment/wiki/WikiStart/anuga_user_manual-1.2.0.pdf})
91and view the resulting \code{.sww} files with the ANUGA viewer.
92
93
94
95%To run the ANUGA against the Okushiri Island wave tank validation dataset
96%(\url{http://www.cee.cornell.edu/longwave})
97%go to \code{anuga_validation}
98% into
99%any directory and run the scripts \code{create_okushiri.py},
100%\code{run_okushiri.py} and \code{compare_timeseries.py}.  See also the
101%\code{README.txt} file that comes with the validation scripts for more
102%details.
103
104\subsection{Quick install - Windows Vista and 7}
105\label{sec:winvista}
106
107The installation of the support software and the ANUGA software should be the same as for Windows XP above.
108The installation and use of ANUGA under Windows Vista and 7 have not been heavily tested.  Feedback on any aspect
109of using ANUGA under Vista or 7 is welcomed.
110
111\subsection{Quick install - Linux}
112\label{sec:linux}
113
114Please note that the following applies only to Ubuntu 10.04 (\"Lucid Lynx\"). We currently do not
115support any other Linux distributions.
116
117\subsubsection{Method 1}
118
119Choose the appropriate deb package for your architecture, download and use the package installer to install.
120
121i386: \url{https://sourceforge.net/projects/anuga/files/anuga_ubuntu_package/python-anuga_1.2.0-0ubuntu3_i386.deb/download}\\
122AMD64: \url{https://sourceforge.net/projects/anuga/files/anuga_ubuntu_package/python-anuga_1.2.0-0ubuntu3_amd64.deb/download}
123
124\subsubsection{Method 2}
125
126Open a terminal and enter:
127\begin{verbatim}
128sudo add-apt-repository ppa:anuga/ppa
129sudo apt-get update
130sudo apt-get install python-anuga
131\end{verbatim}
132
133\subsubsection{Method 3}
134
135Add the following lines to your \code{/etc/apt/sources.list}:
136\begin{verbatim}
137deb http://ppa.launchpad.net/anuga/ppa/ubuntu lucid main
138deb-src http://ppa.launchpad.net/anuga/ppa/ubuntu lucid main
139\end{verbatim}
140Download the ANUGA key from \url{https://datamining.anu.edu.au/anuga/raw-attachment/wiki/WikiStart/anuga.key}. You can add this key with:
141\begin{verbatim}
142sudo apt-key add anuga.key
143\end{verbatim}
144or go to System -$>$ Administration -$>$ Software Sources -$>$ Authentication -$>$ Import Key File
145
146Open a terminal and enter:
147\begin{verbatim}
148sudo apt-get update
149sudo apt-get install python-anuga
150\end{verbatim}
151
152
153
154
155\section{Optional but recommended software}
156This software is not required to run the ANUGA toolbox, but it is recommended.
157\begin{itemize}
158  \item psyco. Speeds up ANUGA by about 30\%, so is strongly recommended.
159    Under Ubuntu install either through Synaptic or by:
160    \begin{verbatim}sudo apt-get install python-psyco\end{verbatim}
161    Under Windows install the file \code{psyco-1.6.win32-py25.exe}
162    which you can find on the \url{http://psyco.sourceforge.net/download.html} page.
163
164  \item VTK. The Visualization Toolkit. Under Ubuntu install either through Synaptic or by:
165    \begin{verbatim}sudo apt-get install python-vtk\end{verbatim}
166    Under Windows install the file \code{vtk-5.4.2-win32.exe}
167    from the \url{http://www.vtk.org/VTK/resources/software.html} page.
168\end{itemize}
169
170
171
172\section{Testing}
173
174In the ANUGA root directory, run the test suite:
175\begin{verbatim}
176python test_all.py
177\end{verbatim}
178ANUGA has been succesfully installed if the tests pass as follows:
179\begin{verbatim}
180  ...
181  test_data_manager.py
182  test_interpolate_sww.py
183  test_mesh.py
184  test_mesh_interface.py
185  test_triangmodule.py
186  test_triangmoduleII.py
187  test_advection.py
188.................................................................................
189.................................................................................
190.................................................................................
191.................................................................................
192.................................................................................
193.................................................................................
194.................................................................................
195..........................
196----------------------------------------------------------------------
197Ran 593 tests in 42.712s
198
199OK
200\end{verbatim}
201
202Note that if psycho is not installed, a number of psycho related warnings will appear. These warnings
203can be ignored.
204
205%\section{Other stuff to be included}
206%
207%\begin{verbatim}
208%Install tortoise from downloads (ITs didn't integrate wih explorer).
209%In settings set proxy to proxy.agso.gov.au  8080
210%%
211%
212%Install swollen from latest distro (in subversion)
213%
214%
215%\end{verbatim}
216
217
218\appendix
219\chapter{Miscellaneous procedures}
220\section{Setting the PATH on Windows}
221\label{sec:setwindowspath}
222
223The Windows one-click installer should automatically set the necessary PATH
224environment "System variables". However, in case you do not have
225permission to modify the system variable, then the method of setting the PATH environment "User variable"
226for Windows XP is shown here. Setting the variable for Windows Vista should be similar.
227
228\setlength\fboxsep{0pt}
229\setlength\fboxrule{1.0pt}
230
231First, open the Control Panel:
232\begin{figure}[ht]
233  \centerline{\fbox{\includegraphics[scale=0.75]{installgraphics/winsetpath1.png}}}
234%  \caption{Run Control Panel from the Start menu}
235  \label{fig:winsetpath1}
236\end{figure}
237
238Next, start the System applet:
239\begin{figure}[ht]
240  \centerline{\fbox{\includegraphics[scale=0.75]{installgraphics/winsetpath2.png}}}
241%  \caption{Start the System applet}
242  \label{fig:winsetpath2}
243\end{figure}
244
245\pagebreak
246
247Select the \code{Advanced} tab in the System Properties window:
248\begin{figure}[ht]
249  \centerline{\includegraphics[scale=0.5]{installgraphics/winsetpath3.png}}
250%  \caption{Select the Advanced tab}
251  \label{fig:winsetpath3}
252\end{figure}
253
254%\pagebreak
255
256Press the \code{Environment Variables} button in the \code{Advanced} tab:
257\begin{figure}[ht]
258  \centerline{\includegraphics[scale=0.5]{installgraphics/winsetpath4.png}}
259%  \caption{Press the Environment Variables button}
260  \label{fig:winsetpath4}
261\end{figure}
262
263\pagebreak
264
265If the \code{PATH} variable is not defined in the 'User variables' or 'System variables' windows,
266press the \code{New} button in either of the two windows (for a personal machine, choose the 'System variables' window).
267
268If \code{PATH} already exists in the 'User variable' or 'System variables' window,
269select the row with the \code{PATH} variable name in the appropriate window
270and press the \code{Edit} button next to the \code{New} button in that window:
271\begin{figure}[ht]
272  \centerline{\includegraphics[scale=0.5]{installgraphics/winsetpath5.png}}
273%  \caption{Press the New button}
274  \label{fig:winsetpath5}
275\end{figure}
276
277%\pagebreak
278
279You will be shown the editor window whichever button you pressed in the above step. If the \code{Variable name} box is empty
280type in the name \code{PATH}.  In the \code{Variable value} box type the value you want the \code{PATH} variable to have.  If there
281is already some text in the box, place your additional value at the front of the existing value, not forgetting to terminate your additional
282string with the ';' character. The final value string must be a series of directory names seperated by ';' characters:
283\begin{figure}[ht]
284  \centerline{\includegraphics[scale=0.75]{installgraphics/winsetpath6.png}}
285%  \caption{Modifying the PATH value}
286  \label{fig:winsetpath6}
287\end{figure}
288
289When you are finished, press the \code{OK} button and exit from the applet.
290
291\pagebreak
292
293\section{Associating animate.exe with a .sww file}
294\label{sec:assocanimatesww}
295
296The one-click installer should associate animate.exe with .sww files automatically. However, the method of associating
297\code{animate.exe} with a \code{.sww} file manually is shown here for Windows XP.
298A similar process should work for Windows Vista.
299
300Double left-click on any \code{.sww} file.  This brings up a dialog because Windows doesn't know how to open the file:
301\begin{figure}[ht]
302  \centerline{\fbox{\includegraphics[scale=0.5]{installgraphics/winassoc1.png}}}
303%  \caption{Try to open the .sww file}
304  \label{fig:winassoc1}
305\end{figure}
306
307Select the "\code{Select the program from a list}" radiobutton and press the \code{OK} button:
308\begin{figure}[ht]
309  \centerline{\includegraphics[scale=0.5]{installgraphics/winassoc2.png}}
310%  \caption{Select the program from a list}
311  \label{fig:winassoc2}
312\end{figure}
313
314\pagebreak
315
316Press the \code{Browse...} button to find the \code{animate.exe} program:
317\begin{figure}[ht]
318  \centerline{\includegraphics[scale=0.5]{installgraphics/winassoc3.png}}
319%  \caption{Find animate.exe program}
320  \label{fig:winassoc3}
321\end{figure}
322
323Navigate to the \code{C:$\backslash$Program Files$\backslash$anuga_viewer} directory:
324\begin{figure}[ht]
325  \centerline{\includegraphics[scale=0.5]{installgraphics/winassoc4.png}}
326%  \caption{Navigate into Program Files|anuga_viewer directory}
327  \label{fig:winassoc4}
328\end{figure}
329
330\pagebreak
331
332Select \code{animate.exe} and press the \code{Open} button:
333\begin{figure}[ht]
334  \centerline{\includegraphics[scale=0.5]{installgraphics/winassoc5.png}}
335%  \caption{Select the animate.exe program press Open}
336  \label{fig:winassoc5}
337\end{figure}
338
339Finally, press the \code{OK} button:
340\begin{figure}[ht]
341  \centerline{\includegraphics[scale=0.5]{installgraphics/winassoc6.png}}
342%  \caption{Press the OK button}
343  \label{fig:winassoc6}
344\end{figure}
345
346
347\end{document}
Note: See TracBrowser for help on using the repository browser.