Changeset 4625


Ignore:
Timestamp:
Jul 16, 2007, 5:53:42 PM (17 years ago)
Author:
ole
Message:

Workin' on it

Location:
anuga_work/production/shark_bay_2007
Files:
1 added
2 edited

Legend:

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

    r4624 r4625  
    3232
    3333#tide = 0.0 # MSL
    34 tide = 0.85 # HAT average between Denham and Canarvon
     34tide = 0.79 # HAT average between Denham and Canarvon
     35#tide = -0.80 # Estimated LAT
     36
     37# For frequency response study
     38amplitude = 0.5
     39period = 6
     40
     41#momentum_scale=50 # Experiment
     42momentum_scale=1 # Experiment                       
    3543
    3644#Maybe will try to make project a class to allow these parameters to be passed in.
     
    3846friction=0.01
    3947finaltime=40000
    40 starttime=6000 # Action starts at 9000
     48starttime=6000 # Action starts around 9000
    4149setup='final'
    4250#setup='trial'
    4351source='shark_bay'
    4452
    45 #boundary_event = 'july2006'
    46 boundary_event = '10000'
     53boundary_event = 'july2006'
     54#boundary_event = '10000'
     55#boundary_event = 'experimental'
    4756
    4857if setup =='trial':
     
    6473
    6574
     75#dir_comment='_'+setup+'_'+str(tide)+'_'+str(source)+'_'+\
     76#             str(user)+'_'+boundary_event+'_A'+str(amplitude)+'_T'+str(period)
     77
    6678dir_comment='_'+setup+'_'+str(tide)+'_'+str(source)+'_'+\
    67              str(user)+'_'+boundary_event+'_'+'tide'+str(tide)+'_coastpolys'
    68 
    69 #dir_comment='_'+setup+'_'+str(tide)+'_'+str(source)+'_'+\
    70 #             str(user)+'_'+boundary_event
     79             str(user)+'_'+boundary_event+'_X'+str(momentum_scale)+'_fixedbathy'
    7180
    7281# elevation data filenames
    73 ascii_grid_filenames = ['10m_dem_without_survey', '50m_dem_without_10m_dem']
     82ascii_grid_filenames = ['10m_dem_without_survey', '50m_dem_without_10m_dem',
     83                        'bathysteeppt', 'bathyleft', 'bathyright']
    7484point_filenames = ['field_survey_north', 'field_survey_south',
    7585                   'clipped_bathymetry_final', 'coast_points_final']
     
    115125                            'shark_bay', 'july_2006_event')
    116126    else:
    117         raise Exception, 'Unknown boundary event specified'
    118 
    119 boundary_name = join(boundary_dir, boundary_file_name)
     127        pass
     128        #raise Exception, 'Unknown boundary event specified'
     129       
     130if boundary_event != 'experimental':
     131    boundary_name = join(boundary_dir, boundary_file_name)
     132else:
     133    boundary_name = 'nil'
    120134
    121135#output locations
     
    169183res_bounding_polygon = 500000*res_factor
    170184
    171 #Interior regions
     185# This is a restricted boundary used for experiments.
     186# Cannot use URS boundary on this!
     187small_bounding_polygon = read_polygon(join(polygons_dir, 'small_boundary.csv'))
     188res_bounding_polygon = 500000*res_factor
     189
     190
     191# Interior regions
    172192interior_regions_and_resolutions = {
    173193    'study_area': 300000,
     
    209229                 'ocean': [3, 4, 5, 6]}
    210230
     231#Very small bounding poly (experimental boundary)
     232boundary_tags_small = {'tide': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13],
     233                       'ocean': [11]}
     234
    211235
    212236
     
    225249
    226250
     251
    227252trigs_min = number_mesh_triangles(interior_regions,
    228253                                  bounding_polygon,
     
    230255
    231256
     257
     258# For use with resetting IC (This is temporary)
     259poly_tsunami_approach_area = read_polygon(
     260    join(polygons_dir, 'tsunami_approach_area.csv'))
     261
     262
     263
    232264onshore_polygon = read_polygon(join(topographies_in_dir,
    233265                                    'initial_condition.txt'))
  • anuga_work/production/shark_bay_2007/run_shark_bay.py

    r4616 r4625  
    2626from anuga.shallow_water import Domain
    2727from anuga.shallow_water import Dirichlet_boundary
    28 from anuga.shallow_water import File_boundary
    2928from anuga.shallow_water import Reflective_boundary
    3029from anuga.shallow_water import Field_boundary
     
    184183                        domain,
    185184                        time_thinning=time_thinning,
    186                         mean_stage=tide,
     185                        mean_stage=tide,
     186                        momentum_scale=project.momentum_scale,                       
    187187                        use_cache=False,
    188188                        verbose=True)
     
    201201    #                     'ocean': Bf})
    202202    domain.set_boundary({'tide': Bd,
     203    #                     'ocean': Dirichlet_boundary([3,0,0])})
    203204                         'ocean': Bf})     
    204205    print'finish set boundary'
Note: See TracChangeset for help on using the changeset viewer.