Changeset 3679
- Timestamp:
- Oct 3, 2006, 1:38:11 PM (18 years ago)
- Location:
- anuga_work/production/hobart_2006
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/hobart_2006/project.py
r3672 r3679 57 57 coast_name = 'coastline_points' 58 58 59 boundary_basename = ' SU-AU_clip'59 boundary_basename = 'puysegur' 60 60 61 61 #swollen/ all data output … … 126 126 127 127 # bounding box 128 south = degminsec2decimal_degrees(-4 3,45,0)129 north = degminsec2decimal_degrees(-42, 30,0)128 south = degminsec2decimal_degrees(-44,45,0) 129 north = degminsec2decimal_degrees(-42,0,0) 130 130 west = degminsec2decimal_degrees(146,45,0) 131 east = degminsec2decimal_degrees(148, 0,0)#degminsec2decimal_degrees(148,15,0)131 east = degminsec2decimal_degrees(148,25,0) #degminsec2decimal_degrees(148,15,0) 132 132 133 133 #Main Domain of Hobart: first run JS 18/9/06 … … 136 136 d2 = [north, east] 137 137 d3 = [north, west] 138 polyAll, zone = convert_points_from_latlon_to_utm([d0, d1, d2, d3]) 138 polyAll2, zone = convert_points_from_latlon_to_utm([d0, d1, d2, d3]) 139 print "polyAll2", polyAll2 139 140 refzone = zone 140 141 141 142 # Second run - bottom bright, topr, top, left 142 polyAll = [[520000, 5170000],[580000, 5170000],[580000, 5200000],[590000,5240000],[520000,5260000]]143 #polyAll = [[520000, 5170000],[580000, 5170000],[580000, 5200000],[590000,5240000],[520000,5260000]] 143 144 144 145 # Third run - afternoon Wed 27 Sep; surrounds -100m and 20mish elevation 146 #polyAll = read_polygon(polygondir+'new_extent.csv') 147 #plot_polygons([polyAll],'boundingpoly',verbose=False) 148 149 # Mark run - morning Fri 29 Sep; surrounds -100m and 20mish elevation 145 150 polyAll = read_polygon(polygondir+'new_extent.csv') 146 plot_polygons([polyAll],'boundingpoly',verbose=False) 151 plot_polygons([polyAll, polyAll2],'boundingpoly',verbose=False) 152 147 153 148 154 ################################################################### … … 171 177 ############################### 172 178 173 #Interior region - Hobart city area + Glenorchy, Kingston 174 i0 = [517000, 5267000] 175 i1 = [517000, 5255000] 176 i2 = [520000, 5250000] 177 i3 = [522000, 5239000] 178 i4 = [524000, 5238000] 179 i5 = [526000, 5236000] 180 i6 = [530000, 5244000] 181 i7 = [530000, 5250000] 182 i8 = [534000, 5254000] 183 i9 = [520000, 5270000] 184 185 poly_hobart = [i0, i1, i2, i3, i4, i5, i6, i7, i8, i9] 186 187 # Tasman Peninsula 188 l0 = [550000, 5247000] 189 l1 = [550000, 5211000] 190 l2 = [583000, 5211000] 191 l3 = [583000, 5247000] 192 193 poly_tasman_peninsula = [l0, l1, l2, l3] 194 195 # Bruny Island 196 poly_bruny = read_polygon(polygondir+'bruny.csv') 179 ###Interior region - Hobart city area + Glenorchy, Kingston 180 ##i0 = [517000, 5267000] 181 ##i1 = [517000, 5255000] 182 ##i2 = [520000, 5250000] 183 ##i3 = [522000, 5239000] 184 ##i4 = [524000, 5238000] 185 ##i5 = [526000, 5236000] 186 ##i6 = [530000, 5244000] 187 ##i7 = [530000, 5250000] 188 ##i8 = [534000, 5254000] 189 ##i9 = [520000, 5270000] 190 ## 191 ##poly_hobart = [i0, i1, i2, i3, i4, i5, i6, i7, i8, i9] 192 ## 193 ### Tasman Peninsula 194 ##l0 = [550000, 5247000] 195 ##l1 = [550000, 5211000] 196 ##l2 = [583000, 5211000] 197 ##l3 = [583000, 5247000] 198 ## 199 ##poly_tasman_peninsula = [l0, l1, l2, l3] 200 ## 201 ### Bruny Island 202 ##poly_bruny = read_polygon(polygondir+'bruny.csv') 203 204 205 # Hobart digitized polygons 206 poly_hobart1 = read_polygon(polygondir+'Hob_poly1.csv') 207 poly_hobart2 = read_polygon(polygondir+'Hob_poly2.csv') 208 poly_hobart3 = read_polygon(polygondir+'Hob_poly3.csv') 209 210 plot_polygons([polyAll, poly_hobart1,poly_hobart2,poly_hobart3],'boundingpoly2',verbose=False) -
anuga_work/production/hobart_2006/run_hobart.py
r3673 r3679 89 89 hobart_res = 35000 90 90 peninsula_res = 35000 91 interior_regions = [[project.poly_hobart , hobart_res],92 [project.poly_ tasman_peninsula, peninsula_res],93 [project.poly_ bruny, island_res]]91 interior_regions = [[project.poly_hobart1, hobart_res], 92 [project.poly_hobart2, hobart_res], 93 [project.poly_hobart3, hobart_res]] 94 94 95 95 print 'number of interior regions', len(interior_regions) … … 98 98 _ = cache(create_mesh_from_regions, 99 99 project.polyAll, 100 # {'boundary_tags': {'bottom': [0], 'bright': [1],101 # 'topr': [2], 'top': [3], 'left': [4]},102 100 {'boundary_tags': {'e0': [0], 'e1': [1], 'e2': [2], 103 104 105 106 107 'e15': [15], 'e16': [16], 'e17': [17]},101 'e3': [3], 'e4':[4], 'e5': [5], 102 'e6': [6], 'e7': [7], 'e8': [8], 103 'e9': [9], 'e10': [10], 'e11': [11], 104 'e12': [12], 'e13': [13], 'e14': [14], 105 'e15': [15]}, 108 106 'maximum_triangle_area': 250000, 109 'filename': meshname },110 #'interior_regions': interior_regions},111 verbose = True, evaluate= True)107 'filename': meshname, 108 'interior_regions': interior_regions}, 109 verbose = True, evaluate=False) 112 110 113 111 … … 115 113 # Setup computational domain 116 114 #------------------------------------------------------------------------------- 117 domain = Domain(meshname, use_cache = False, verbose = True)115 domain = Domain(meshname, use_cache = True, verbose = True) 118 116 119 117 print 'Number of triangles = ', len(domain) … … 150 148 print 'start ferret2sww' 151 149 from anuga.shallow_water.data_manager import ferret2sww 152 ''' 150 153 151 south = project.south 154 152 north = project.north … … 160 158 (source_dir + project.boundary_basename, 161 159 source_dir + project.boundary_basename), 162 # (project.MOST_dir + project.boundary_basename,163 # source_dir + project.boundary_basename),164 160 {'verbose': True, 165 # note didn't work with the below166 # 'minlat': south - 1,167 # 'maxlat': north + 1,168 # 'minlon': west - 1,169 # 'maxlon': east + 1,170 161 'minlat': south, 171 162 'maxlat': north, … … 182 173 dependencies = source_dir + project.boundary_basename + '.sww') 183 174 184 ''' 175 185 176 print 'Available boundary tags', domain.get_boundary_tags() 186 177 187 #Bf = File_boundary(source_dir + project.boundary_basename + '.sww',188 #domain, verbose = True)178 Bf = File_boundary(source_dir + project.boundary_basename + '.sww', 179 domain, verbose = True) 189 180 Br = Reflective_boundary(domain) 190 181 Bd = Dirichlet_boundary([tide,0,0]) … … 204 195 domain.set_boundary( {'e0': Bd, 'e1': Bd, 'e2': Bd, 'e3': Bd, 'e4': Bd, 205 196 'e5': Bd, 'e6': Bd, 'e7': Bd, 'e8': Bd, 'e9': Bd, 206 'e10': Bd, 'e11': Bd, 'e12': Bd, 'e13': Bd, 'e14': B d,207 'e15': Bd , 'e16': Bw, 'e17': Bd} )197 'e10': Bd, 'e11': Bd, 'e12': Bd, 'e13': Bd, 'e14': Bf, 198 'e15': Bd} ) 208 199 209 200 #------------------------------------------------------------------------------- … … 213 204 t0 = time.time() 214 205 215 for t in domain.evolve(yieldstep = 60, finaltime = 12000):206 for t in domain.evolve(yieldstep = 240, finaltime = 6800): 216 207 domain.write_time() 217 208 domain.write_boundary_statistics(tags = 'bottom') 218 209 219 #for t in domain.evolve(yieldstep = 120, finaltime = 12600 220 # ,skip_initial_step = True): 221 # domain.write_time() 222 # domain.write_boundary_statistics(tags = 'bottom') 210 for t in domain.evolve(yieldstep = 30, finaltime = 9000 211 ,skip_initial_step = True): 212 domain.write_time() 213 domain.write_boundary_statistics(tags = 'bottom') 214 215 for t in domain.evolve(yieldstep = 240, finaltime = 15000 216 ,skip_initial_step = True): 217 domain.write_time() 218 domain.write_boundary_statistics(tags = 'bottom') 223 219 224 220 print 'That took %.2f seconds' %(time.time()-t0)
Note: See TracChangeset
for help on using the changeset viewer.