source: trunk/anuga_core/demos/cairns/project.py @ 9067

Last change on this file since 9067 was 8846, checked in by steve, 12 years ago

Added parameter to just test the fitting

File size: 3.7 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
59just_fitting = False
60#base_scale = 25000 # 635763 # 112sec fit
61#base_scale = 50000 # 321403 # 69sec fit
62base_scale = 100000 # 162170 triangles # 45sec fit
63#base_scale = 400000 # 42093
64default_res = 100 * base_scale   # Background resolution
65islands_res = base_scale
66cairns_res = base_scale
67shallow_res = 5 * base_scale
68
69# Define list of interior regions with associated resolutions
70interior_regions = [[poly_cairns,  cairns_res],
71                    [poly_island0, islands_res],
72                    [poly_island1, islands_res],
73                    [poly_island2, islands_res],
74                    [poly_island3, islands_res],
75                    [poly_shallow, shallow_res]]
76
77#------------------------------------------------------------------------------
78# Data for exporting ascii grid
79#------------------------------------------------------------------------------
80eastingmin = 363000
81eastingmax = 418000
82northingmin = 8026600
83northingmax = 8145700
84
85#------------------------------------------------------------------------------
86# Data for landslide
87#------------------------------------------------------------------------------
88slide_origin = [451871, 8128376]   # Assume to be on continental shelf
89slide_depth = 500.
90
91
92#------------------------------------------------------------------------------
93# Data for Tides
94#------------------------------------------------------------------------------
95tide = 0.0
Note: See TracBrowser for help on using the repository browser.