Changeset 4577
- Timestamp:
- Jul 2, 2007, 5:34:45 PM (18 years ago)
- 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 95 95 if access(project.topographies_dir, F_OK) == 0: 96 96 mkdir (project.topographies_dir) 97 G.export_points_file(project.combined_dir_name + '. txt')97 G.export_points_file(project.combined_dir_name + '.pts') 98 98 99 99 -
anuga_work/production/shark_bay_2007/project.py
r4570 r4577 40 40 finaltime=25000 41 41 starttime=3600 42 setup=' basic'42 setup='final' 43 43 source='shark_bay' 44 44 … … 60 60 61 61 62 #dir_comment='_'+setup+'_'+str(tide)+'_'+str(source)+'_'+str(user)+'_'+'nobdry' 62 63 dir_comment='_'+setup+'_'+str(tide)+'_'+str(source)+'_'+str(user) 63 64 … … 148 149 149 150 150 # from anuga.coordinate_transforms.redfearn import redfearn151 # Bounding polygon 151 152 bounding_polygon = read_polygon(join(polygons_dir, 'boundary_extent.csv')) 152 153 res_bounding_polygon = 250000*res_factor … … 154 155 #Interior regions 155 156 poly_inundated_area = read_polygon(join(polygons_dir, 'inundated_area.csv')) 156 res_inundated_area = 1000*res_factor 157 res_inundated_area = 200*res_factor 158 159 poly_tsunami_approach_area = read_polygon(join(polygons_dir, 'tsunami_approach_area.csv')) 160 res_tsunami_approach_area = 500*res_factor 157 161 158 162 poly_bay_area = read_polygon(join(polygons_dir, 'bay_area.csv')) 159 res_bay_area = 5000*res_factor163 res_bay_area = 1000*res_factor 160 164 161 interior_regions = [[poly_bay_area, res_bay_area], 162 [poly_inundated_area, res_inundated_area]] 165 poly_map_area = read_polygon(join(polygons_dir, 'map_area.csv')) 166 res_map_area = 5000*res_factor 167 168 poly_model_area = read_polygon(join(polygons_dir, 'model_area.csv')) 169 res_model_area = 200000*res_factor 170 171 poly_exclusion_area1 = read_polygon(join(polygons_dir, 'exclusion_area1.csv')) 172 res_exclusion_area1 = 2000000*res_factor 173 174 interior_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 163 181 164 182 trigs_min = number_mesh_triangles(interior_regions, … … 166 184 res_bounding_polygon) 167 185 168 print 'min number triangles', trigs_min169 186 170 187 onshore_polygon = read_polygon(join(topographies_in_dir, -
anuga_work/production/shark_bay_2007/run_shark_bay.py
r4570 r4577 66 66 67 67 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' 69 69 # kwargs['bathy_file']=project.combined_small_dir_name + '.pts' 70 70 kwargs['boundary_file']=project.boundary_name + '.sww' … … 83 83 84 84 print 'Processor Name:', get_processor_name() 85 86 # creates copy of code in output dir87 print 'min triangles', project.trigs_min,88 print 'Note: This is generally about 20% less than the final amount'89 85 90 86 #-------------------------------------------------------------------------- … … 132 128 if myid == 0: 133 129 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' 142 143 domain.set_quantity('stage', IC) 143 domain.set_quantity('friction', friction) 144 domain.set_quantity('friction', friction) 145 print 'Set elevation' 144 146 domain.set_quantity('elevation', 145 147 filename = kwargs['bathy_file'],
Note: See TracChangeset
for help on using the changeset viewer.