Changeset 4601 for anuga_work
- Timestamp:
- Jul 6, 2007, 2:40:57 PM (18 years ago)
- Location:
- anuga_work/production/shark_bay_2007
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/shark_bay_2007/project.py
r4577 r4601 41 41 starttime=3600 42 42 setup='final' 43 #setup='trial' 43 44 source='shark_bay' 45 46 boundary_event = 'july2006' 47 #boundary_event = '10000' 44 48 45 49 if setup =='trial': … … 60 64 61 65 62 #dir_comment='_'+setup+'_'+str(tide)+'_'+str(source)+'_'+str(user)+'_'+'nobdry' 63 dir_comment='_'+setup+'_'+str(tide)+'_'+str(source)+'_'+str(user) 66 dir_comment='_'+setup+'_'+str(tide)+'_'+str(source)+'_'+\ 67 str(user)+'_'+boundary_event 64 68 65 69 # elevation data filenames … … 100 104 # locations for boundary conditions 101 105 if source=='shark_bay': 102 boundary_file_name = 'shark_bay_3867_18052007' 103 boundary_dir = join(anuga_dir, 'boundaries', 'shark_bay', '1_10000') 106 if boundary_event == '10000': 107 boundary_file_name = 'shark_bay_3867_18052007' 108 boundary_dir = join(anuga_dir, 'boundaries', 'shark_bay', '1_10000') 109 elif boundary_event == 'july2006': 110 boundary_file_name = 'july2006' 111 boundary_dir = join(anuga_dir, 'boundaries', 112 'shark_bay', 'july_2006_event') 113 else: 114 raise Exception, 'Unknown boundary event specified' 104 115 105 116 boundary_name = join(boundary_dir, boundary_file_name) … … 150 161 151 162 # Bounding polygon 152 bounding_polygon = read_polygon(join(polygons_dir, 'boundary_extent .csv'))153 res_bounding_polygon = 250000*res_factor163 bounding_polygon = read_polygon(join(polygons_dir, 'boundary_extent_small.csv')) 164 res_bounding_polygon = 350000*res_factor 154 165 155 166 #Interior regions 156 167 poly_inundated_area = read_polygon(join(polygons_dir, 'inundated_area.csv')) 157 res_inundated_area = 200*res_factor168 res_inundated_area = 10*res_factor 158 169 159 170 poly_tsunami_approach_area = read_polygon(join(polygons_dir, 'tsunami_approach_area.csv')) 160 res_tsunami_approach_area = 50 0*res_factor171 res_tsunami_approach_area = 50*res_factor 161 172 162 173 poly_bay_area = read_polygon(join(polygons_dir, 'bay_area.csv')) … … 175 186 [poly_tsunami_approach_area, res_tsunami_approach_area], 176 187 [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]] 188 [poly_map_area, res_map_area]] 189 #[poly_model_area, res_model_area], 190 #[poly_exclusion_area1, res_exclusion_area1]] 191 192 # FIXME (Ole): What if tags are wrong? 193 194 #Large bounding poly 195 #boundary_tags = {'back': [1, 2, 3, 4, 5], 196 # 'side': [0, 6], 197 # 'ocean': [7, 8, 9, 10, 11]} 198 199 200 #Small bounding poly 201 #(counter clockwise starting in upper right corner) 202 boundary_tags = {'tide': [0, 1, 2], 203 'ocean': [3, 4, 5, 6]} 180 204 181 205 -
anuga_work/production/shark_bay_2007/run_shark_bay.py
r4577 r4601 74 74 if myid == 0: 75 75 copy_code_files(kwargs['output_dir'],__file__, 76 dirname(project.__file__)+sep+project.__name__+'.py' )76 dirname(project.__file__)+sep+project.__name__+'.py' ) 77 77 78 78 store_parameters(**kwargs) … … 97 97 print 'start create mesh from regions' 98 98 99 # FIXME (Ole): What if tags are wrong?100 99 create_mesh_from_regions(project.bounding_polygon, 101 boundary_tags={'back': [1, 2, 3, 4, 5], 102 'side': [0, 6], 103 'ocean': [7, 8, 9, 10, 11]}, 100 boundary_tags=project.boundary_tags, 104 101 maximum_triangle_area=project.res_bounding_polygon, 105 102 interior_regions=project.interior_regions, … … 185 182 time_thinning=time_thinning, 186 183 mean_stage=tide, 187 use_cache= True,184 use_cache=False, 188 185 verbose=True) 189 186 … … 197 194 print'set_boundary' 198 195 199 domain.set_boundary({'back': Br, 200 'side': Bd, 201 'ocean': Bf}) 196 #domain.set_boundary({'back': Br, 197 # 'side': Bd, 198 # 'ocean': Bf}) 199 domain.set_boundary({'tide': Bd, 200 'ocean': Bf}) 202 201 print'finish set boundary' 203 202 … … 211 210 domain.write_time() 212 211 domain.write_boundary_statistics(tags = 'ocean') 212 213 214 # Reset stage in study area 215 print 'Reset initial condition in study area' 216 domain.set_quantity('stage', 0.0, 217 polygon=project.poly_tsunami_approach_area) 218 213 219 214 220 for t in domain.evolve(yieldstep = kwargs['yieldstep'], finaltime = 21600
Note: See TracChangeset
for help on using the changeset viewer.