Changeset 4046 for anuga_work/production
- Timestamp:
- Dec 1, 2006, 2:46:11 PM (18 years ago)
- Location:
- anuga_work/production
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/newcastle_2006/project_slide.py
r4036 r4046 62 62 63 63 # bounding polygon for study area 64 polyAll = read_polygon(polygondir+'extent .csv')64 polyAll = read_polygon(polygondir+'extentC.csv') 65 65 66 # plot bounding polygon and make sure BC info surrounds it67 #plot_polygons([polyAll, poly_bc],'boundingpoly',verbose=False)68 66 print 'Area of bounding polygon', polygon_area(polyAll)/1000000.0 69 67 … … 72 70 ############################### 73 71 74 # broome digitized polygons72 # newcastle digitized polygons 75 73 poly_newcastle1 = read_polygon(polygondir+'.csv') 76 74 poly_newcastle2 = read_polygon(polygondir+'.csv') … … 91 89 northingmax = 92 90 93 #slump_origin = [,] 91 ################################################################### 92 # Slide characteristics 93 ################################################################### 94 95 slide_origin_a = [352928.37,6188303.94] 96 slide_origin_b = [393301.80,6253255.08] 97 slide_origin_c = [446025.35,6330307.46] 98 99 bulli_depth = 2087.0 100 bulli_length = 16840.0 101 bulli_thickness = 424.0 102 bulli_width = 8860.0 103 bulli_density = 1.46 104 bulli_slope = 4.0 105 bulli_alpha = 126.0 + 90.0 106 107 shovel_depth = 968.0 108 shovel_length = 13500.0 109 shovel_thickness = 165.0 110 shovel_width = 4350.0 111 shovel_density = 1.49 112 shove_slope = 4.0 113 shovel_alpha = 118.0 + 90.0 114 115 yacaaba_depth = 1119.0 116 yacaaba_length = 7050.0 117 yacaaba_thickness = 144.0 118 yacaaba_width = 3080.0 119 yacaaba_density = 1.48 120 yacaaba_slope = 3.0 121 yacaaba_alpha = 133.0 + 90.0 -
anuga_work/production/sydney_2006/project_slide.py
r4045 r4046 66 66 67 67 # bounding polygon for study area 68 polyAll = read_polygon(polygondir+'extent .csv')68 polyAll = read_polygon(polygondir+'extent2.csv') 69 69 70 # plot bounding polygon and make sure BC info surrounds it71 #plot_polygons([polyAll, poly_bc],'boundingpoly',verbose=False)72 70 print 'Area of bounding polygon', polygon_area(polyAll)/1000000.0 73 71 … … 77 75 78 76 # sydney digitized polygons 79 interior_regions = [] 80 area = 0. 81 coast_res = 500. 82 for i in range(1,10): 83 poly = read_polygon(polygondir+'poly'+str(i)+'.csv') 84 area += polygon_area(poly) 85 #interior_regions.append([poly,coast_res]) 86 77 poly_coast = read_polygon(polygondir+'coast.csv') 87 78 poly_syd1 = read_polygon(polygondir+'local.csv') 88 local_res = 50000.89 interior_regions.append([poly_syd1,local_res])90 79 91 80 print 'Area of local polygon', polygon_area(poly_syd1)/1000000.0 92 print 'Area of local polygon', area/1000000.081 print 'Area of coastal polygon', polygon_area(poly_coast)/1000000.0 93 82 94 83 ################################################################### … … 129 118 ################################################################### 130 119 131 #slide_origin = [,] 120 slide_origin_a = [352928.37,6188303.94] 121 slide_origin_b = [393301.80,6253255.08] 122 slide_origin_c = [446025.35,6330307.46] 123 132 124 bulli_depth = 2087.0 133 125 bulli_length = 16840.0 … … 135 127 bulli_width = 8860.0 136 128 bulli_density = 1.46 129 bulli_slope = 4.0 137 130 bulli_alpha = 126.0 + 90.0 138 131 … … 142 135 shovel_width = 4350.0 143 136 shovel_density = 1.49 137 shove_slope = 4.0 144 138 shovel_alpha = 118.0 + 90.0 145 139 … … 149 143 yacaaba_width = 3080.0 150 144 yacaaba_density = 1.48 145 yacaaba_slope = 3.0 151 146 yacaaba_alpha = 133.0 + 90.0 -
anuga_work/production/sydney_2006/run_sydney_slide.py
r4045 r4046 128 128 129 129 from anuga.pmesh.mesh_interface import create_mesh_from_regions 130 remainder_res = 500000 131 local_res = 25000 132 #interior_regions = [[project_slide.poly_syd1, local_res]] 133 #interior_regions.append(project_slide.poly_sydcoast) 130 remainder_res = 1000000. 131 local_res = 50000. 132 coast_res = 10000. 133 interior_regions = [[project_slide.poly_syd1, local_res], 134 [project_slide.poly_coast, coast_res]] 134 135 135 136 from caching import cache … … 140 141 'maximum_triangle_area': remainder_res, 141 142 'filename': meshname, 142 'interior_regions': project_slide.interior_regions},143 'interior_regions': interior_regions}, 143 144 verbose = True, evaluate=False) 144 145 print 'created mesh' … … 182 183 slope=project_slide.bulli_slope, 183 184 thickness=project_slide.bulli_thickness, 184 x0=project_slide.slide_origin [0],185 y0=project_slide.slide_origin [1],185 x0=project_slide.slide_origin_b[0], 186 y0=project_slide.slide_origin_b[1], 186 187 alpha=project_slide.bulli_alpha, 187 188 domain=domain) … … 202 203 #------------------------------------------------------------------------------- 203 204 import time 205 from Numeric import allclose 206 from anuga.abstract_2d_finite_volumes.quantity import Quantity 207 204 208 t0 = time.time() 205 209 -
anuga_work/production/wollongong_2006/project_slide.py
r4036 r4046 62 62 63 63 # bounding polygon for study area 64 polyAll = read_polygon(polygondir+'extent .csv')64 polyAll = read_polygon(polygondir+'extentA.csv') 65 65 66 # plot bounding polygon and make sure BC info surrounds it67 #plot_polygons([polyAll, poly_bc],'boundingpoly',verbose=False)68 66 print 'Area of bounding polygon', polygon_area(polyAll)/1000000.0 69 67 … … 91 89 northingmax = 92 90 93 #slump_origin = [,] 91 ################################################################### 92 # Slide characteristics 93 ################################################################### 94 95 slide_origin_a = [352928.37,6188303.94] 96 slide_origin_b = [393301.80,6253255.08] 97 slide_origin_c = [446025.35,6330307.46] 98 99 bulli_depth = 2087.0 100 bulli_length = 16840.0 101 bulli_thickness = 424.0 102 bulli_width = 8860.0 103 bulli_density = 1.46 104 bulli_slope = 4.0 105 bulli_alpha = 126.0 + 90.0 106 107 shovel_depth = 968.0 108 shovel_length = 13500.0 109 shovel_thickness = 165.0 110 shovel_width = 4350.0 111 shovel_density = 1.49 112 shove_slope = 4.0 113 shovel_alpha = 118.0 + 90.0 114 115 yacaaba_depth = 1119.0 116 yacaaba_length = 7050.0 117 yacaaba_thickness = 144.0 118 yacaaba_width = 3080.0 119 yacaaba_density = 1.48 120 yacaaba_slope = 3.0 121 yacaaba_alpha = 133.0 + 90.0 122
Note: See TracChangeset
for help on using the changeset viewer.