Changeset 4088
- Timestamp:
- Dec 18, 2006, 3:00:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/documentation/user_manual/anuga_user_manual.tex
r4062 r4088 863 863 introduces a second example, \file{runcairns.py}. This refers to 864 864 a real-life scenario, in which the domain of interest surrounds the 865 Cairns region. A865 Cairns region. Two scenarios are given; firstly, a 866 866 hypothetical tsunami wave is generated by a submarine mass failure 867 situated on the edge of the continental shelf. 867 situated on the edge of the continental shelf, and secondly, a fixed wave 868 of given amplitude and period is introduced through the boundary. 868 869 869 870 \subsection{Overview} … … 915 916 maximal area of a triangle used for triangulation---and a triangular 916 917 mesh 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} 918 On 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} 927 929 928 930 Boundary tags are not restricted to \code{`left'}, \code{`bottom'}, … … 935 937 increase in resolution. This is done by allowing the user to specify 936 938 a number of \emph{interior polygons}, each with a specified 937 resolution , see Figure \ref{fig:interior meshes}. It is also939 resolution. It is also 938 940 possible to specify one or more `holes'---that is, areas bounded by 939 941 polygons in which no triangulation is required. 940 942 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} 948 947 949 948 In its general form, \code{pmesh} takes for its input a bounding … … 958 957 list of pairs \code{[polygon, resolution]}, specifying the interior 959 958 polygons and their resolutions. 960 961 In practice, the details of the polygons used are read from a962 separate file \file{project.py}. Here is a complete listing of963 \file{project.py}:964 965 \verbatiminput{demos/cairns/project.py}966 959 967 960 The resulting mesh is output to a \emph{mesh file}\index{mesh … … 973 966 \code{.msh} is used. See Section \ref{sec:file formats} (page 974 967 \pageref{sec:file formats}) for more on file formats.) 968 969 In practice, the details of the polygons used are read from a 970 separate file \file{project.py}. Here is a complete listing of 971 \file{project.py}: 972 973 \verbatiminput{demos/cairns/project.py} 975 974 976 975 Figure \ref{fig:cairns3d} illustrates the landscape of the region … … 1019 1018 The statement 1020 1019 1020 1021 1021 {\small \begin{verbatim} 1022 1022 remainder_res = 10000000 … … 1041 1041 1042 1042 1043 1043 1044 \subsection{Initialising the Domain} 1044 1045 … … 1093 1094 For the scenario we are modelling in this case, we use a callable 1094 1095 object \code{tsunami\_source}, assigned by means of a function 1095 \function{sl ump\_tsunami}. This is similar to how we set elevation in1096 \function{slide\_tsunami}. This is similar to how we set elevation in 1096 1097 \file{runup.py} using a function---however, in this case the 1097 1098 function is both more complex and more interesting. … … 1166 1167 very similar to the corresponding step in \file{runup.py}. For the slide 1167 1168 scenario, 1168 the simulation is run for 5000 seconds with the output stored every fiveseconds.1169 the simulation is run for 5000 seconds with the output stored every ten seconds. 1169 1170 For this example, we choose to apply the slide at 60 seconds into the simulation. 1170 1171 … … 1173 1174 1174 1175 1175 for t in domain.evolve(yieldstep = 5, finaltime = 60):1176 for t in domain.evolve(yieldstep = 10, finaltime = 60): 1176 1177 domain.write_time() 1177 1178 domain.write_boundary_statistics(tags = 'ocean_east') … … 1184 1185 domain.set_quantity('stage', slide + thisstagestep) 1185 1186 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, 1188 1188 skip_initial_step = True): 1189 1189 domain.write_time() … … 1270 1270 each desired quantity for each point location. 1271 1271 1272 verbatiminput{demos/cairns/GetTimeseries.py}1272 \verbatiminput{demos/cairns/GetTimeseries.py} 1273 1273 1274 1274 Here, 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. 1275 each gauge defined in the gauge file. Typically, stage is used over depth, particularly 1276 for offshore gauges. In being able to interpret the output for onshore gauges however, 1277 we use depth rather than stage. As an example output, 1278 Figure \ref{fig:reef} shows the time series for the quantity stage (or depth for 1279 onshore gauges) for the Elford Reef location for the slide scenario. 1278 1280 1279 1281 \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} 1283 1285 \end{figure} 1286 1287 Note, the user may choose to compare the output for each scenario by updating 1288 the \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 1297 In 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 1284 1305 1285 1306 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Note: See TracChangeset
for help on using the changeset viewer.