Changeset 4577


Ignore:
Timestamp:
Jul 2, 2007, 5:34:45 PM (17 years ago)
Author:
ole
Message:

Work on Shark bay

Location:
anuga_work/production/shark_bay_2007
Files:
3 edited

Legend:

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

    r4570 r4577  
    9595if access(project.topographies_dir, F_OK) == 0:
    9696    mkdir (project.topographies_dir)
    97 G.export_points_file(project.combined_dir_name + '.txt')
     97G.export_points_file(project.combined_dir_name + '.pts')
    9898
    9999
  • anuga_work/production/shark_bay_2007/project.py

    r4570 r4577  
    4040finaltime=25000
    4141starttime=3600
    42 setup='basic'
     42setup='final'
    4343source='shark_bay'
    4444
     
    6060
    6161
     62#dir_comment='_'+setup+'_'+str(tide)+'_'+str(source)+'_'+str(user)+'_'+'nobdry'
    6263dir_comment='_'+setup+'_'+str(tide)+'_'+str(source)+'_'+str(user)
    6364
     
    148149                 
    149150
    150 #from anuga.coordinate_transforms.redfearn import redfearn
     151# Bounding polygon
    151152bounding_polygon = read_polygon(join(polygons_dir, 'boundary_extent.csv'))
    152153res_bounding_polygon = 250000*res_factor
     
    154155#Interior regions
    155156poly_inundated_area = read_polygon(join(polygons_dir, 'inundated_area.csv'))
    156 res_inundated_area = 1000*res_factor
     157res_inundated_area = 200*res_factor
     158
     159poly_tsunami_approach_area = read_polygon(join(polygons_dir, 'tsunami_approach_area.csv'))
     160res_tsunami_approach_area = 500*res_factor
    157161
    158162poly_bay_area = read_polygon(join(polygons_dir, 'bay_area.csv'))                                   
    159 res_bay_area = 5000*res_factor                                   
     163res_bay_area = 1000*res_factor
    160164
    161 interior_regions = [[poly_bay_area, res_bay_area],
    162                     [poly_inundated_area, res_inundated_area]]
     165poly_map_area = read_polygon(join(polygons_dir, 'map_area.csv'))                                   
     166res_map_area = 5000*res_factor
     167
     168poly_model_area = read_polygon(join(polygons_dir, 'model_area.csv'))                                   
     169res_model_area = 200000*res_factor                                   
     170
     171poly_exclusion_area1 = read_polygon(join(polygons_dir, 'exclusion_area1.csv'))
     172res_exclusion_area1 = 2000000*res_factor
     173
     174interior_regions = [[poly_inundated_area, res_inundated_area],
     175                    [poly_tsunami_approach_area, res_tsunami_approach_area],
     176                    [poly_bay_area, res_bay_area],                   
     177                    [poly_map_area, res_map_area],
     178                    [poly_model_area, res_model_area],
     179                    [poly_exclusion_area1, res_exclusion_area1]]                                       
     180
    163181
    164182trigs_min = number_mesh_triangles(interior_regions,
     
    166184                                  res_bounding_polygon)
    167185
    168 print 'min number triangles', trigs_min
    169186
    170187onshore_polygon = read_polygon(join(topographies_in_dir,
  • anuga_work/production/shark_bay_2007/run_shark_bay.py

    r4570 r4577  
    6666   
    6767    kwargs['output_dir']=project.output_run_time_dir
    68     kwargs['bathy_file']=project.combined_dir_name + '.txt'
     68    kwargs['bathy_file']=project.combined_dir_name + '.pts'
    6969#    kwargs['bathy_file']=project.combined_small_dir_name + '.pts'
    7070    kwargs['boundary_file']=project.boundary_name + '.sww'
     
    8383
    8484    print 'Processor Name:', get_processor_name()
    85 
    86     # creates copy of code in output dir
    87     print 'min triangles', project.trigs_min,
    88     print 'Note: This is generally about 20% less than the final amount'
    8985
    9086    #--------------------------------------------------------------------------
     
    132128    if myid == 0:
    133129
    134         print 'Create onshore polygon'
    135         from polygon import Polygon_function
    136         #following sets the stage/water to be offcoast only
    137         IC = Polygon_function([(project.onshore_polygon, -1.0)],
    138                               default = tide,
    139                               geo_reference = domain.geo_reference)
    140 
    141         print 'set initial condition'
     130        if project.tide == 0.0:
     131            print 'Tide is MSL'
     132            IC = 0.0
     133        else:   
     134            print 'Create onshore polygon'
     135            from polygon import Polygon_function
     136            #following sets the stage/water to be offcoast only
     137            IC = Polygon_function([(project.onshore_polygon, -1.0)],
     138                                  default = tide,
     139                                  geo_reference = domain.geo_reference)
     140           
     141
     142        print 'Set initial conditions'
    142143        domain.set_quantity('stage', IC)
    143         domain.set_quantity('friction', friction)
     144        domain.set_quantity('friction', friction)
     145        print 'Set elevation'
    144146        domain.set_quantity('elevation',
    145147                            filename = kwargs['bathy_file'],
Note: See TracChangeset for help on using the changeset viewer.