Ignore:
Timestamp:
Feb 9, 2009, 4:26:06 PM (16 years ago)
Author:
jgriffin
Message:

scripts modified to include file_length function

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.
    22
    33The 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 a
     4elevation data is compiled into a pts file through build_sydney.py and a
    55simulated tsunami is generated through an sts file from build_boundary.py.
    66
    77Input: sts file (build_boundary.py for respective event)
    8        pts file (build_busselton.py)
     8       pts file (build_sydney.py)
    99       information from project file
    1010Outputs: sww file stored in project.output_run_time_dir
     
    3232from anuga.interface import create_sts_boundary
    3333from anuga.interface import csv2building_polygons
     34from file_length import file_length
    3435
    3536from anuga.shallow_water.data_manager import start_screen_catcher
     
    7071# Number of boundary segments
    7172N = len(event_sts)-1
     73# Number of landward_boundary points
     74M = file_length(project.landward_boundary)
     75print 'M',M
    7276
    7377# Boundary tags refer to project.landward_boundary
    7478# 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],
     79boundary_tags={'back': range(N+1,N+M),
     80               'side': [N,N+M],
    7781               'ocean': range(N)}
    7882
     
    8084domain = create_domain_from_regions(bounding_polygon_sts,
    8185                                    boundary_tags=boundary_tags,
    82                                     maximum_triangle_area=project.res_poly_all,
     86                                    maximum_triangle_area=project.bounding_maxarea,
    8387                                    interior_regions=project.interior_regions,
    8488                                    mesh_filename=project.meshes,
Note: See TracChangeset for help on using the changeset viewer.