source: trunk/anuga_documentation/user_manual/demos/cairns/project.py @ 8899

Last change on this file since 8899 was 8713, checked in by steve, 12 years ago

Looked to speed up check_integrity in neighbour_mesh.

File size: 3.6 KB
Line 
1""" Common filenames and locations for topographic data, meshes and outputs.
2    This file defines the parameters of the scenario you wish to run.
3"""
4
5import anuga
6
7
8#------------------------------------------------------------------------------
9# Runtime parameters
10#------------------------------------------------------------------------------
11cache = False
12verbose = True
13
14#------------------------------------------------------------------------------
15# Define scenario as either slide or fixed_wave. Choose one.
16#------------------------------------------------------------------------------
17scenario = 'fixed_wave' # Huge wave applied at the boundary
18#scenario = 'slide'       # Slide wave form applied inside the domain
19
20#------------------------------------------------------------------------------
21# Filenames
22#------------------------------------------------------------------------------
23name_stem = 'cairns'
24meshname = name_stem + '.msh'
25
26# Filename for locations where timeseries are to be produced
27gauge_filename = 'gauges.csv'
28
29#------------------------------------------------------------------------------
30# Domain definitions
31#------------------------------------------------------------------------------
32# bounding polygon for study area
33bounding_polygon = anuga.read_polygon('extent.csv')
34
35A = anuga.polygon_area(bounding_polygon) / 1000000.0
36print 'Area of bounding polygon = %.2f km^2' % A
37
38#------------------------------------------------------------------------------
39# Interior region definitions
40#------------------------------------------------------------------------------
41# Read interior polygons
42poly_cairns = anuga.read_polygon('cairns.csv')
43poly_island0 = anuga.read_polygon('islands.csv')
44poly_island1 = anuga.read_polygon('islands1.csv')
45poly_island2 = anuga.read_polygon('islands2.csv')
46poly_island3 = anuga.read_polygon('islands3.csv')
47poly_shallow = anuga.read_polygon('shallow.csv')
48
49# Optionally plot points making up these polygons
50#plot_polygons([bounding_polygon, poly_cairns, poly_island0, poly_island1,
51#               poly_island2, poly_island3, poly_shallow],
52#               style='boundingpoly', verbose=False)
53
54# Define resolutions (max area per triangle) for each polygon
55# Make these numbers larger to reduce the number of triangles in the model,
56# and hence speed up the simulation
57
58# bigger base_scale == less triangles
59base_scale = 100000
60base_scale = 100000
61default_res = 100 * base_scale   # Background resolution
62islands_res = base_scale
63cairns_res = base_scale
64shallow_res = 5 * base_scale
65
66# Define list of interior regions with associated resolutions
67interior_regions = [[poly_cairns,  cairns_res],
68                    [poly_island0, islands_res],
69                    [poly_island1, islands_res],
70                    [poly_island2, islands_res],
71                    [poly_island3, islands_res],
72                    [poly_shallow, shallow_res]]
73
74#------------------------------------------------------------------------------
75# Data for exporting ascii grid
76#------------------------------------------------------------------------------
77eastingmin = 363000
78eastingmax = 418000
79northingmin = 8026600
80northingmax = 8145700
81
82#------------------------------------------------------------------------------
83# Data for landslide
84#------------------------------------------------------------------------------
85slide_origin = [451871, 8128376]   # Assume to be on continental shelf
86slide_depth = 500.
87
88
89#------------------------------------------------------------------------------
90# Data for Tides
91#------------------------------------------------------------------------------
92tide = 0.0
Note: See TracBrowser for help on using the repository browser.