# Changeset 3925

Ignore:
Timestamp:
Nov 7, 2006, 10:27:42 AM (16 years ago)
Message:

 r3924 \centerline{\includegraphics[width=75mm, height=75mm] %{examples/runupstart.eps}} {examples/bedslope_start.jpg}} {examples/bedslopestart.jpg}} \caption{Runup example viewed with Swollen} \centerline{ %\includegraphics[width=75mm, height=75mm]{examples/runupduring.eps} %\includegraphics[width=75mm, height=75mm]{examples/runupend.eps} \includegraphics[width=75mm, height=75mm]{examples/bedslope_during.jpg} \includegraphics[width=75mm, height=75mm]{examples/bedslope_end.jpg} \includegraphics[width=75mm, height=75mm]{examples/bedslopeduring.jpg} \includegraphics[width=75mm, height=75mm]{examples/bedslopeend.jpg} } Here is the code for \file{runcairns.py}: \verbatiminput{../../demos/runcarins.py} \verbatiminput{../../demos/runcairns.py} In discussing the details of this example, we follow the outline \pageref{sec:file formats}) for more on file formats.) The statements Figure \ref{fig:cairns3d} illustrates the landscape of the region for the Cairns example. Understanding the landscape is important in determining the location and resolution of interior polygons. The supporting data is found in the ASCII grid, \code{cairns.asc}, which has been sourced from the publically available Australian Bathymetry and Topography Grid 2005, \cite{grid250:grid250}. \begin{figure}[hbt] \centerline{\includegraphics[scale=0.5]{../../demos/cairns3.jpg}} \caption{Landscape of the Cairns scenario.} \label{fig:cairns3d} \end{figure} The following statements are used to read in the specific polygons from \code{project.cairns} and assign a defined resolution to each polygon. {\small \begin{verbatim} \end{verbatim}} are used to read in the specific polygons \code{project.cairns}, \code{project.poly_island0}, \code{project.poly_island1}, \code{project.poly_island2}, \code{project.poly_island3} and \code{project.poly_shallow} from \file{project.py} and assign a defined resolution to each. Figure \ref{fig:cairnspolys} Figure \ref{fig:cairnspolys} illustrates the polygons used for the Cairns scenario. \begin{figure}[hbt] \centerline{\includegraphics[width=75mm, height=75mm] {../../demos/cairns_model.jpg}} \caption{Interior and bounding polygons for the \code{runcairns.py} example.} \centerline{\includegraphics[scale=0.5] {../../demos/cairnsmodel.jpg}} \caption{Interior and bounding polygons for the Cairns example.} \label{fig:cairnspolys} \end{figure} is then used to create the mesh, taking the bounding polygon to be the polygon \code{demopoly} specified in \file{project.py}. the polygon \code{polyAll} specified in \file{project.py}. The argument \code{boundary\_tags} assigns a dictionary, whose keys are the names of the boundary tags used for the bounding polygon---\code{top'}, \code{ocean\_east'}, \code{bottom'}, and \code{lonshore'}--- and whose values identify the indices of the \code{onshore'}--- and whose values identify the indices of the segments associated with each of these tags. (The value associated with each boundary tag is a one-element list.)