Changeset 4088


Ignore:
Timestamp:
Dec 18, 2006, 3:00:34 PM (18 years ago)
Author:
sexton
Message:

tex usermanual updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/documentation/user_manual/anuga_user_manual.tex

    r4062 r4088  
    863863introduces a second example, \file{runcairns.py}.  This refers to
    864864a real-life scenario, in which the domain of interest surrounds the
    865 Cairns region. A
     865Cairns region. Two scenarios are given; firstly, a
    866866hypothetical tsunami wave is generated by a submarine mass failure
    867 situated on the edge of the continental shelf.
     867situated on the edge of the continental shelf, and secondly, a fixed wave
     868of given amplitude and period is introduced through the boundary.
    868869
    869870\subsection{Overview}
     
    915916maximal area of a triangle used for triangulation---and a triangular
    916917mesh is created inside the polygon using a mesh generation engine.
    917 On any given platform, the same mesh will be returned. Figure
    918 \ref{fig:pentagon} shows a simple example of this, in which the
    919 triangulation is carried out within a pentagon.
    920 
    921 
    922 \begin{figure}[hbt]
    923 
    924   \caption{Mesh points are created inside the polygon}
    925   \label{fig:pentagon}
    926 \end{figure}
     918On any given platform, the same mesh will be returned.
     919%Figure
     920%\ref{fig:pentagon} shows a simple example of this, in which the
     921%triangulation is carried out within a pentagon.
     922
     923
     924%\begin{figure}[hbt]
     925
     926%  \caption{Mesh points are created inside the polygon}
     927  %\label{fig:pentagon}
     928%\end{figure}
    927929
    928930Boundary tags are not restricted to \code{`left'}, \code{`bottom'},
     
    935937increase in resolution. This is done by allowing the user to specify
    936938a number of \emph{interior polygons}, each with a specified
    937 resolution, see Figure \ref{fig:interior meshes}. It is also
     939resolution. It is also
    938940possible to specify one or more `holes'---that is, areas bounded by
    939941polygons in which no triangulation is required.
    940942
    941 \begin{figure}[hbt]
    942 
    943 
    944 
    945   \caption{Interior meshes with individual resolution}
    946   \label{fig:interior meshes}
    947 \end{figure}
     943%\begin{figure}[hbt]
     944%  \caption{Interior meshes with individual resolution}
     945%  \label{fig:interior meshes}
     946%\end{figure}
    948947
    949948In its general form, \code{pmesh} takes for its input a bounding
     
    958957list of pairs \code{[polygon, resolution]}, specifying the interior
    959958polygons and their resolutions.
    960 
    961 In practice, the details of the polygons used are read from a
    962 separate file \file{project.py}. Here is a complete listing of
    963 \file{project.py}:
    964 
    965 \verbatiminput{demos/cairns/project.py}
    966959
    967960The resulting mesh is output to a \emph{mesh file}\index{mesh
     
    973966\code{.msh} is used. See Section \ref{sec:file formats} (page
    974967\pageref{sec:file formats}) for more on file formats.)
     968
     969In practice, the details of the polygons used are read from a
     970separate file \file{project.py}. Here is a complete listing of
     971\file{project.py}:
     972
     973\verbatiminput{demos/cairns/project.py}
    975974
    976975Figure \ref{fig:cairns3d} illustrates the landscape of the region
     
    10191018The statement
    10201019
     1020
    10211021{\small \begin{verbatim}
    10221022remainder_res = 10000000 
     
    10411041
    10421042
     1043
    10431044\subsection{Initialising the Domain}
    10441045
     
    10931094For the scenario we are modelling in this case, we use a callable
    10941095object \code{tsunami\_source}, assigned by means of a function
    1095 \function{slump\_tsunami}. This is similar to how we set elevation in
     1096\function{slide\_tsunami}. This is similar to how we set elevation in
    10961097\file{runup.py} using a function---however, in this case the
    10971098function is both more complex and more interesting.
     
    11661167very similar to the corresponding step in \file{runup.py}. For the slide
    11671168scenario,
    1168 the simulation is run for 5000 seconds with the output stored every five seconds.
     1169the simulation is run for 5000 seconds with the output stored every ten seconds.
    11691170For this example, we choose to apply the slide at 60 seconds into the simulation.
    11701171
     
    11731174
    11741175   
    1175     for t in domain.evolve(yieldstep = 5, finaltime = 60):
     1176    for t in domain.evolve(yieldstep = 10, finaltime = 60):
    11761177            domain.write_time()
    11771178            domain.write_boundary_statistics(tags = 'ocean_east')     
     
    11841185            domain.set_quantity('stage', slide + thisstagestep)
    11851186   
    1186         # save every two mins leading up to wave approaching land
    1187         for t in domain.evolve(yieldstep = 5, finaltime = 5000,
     1187        for t in domain.evolve(yieldstep = 10, finaltime = 5000,
    11881188                               skip_initial_step = True):
    11891189            domain.write_time()
     
    12701270each desired quantity for each point location.
    12711271
    1272 verbatiminput{demos/cairns/GetTimeseries.py}
     1272\verbatiminput{demos/cairns/GetTimeseries.py}
    12731273
    12741274Here, the time series for the quantities stage and speed will be generated for
    1275 each gauge defined in the gauge file defined in file{\project.py}. As an example output,
    1276 Figure \ref{fig:trinitybeach} shows the time series for the quantity stage for the
    1277 Trinity Beach location.
     1275each gauge defined in the gauge file. Typically, stage is used over depth, particularly
     1276for offshore gauges. In being able to interpret the output for onshore gauges however,
     1277we use depth rather than stage. As an example output,
     1278Figure \ref{fig:reef} shows the time series for the quantity stage (or depth for
     1279onshore gauges) for the Elford Reef location for the slide scenario.
    12781280
    12791281\begin{figure}[hbt]
    1280 %\centerline{\includegraphics[scale=0.5]{graphics/}}
    1281 \caption{Time series information of the quantity stage for the Trinity Beach location.}
    1282 \label{fig:trinitybeach}
     1282\centerline{\includegraphics[scale=0.5]{graphics/gaugeElfordReefslide.png}}
     1283\caption{Time series information of the quantity depth for the Elford Reef location for the slide scenario.}
     1284\label{fig:reef}
    12831285\end{figure}
     1286
     1287Note, the user may choose to compare the output for each scenario by updating
     1288the \code{production\_dirs} as required. For example,
     1289
     1290{\small \begin{verbatim}
     1291
     1292        production_dirs = {'slide': 'Slide',
     1293                           'fixed_wave': 'Fixed Wave'}
     1294       
     1295\end{verbatim}}
     1296
     1297In this case, the time series output for Elford Reef would be:
     1298
     1299\begin{figure}[hbt]
     1300\centerline{\includegraphics[scale=0.5]{graphics/gaugeElfordReefboth.png}}
     1301\caption{Time series information of the quantity depth for the Elford Reef location for the slide and fixed wave scenario.}
     1302\label{fig:reefboth}
     1303\end{figure}
     1304
    12841305
    12851306%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Note: See TracChangeset for help on using the changeset viewer.