Ignore:
Timestamp:
Jan 18, 2009, 12:53:50 PM (15 years ago)
Author:
ole
Message:

Started anuga.interface module

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 Perth, WA, Australia.
     1"""Script for running a tsunami inundation scenario for Patong Beach, Thailand.
    22
    33The 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.
     4the elevation data is compiled into a pts file through build_patong.py
     5and a simulated tsunami for the 2004 event is generated through
     6an sts file from build_boundary.py.
    67
    78Input: sts file (build_boundary.py)
    8        pts file (build_perth.py)
     9       pts file (build_patong.py)
    910       information from project file
    1011Outputs: sww file stored in project.output_run_time_dir
     
    1213on the outputs of this script
    1314
    14 Ole Nielsen and Duncan Gray, GA - 2005, Jane Sexton, Nick Bartzis, GA - 2006
    15 Ole Nielsen, Jane Sexton and Kristy Van Putten - 2008
    1615"""
    1716
     
    2726
    2827# 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
     28from anuga.interface import create_domain_from_regions
     29from anuga.interface import Domain
     30from anuga.interface import Dirichlet_boundary
     31from anuga.interface import File_boundary
     32from anuga.interface import Reflective_boundary
     33from anuga.interface import Field_boundary
     34from anuga.interface import export_grid, create_sts_boundary
     35from anuga.interface import csv2building_polygons
     36
    3637from anuga.shallow_water.data_manager import start_screen_catcher, copy_code_files,store_parameters
    37 from anuga.caching import myhash
    38 from anuga.damage_modelling.inundation_damage import add_depth_and_momentum2csv, inundation_damage
    3938from anuga.fit_interpolate.benchmark_least_squares import mem_usage
    4039from anuga.utilities.polygon import read_polygon, plot_polygons, polygon_area, is_inside_polygon
     
    178177
    179178for t in domain.evolve(yieldstep=project.yieldstep,
    180                        finaltime=project.finaltime)
     179                       finaltime=project.finaltime):
    181180    print domain.timestepping_statistics()
    182181    print domain.boundary_statistics(tags='ocean')
Note: See TracChangeset for help on using the changeset viewer.