Changeset 6298 for anuga_work/production/australia_ph2/sydney/run_model.py
- Timestamp:
- Feb 9, 2009, 4:26:06 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/australia_ph2/sydney/run_model.py
r6287 r6298 1 """Run a tsunami inundation scenario for Busselton, WA, Australia.1 """Run a tsunami inundation scenario for sydney region, NSW, Australia. 2 2 3 3 The scenario is defined by a triangular mesh created from project.polygon, the 4 elevation data is compiled into a pts file through build_ busselton.py and a4 elevation data is compiled into a pts file through build_sydney.py and a 5 5 simulated tsunami is generated through an sts file from build_boundary.py. 6 6 7 7 Input: sts file (build_boundary.py for respective event) 8 pts file (build_ busselton.py)8 pts file (build_sydney.py) 9 9 information from project file 10 10 Outputs: sww file stored in project.output_run_time_dir … … 32 32 from anuga.interface import create_sts_boundary 33 33 from anuga.interface import csv2building_polygons 34 from file_length import file_length 34 35 35 36 from anuga.shallow_water.data_manager import start_screen_catcher … … 70 71 # Number of boundary segments 71 72 N = len(event_sts)-1 73 # Number of landward_boundary points 74 M = file_length(project.landward_boundary) 75 print 'M',M 72 76 73 77 # Boundary tags refer to project.landward_boundary 74 78 # 4 points equals 5 segments start at N 75 boundary_tags={'back': [N+1,N+2,N+3,N+4, N+5],76 'side': [N,N+ 6],79 boundary_tags={'back': range(N+1,N+M), 80 'side': [N,N+M], 77 81 'ocean': range(N)} 78 82 … … 80 84 domain = create_domain_from_regions(bounding_polygon_sts, 81 85 boundary_tags=boundary_tags, 82 maximum_triangle_area=project. res_poly_all,86 maximum_triangle_area=project.bounding_maxarea, 83 87 interior_regions=project.interior_regions, 84 88 mesh_filename=project.meshes,
Note: See TracChangeset
for help on using the changeset viewer.