source: anuga_core/documentation/user_manual/anuga_installation_guide.tex @ 4638

Last change on this file since 4638 was 4169, checked in by ole, 17 years ago

Updated installation guide based on feedback from Brad Weir

  • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
File size: 10.0 KB
Line 
1\documentclass{manual}
2
3
4\title{ANUGA Installation Guide}
5
6\author{Ole Nielsen, Duncan Gray, Jane Sexton}
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{ole.nielsen@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\release{1.0}           % release version; this is used to define the
22                % \version macro
23
24\makeindex          % tell \index to actually write the .idx file
25%\makemodindex          % If this contains a lot of module sections.
26
27
28
29\begin{document}
30\maketitle
31
32
33
34% This makes the contents more accessible from the front page of the HTML.
35\ifhtml
36\chapter*{Front Matter\label{front}}
37\fi
38
39
40
41
42\chapter{Introduction}
43
44This document outlines the required software for installing the Anuga toolbox.
45All components are licensed as open source and readily available from the net.
46It is assumed that the reader is familiar with the Python programming language and the process of downloading, installing and unpacking files into directories.
47
48
49\section{System requirements}
50\label{sec:requirements}
51
52To run ANUGA you will need a Windows (2000 or XP) or a Linux PC with at
53least 512MB RAM. The viewer (Windows only) requires a graphics adapter that
54is OpenGL compatible. It has been tested with e.g. ATI FireGL X1
55and the NVIDIA family. It may not work with cards such as those from the
56Intel(R) 82915G Express Chipset Family.
57
58
59
60\section{Quick install (Windows only)}
61
62This section provides the quickest path to getting ANUGA up and running on a Windows machine.
63For Linux and for more details please refer to Section \ref{sec:prerequisites}.
64
65\begin{enumerate} 
66 
67  \item Install Python pre-requisites: The Enthought version of Python2.4, Scientific Python
68  and the NetCDF library\footnote{Separate installation of Scientific Python and NetCDF
69  will become unneccesary once Enthought sorts out netcdf support
70  (see \url{https://svn.enthought.com/enthought/ticket/917})}. These are available from either
71  \begin{itemize} 
72    \item The supplied ANUGA distribution as under the folder pre_requisites (Install in the order \code{enthon-python2.4-1.0.0.exe},
73    \code{ScientificPython-2.4.9.win32-py2.4.exe} and the unpack \code{netcdf-3.6.1-beta1-win32dll.zip} into \code{C:\bin} as suggested below.
74    \item The WEB:
75    \begin{itemize} 
76      \item Enthought version of Python2.4: \url{http://code.enthought.com/enthon/}.
77      \item Scientific Python:\\
78       \url{http://sourcesup.cru.fr/frs/download.php/745/ScientificPython-2.4.9.win32-py2.4.exe}
79      \item NETCDF: download the file netcdf-3.6.1-beta1-win32dll.zip from
80      \url{http://www.unidata.ucar.edu/software/netcdf/binaries.html} (\url{ftp://ftp.unidata.ucar.edu/pub/netcdf/contrib/win32/netcdf-3.6.1-beta1-win32dll.zip}). Unpack this in a folder that is available on the system path. We suggest unpacking it into
81      \begin{verbatim} 
82      C:\bin
83      \end{verbatim} 
84    \end{itemize}   
85  \end{itemize}   
86 
87  \item Add the following to the PATH environment variable
88    \begin{verbatim}
89      PATH=C:\Python24;C:\Python24\Enthought\MingW\bin;C:\bin
90    \end{verbatim}   %C:\Program Files\anuga_viewer;
91  \item Unpack the ANUGA source code (\code{anuga-1.0_xxxx.tgz})
92  in the python site-packages
93  directory \code{C:$\backslash$Python24$\backslash$Lib$\backslash$site-packages}. This is often done in Windows by
94  double clicking on the tgz file and then select 'browse to' the destination directory.
95  \item In the ANUGA root directory (\code{C:$\backslash$Python24$\backslash$Lib$\backslash$site-packages$\backslash$anuga}),
96  run the compilation script (either from the commandline or by clicking on it):
97    {\small \begin{verbatim}
98        python compile_all.py
99    \end{verbatim}}
100  \item In the ANUGA root directory, run the test suite (e.g. by opening it with IDLE
101  and running the file)\footnote{If run on the commandline, this test suite will cause an error that has to do
102  with the atexit.py functionality of the logger. As long as all tests pass OK, you can safely ignore that error.}:
103    {\small \begin{verbatim}
104        python test_all.py
105    \end{verbatim}}
106    ANUGA has been succesfully installed if the tests pass.
107\end{enumerate}   
108
109To install the anuga\_viewer
110\begin{enumerate} 
111  \item Unpack the distribution (\code{anuga_viewer_1.0.tgz}) in
112    \begin{verbatim} 
113      C:\Program Files
114    \end{verbatim}
115  \item Double click on the test file
116    \begin{verbatim} 
117      C:\Program Files\anuga_viewer\cylinders.sww
118    \end{verbatim}       
119  \item and associate .sww files with the executable
120  \begin{verbatim} 
121    C:\Program Files\anuga_viewer\animate.exe
122  \end{verbatim}       
123\end{enumerate} 
124
125Try the demos provided in the ANUGA root directory
126(also discussed in the ANUGA user manual available with the distribution and also at
127\url{http://datamining.anu.edu.au/~ole/anuga/user_manual/anuga_user_manual.pdf}) and
128view the resulting sww files with the anuga\_viewer.
129
130To verify that the installed version of ANUGA validates satisfactorily
131against the Okushiri Island wave tank validation dataset
132(\url{http://www.cee.cornell.edu/longwave})
133unpack the distribution (\code{anuga_validation_1.0_xxxx.tgz}) into
134any directory and run the scripts \code{create_okushiri.py},
135\code{run_okushiri.py} and \code{compare_timeseries.py}.  See also the
136\code{README.txt} file that comes with the validation scripts for more
137details.
138
139
140\clearpage
141\section{Pre-requisites (software)}
142\label{sec:prerequisites}
143
144This and the following sections is for custom installations and
145installations using Linux.
146
147The ANUGA software core (shallow\_water, pmesh, least\_squares, ...) depends on the following software:
148\begin{itemize}
149  \item python 2.3 or later \url{http://www.python.org}/footnote{Note, the
150  dll python2X.dll is needed to compile ANUGA, but is not always
151  automatically added for versions 2.4 and above.  Install it into the
152  python2X directory, if you need it.}
153  \item python-numeric for Linux.  It's called Numeric in Windows. 
154  %\item python-dev (Interestingly, numeric seems to be installed as
155  %well) for Linux.  This is not necessary for Windows.
156  \item python-scientific (to provide python-netcdf) for Linux.  It's
157    called ScientificPython in Windows.
158  \item NETCDF.  Extract the file netcdf.dll, and put in C://Windows//System32// (Windows XP) or C://WINNT//System32 (Windows NT or 2000).     
159  \item A C compiler such as gcc (from GNU in case of Linux and MinGW
160  in case of Windows)
161  %\item scons for automatically compiling the distribution.
162\end{itemize}
163
164Note: All of these can be installed in one go on Windows platforms by using the Enthought Python
165distribution available at \url{http://code.enthought.com/enthon/}.
166
167\section{Recommended software}
168
169\begin{itemize}
170  \item psyco \url{http://psyco.sourceforge.net/index.html}: Speeds up anuga by about 30\%.
171  %\item visual python \url{http://vpython.org}
172  \item matplotlib (pylab) for quality 2d plotting (moving towards mandatory requirement and now part of Enthought.)
173  \item VTK \url{http://mayavi.sourceforge.net/dwnld/vtk/win32/} - also now part of Enthought.
174\end{itemize}
175
176
177
178\section{System configuration}
179
180
181The system path on Win32 architectures must contain the directories (this examples assumes the
182Enthought Python 2.4 distribution has been installed. Path names may vary depending on the
183exact configuration).
184\begin{verbatim}
185  PATH=C:\Python24;C:\Python24\Enthought\MingW\bin;C:\Program Files\anuga_viewer
186\end{verbatim}
187The path should be analoguous for Unix operating systems.
188
189If anuga is not installed in the python site-packages directory the root directory for all
190anuga/inundation modules must be on the pythonpath, e.g.\
191\begin{verbatim}
192PYTHONPATH=C:\anuga_core\source
193\end{verbatim}
194
195
196
197
198
199\section{Installation of source zip file}
200Get a source zip file, for example, anuga_source_3807.zip, and expand
201it in the python site-packages directory (\code{C:\\Python24\\Lib\\site-packages})
202
203In the ANUGA root directory (\code{C:\\Python24\\Lib\\site-packages\\anuga}),
204run the compilation script:
205{\small \begin{verbatim}
206  python compile_all.py
207\end{verbatim}}
208
209%or (in anuga_core)
210% scons install
211% scons -c #(clean)
212
213
214\subsection{Testing}
215
216In the ANUGA root directory, run the test suite:
217{\small \begin{verbatim}
218  python test_all.py
219\end{verbatim}}
220ANUGA has been succesfully installed if the tests pass as follows:
221
222{\tiny
223\begin{verbatim}
224  ...
225  test_data_manager.py
226  test_interpolate_sww.py
227  test_mesh.py
228  test_mesh_interface.py
229  test_triangmodule.py
230  test_triangmoduleII.py
231  test_advection.py
232............................................................................................................................................
233............................................................................................................................................
234............................................................................................................................................
235............................................................................................................................................
236.................................
237----------------------------------------------------------------------
238Ran 593 tests in 42.712s
239
240OK
241\end{verbatim} }
242
243
244
245%\section{Other stuff to be included}
246%
247%\begin{verbatim}
248%Install tortoise from downloads (ITs didn't integrate wih explorer).
249%In settings set proxy to proxy.agso.gov.au  8080
250%%
251%
252%Install swollen from latest distro (in subversion)
253%
254%
255%\end{verbatim}
256
257
258
259
260
261\end{document}
Note: See TracBrowser for help on using the repository browser.