Ignore:
Timestamp:
Jun 28, 2007, 5:54:00 PM (18 years ago)
Author:
ole
Message:

Setup shark bay initial runs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/shark_bay_2007/project.py

    r4552 r4570  
    3232
    3333#tide = -3.9
    34 #tide = 0.0
    35 tide = 3.6
     34tide = 0.0
     35#tide = 3.6
    3636
    3737#Maybe will try to make project a class to allow these parameters to be passed in.
     
    4040finaltime=25000
    4141starttime=3600
    42 setup='final'
     42setup='basic'
    4343source='shark_bay'
    4444
     
    6767                   'clipped_bathymetry_final', 'coast_points_final']
    6868
    69 #final topo name
     69# final topo name
    7070combined_name ='shark_bay_combined_elevation'
    7171combined_small_name = 'shark_bay_combined_elevation_small'
     
    7474anuga_dir = join(home, state, scenario, 'anuga')
    7575
    76 topographies_in_dir = join(home, state, scenario, 'elevation_final', 'test_area')
     76topographies_in_dir = join(home, state, scenario,
     77                           'elevation_final', 'test_area')
     78
    7779topographies_dir = join(anuga_dir, 'topographies') # Output dir for ANUGA
    7880
     
    8789
    8890
    89 meshes_dir = join(anuga_dir, 'meshes')
    90 meshes_dir_name = join(meshes_dir, scenario_name)
     91mesh_dir = join(anuga_dir, 'meshes')
     92mesh_name = join(mesh_dir, scenario_name)
    9193
    9294
     
    9799# locations for boundary conditions
    98100if source=='shark_bay':
    99     boundaries_file_name = 'shark_bay_3867_18052007'
    100     boundaries_dir = join(anuga_dir, 'boundaries', 'shark_bay', '1_10000')
     101    boundary_file_name = 'shark_bay_3867_18052007'
     102    boundary_dir = join(anuga_dir, 'boundaries', 'shark_bay', '1_10000')
    101103
    102 boundaries_name = join(boundaries_dir, boundaries_file_name)
     104boundary_name = join(boundary_dir, boundary_file_name)
    103105
    104106#output locations
    105 output_dir = join(anuga_dir, 'outputs')
     107output_dir = join(anuga_dir, 'outputs')+sep
    106108output_build_time_dir = output_dir+build_time+sep
    107109output_run_time_dir = output_dir +run_time+dir_comment+sep
     
    147149
    148150#from anuga.coordinate_transforms.redfearn import redfearn
    149 poly_all = read_polygon(join(polygons_dir, 'boundary_extent.csv'))
    150 res_poly_all = 250000*res_factor
     151bounding_polygon = read_polygon(join(polygons_dir, 'boundary_extent.csv'))
     152res_bounding_polygon = 250000*res_factor
    151153
    152154#Interior regions
    153155poly_inundated_area = read_polygon(join(polygons_dir, 'inundated_area.csv'))
    154 res_inundated_area = 50000*res_factor
     156res_inundated_area = 1000*res_factor
    155157
    156158poly_bay_area = read_polygon(join(polygons_dir, 'bay_area.csv'))                                   
    157 res_bay_area = 100000*res_factor                                   
     159res_bay_area = 5000*res_factor                                   
    158160
    159 interior_regions = [[poly_bay_area, res_bay_area], [poly_inundated_area, res_inundated_area]]
     161interior_regions = [[poly_bay_area, res_bay_area],
     162                    [poly_inundated_area, res_inundated_area]]
    160163
    161 trigs_min = number_mesh_triangles(interior_regions, poly_all, res_poly_all)
     164trigs_min = number_mesh_triangles(interior_regions,
     165                                  bounding_polygon,
     166                                  res_bounding_polygon)
    162167
    163168print 'min number triangles', trigs_min
    164169
     170onshore_polygon = read_polygon(join(topographies_in_dir,
     171                                    'initial_condition.txt'))
    165172
Note: See TracChangeset for help on using the changeset viewer.