Changeset 4869
- Timestamp:
- Nov 30, 2007, 4:02:48 PM (17 years ago)
- Location:
- anuga_core
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/documentation/user_manual/anuga_user_manual.tex
r4853 r4869 1271 1271 The user could develop a maximum absolute momentum or other expressions which can be 1272 1272 derived from the quantities. 1273 It must be noted here that depth is more meaningful when the elevation is positive 1274 (\code{depth} = \code{stage} &$-$& \code{elevation}) as it describes the water height 1275 above the available elevation. When the elevation is negative, depth is meauring the 1276 water height from the sea floor. With this in mind, maximum inundation maps are 1277 typically "clipped" to the coastline. However, the data input here did not contain a 1278 coastline. 1273 1279 1274 1280 \begin{figure}[hbt] … … 1310 1316 1311 1317 Here, the time series for the quantities stage and speed will be generated for 1312 each gauge defined in the gauge file. Typically, stage is used over depth, particularly 1313 for offshore gauges. In being able to interpret the output for onshore gauges however, 1314 we use depth rather than stage. As an example output, 1315 Figure \ref{fig:reef} shows the time series for the quantity stage (or depth for 1316 onshore gauges) for the Elford Reef location for the slide scenario. 1318 each gauge defined in the gauge file. As described earlie, depth is more meaningful 1319 for onshore gauges, and stage is more appropriate for offshore gauges. However, the 1320 function used to generate the time series information at each gauge will plot 1321 stage or depth depending on the elevation at that gauge location. Note, if this is 1322 not required, users may update the relevation section of the function. 1323 1324 As an example output, 1325 Figure \ref{fig:reef} shows the time series for the quantity stage for the 1326 Elford Reef location for each scenario (the elevation at this location is negative, 1327 thereby showing stage). 1317 1328 1318 1329 \begin{figure}[hbt] 1319 \centerline{\includegraphics[scale=0.5]{graphics/gaugeElfordReefslide.png}} 1320 \caption{Time series information of the quantity depth for the Elford Reef location for the slide scenario.} 1330 \centerline{\includegraphics[scale=0.5]{graphics/gaugeElfordReefboth.png}} 1331 \caption{Time series information of the quantity stage for the Elford Reef location for the 1332 fixed wave and slide scenario.} 1321 1333 \label{fig:reef} 1322 1334 \end{figure} 1323 1335 1324 Note, the user may choose to compare the output for each scenario by updating 1325 the \code{production\_dirs} as required. For example, 1326 1327 {\small \begin{verbatim} 1328 1329 production_dirs = {'slide': 'Slide', 1330 'fixed_wave': 'Fixed Wave'} 1331 1332 \end{verbatim}} 1333 1334 In this case, the time series output for Elford Reef would be: 1336 By contrast, the time series for depth is shown for the onshore location of the Cairns 1337 Airport for each scenario is Figure \ref{fig:airportboth}. 1335 1338 1336 1339 \begin{figure}[hbt] 1337 \centerline{\includegraphics[scale=0.5]{graphics/gaugeElfordReefboth.png}} 1338 \caption{Time series information of the quantity depth for the Elford Reef location for the slide and fixed wave scenario.} 1339 \label{fig:reefboth} 1340 \centerline{\includegraphics[scale=0.5]{graphics/gaugeCairnsAirportboth.png}} 1341 \caption{Time series information of the quantity depth for the Cairns Airport 1342 location for the slide and fixed wave scenario.} 1343 \label{fig:airportboth} 1340 1344 \end{figure} 1341 1345 -
anuga_core/documentation/user_manual/demos/cairns/GetTimeseries.py
r4856 r4869 21 21 22 22 # nominate directory location of sww file with associated attribute 23 production_dirs = { #'slide': 'Slide',23 production_dirs = {'slide': 'Slide', 24 24 'fixed_wave': 'Fixed Wave'} 25 25 -
anuga_core/documentation/user_manual/demos/cairns/gauges.csv
r4021 r4869 3 3 360245.11,8142280.78,Trinity Beach,0 4 4 386133.51,8131751.05,Cairns Headland,0 5 4 25759.74,8128812.23,Elford Reef,05 430250,8128812.23,Elford Reef,0 6 6 367771.61,8133933.82,Cairns Airport,0 -
anuga_core/documentation/user_manual/demos/cairns/runcairns.py
r4858 r4869 28 28 from anuga.shallow_water import Time_boundary 29 29 from anuga.shallow_water import File_boundary 30 from anuga.shallow_water import Transmissive_Momentum_Set_Stage_boundary 30 31 from anuga.pmesh.mesh_interface import create_mesh_from_regions 31 32 from anuga.shallow_water.data_manager import convert_dem_from_ascii2netcdf … … 39 40 # Define scenario as either slide or fixed_wave. 40 41 #------------------------------------------------------------------------------ 41 #scenario = 'slide'42 scenario = 'fixed_wave'42 scenario = 'slide' 43 #scenario = 'fixed_wave' 43 44 44 45 if os.access(scenario, os.F_OK) == 0: … … 88 89 filename=meshname, 89 90 interior_regions=interior_regions, 90 use_cache= True,91 use_cache=False, 91 92 verbose=True) 92 93 … … 133 134 verbose=True, 134 135 alpha=0.1) 135 136 137 136 138 137 #------------------------------------------------------------------------------ … … 166 165 if scenario == 'fixed_wave': 167 166 Bw = Transmissive_Momentum_Set_Stage_boundary(domain = domain, 168 f =lambda t: [(60<t<3660)*50, 0, 0])167 function=lambda t: [(60<t<3660)*50, 0, 0]) 169 168 domain.set_boundary({'ocean_east': Bw, 170 169 'bottom': Bd, -
anuga_core/source/anuga/fit_interpolate/interpolate.py
r4856 r4869 558 558 559 559 if verbose is True: 560 from anuga.utilities.polygon import plot_polygons 561 #out_interp_pts = take(interpolation_points,[indices]) 562 title = 'Interpolation points fall outside specified mesh' 563 plot_polygons([mesh_boundary_polygon,interpolation_points,out_interp_pts], 564 ['line','point','outside'],figname='points_boundary_out',label=title,verbose=verbose) 560 import sys 561 if sys.platform == 'win32': 562 from anuga.utilities.polygon import plot_polygons 563 #out_interp_pts = take(interpolation_points,[indices]) 564 title = 'Interpolation points fall outside specified mesh' 565 plot_polygons([mesh_boundary_polygon,interpolation_points,out_interp_pts], 566 ['line','point','outside'],figname='points_boundary_out',label=title,verbose=verbose) 565 567 566 568 # Joaquim Luis suggested this as an Exception, so … … 574 576 # Plot boundary and interpolation points 575 577 if verbose is True: 576 from anuga.utilities.polygon import plot_polygons 577 title = 'Interpolation function: Polygon and interpolation points' 578 plot_polygons([mesh_boundary_polygon,interpolation_points], 579 ['line','point'],figname='points_boundary',label=title,verbose=verbose) 578 import sys 579 if sys.platform == 'win32': 580 from anuga.utilities.polygon import plot_polygons 581 title = 'Interpolation function: Polygon and interpolation points' 582 plot_polygons([mesh_boundary_polygon,interpolation_points], 583 ['line','point'],figname='points_boundary',label=title,verbose=verbose) 580 584 581 585 m = len(self.interpolation_points)
Note: See TracChangeset
for help on using the changeset viewer.