Changeset 6190 for anuga_work/production/patong/run_patong.py
- Timestamp:
- Jan 18, 2009, 12:53:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/patong/run_patong.py
r6178 r6190 1 """Script for running a tsunami inundation scenario for P erth, WA, Australia.1 """Script for running a tsunami inundation scenario for Patong Beach, Thailand. 2 2 3 3 The scenario is defined by a triangular mesh created from project.polygon, 4 the elevation data is compiled into a pts file through build_perth.py 5 and a simulated tsunami is generated through an sts file from build_boundary.py. 4 the elevation data is compiled into a pts file through build_patong.py 5 and a simulated tsunami for the 2004 event is generated through 6 an sts file from build_boundary.py. 6 7 7 8 Input: sts file (build_boundary.py) 8 pts file (build_p erth.py)9 pts file (build_patong.py) 9 10 information from project file 10 11 Outputs: sww file stored in project.output_run_time_dir … … 12 13 on the outputs of this script 13 14 14 Ole Nielsen and Duncan Gray, GA - 2005, Jane Sexton, Nick Bartzis, GA - 200615 Ole Nielsen, Jane Sexton and Kristy Van Putten - 200816 15 """ 17 16 … … 27 26 28 27 # Related major packages 29 from anuga.shallow_water import Domain 30 from anuga.shallow_water import Dirichlet_boundary 31 from anuga.shallow_water import File_boundary 32 from anuga.shallow_water import Reflective_boundary 33 from anuga.shallow_water import Field_boundary 34 from anuga.shallow_water.data_manager import export_grid, create_sts_boundary, csv2building_polygons 35 from anuga.shallow_water import create_domain_from_regions 28 from anuga.interface import create_domain_from_regions 29 from anuga.interface import Domain 30 from anuga.interface import Dirichlet_boundary 31 from anuga.interface import File_boundary 32 from anuga.interface import Reflective_boundary 33 from anuga.interface import Field_boundary 34 from anuga.interface import export_grid, create_sts_boundary 35 from anuga.interface import csv2building_polygons 36 36 37 from anuga.shallow_water.data_manager import start_screen_catcher, copy_code_files,store_parameters 37 from anuga.caching import myhash38 from anuga.damage_modelling.inundation_damage import add_depth_and_momentum2csv, inundation_damage39 38 from anuga.fit_interpolate.benchmark_least_squares import mem_usage 40 39 from anuga.utilities.polygon import read_polygon, plot_polygons, polygon_area, is_inside_polygon … … 178 177 179 178 for t in domain.evolve(yieldstep=project.yieldstep, 180 finaltime=project.finaltime) 179 finaltime=project.finaltime): 181 180 print domain.timestepping_statistics() 182 181 print domain.boundary_statistics(tags='ocean')
Note: See TracChangeset
for help on using the changeset viewer.