Changeset 5575 for anuga_work/production/busselton/project.py
- Timestamp:
- Jul 25, 2008, 4:17:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/busselton/project.py
r5526 r5575 10 10 #from anuga.coordinate_transforms.redfearn import degminsec2decimal_degrees, convert_points_from_latlon_to_utm 11 11 from anuga.utilities.system_tools import get_user_name, get_host_name 12 from anuga.utilities.polygon import read_polygon, plot_polygons, polygon_area, is_inside_polygon 12 13 13 14 # file and system info … … 16 17 17 18 home = getenv('INUNDATIONHOME') + sep +'data'+sep #Sandpit's parent dir 19 muxhome = getenv('MUXHOME') 18 20 user = get_user_name() 19 21 host = get_host_name() … … 33 35 scenario = 'busselton_tsunami_scenario' 34 36 35 tide = 0 37 tide = 0.6 36 38 37 39 alpha = 0.1 38 40 friction=0.01 39 41 starttime=0 40 finaltime= 50000 # changed for rev_number trial42 finaltime=80000 41 43 export_cellsize=25 42 44 setup='final' 43 source=' exmouth'45 source='polyline' 44 46 45 47 … … 135 137 #boundaries_source = '1' 136 138 137 if source=='exmouth':138 boundaries_name = 'busselton_3103_30052008' #exmouth gun139 boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'exmouth'+sep+'1_10000'+sep140 141 if source=='test':142 boundaries_name = 'other' #exmouth gun143 boundaries_in_dir = anuga_dir+'boundaries'+sep144 139 ##if source=='exmouth': 140 ## boundaries_name = 'busselton_3103_30052008' # exmouth gun 141 ## boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'exmouth'+sep+'1_10000'+sep 142 ## 143 ##if source=='test': 144 ## boundaries_name = 'other' #exmouth gun 145 ## boundaries_in_dir = anuga_dir+'boundaries'+sep 146 ## 145 147 146 148 #boundaries locations 147 boundaries_in_dir_name = boundaries_in_dir + boundaries_name149 #boundaries_in_dir_name = boundaries_in_dir + boundaries_name 148 150 boundaries_dir = anuga_dir+'boundaries'+sep 149 151 boundaries_dir_name = boundaries_dir + scenario_name 152 boundaries_dir_mux = muxhome 150 153 151 154 #output locations 152 155 output_dir = anuga_dir+'outputs'+sep 153 #output_build_time_dir = output_dir +'test'+sep + build_time + dir_comment + sep154 156 output_build_time_dir = output_dir +build_time + dir_comment + sep 155 #output_run_time_dir = output_dir +run_time+dir_comment+sep 156 output_run_time_dir = output_dir +'test'+sep + run_time + dir_comment +sep # take test out 157 output_run_time_dir = output_dir + run_time + dir_comment +sep 157 158 output_run_time_dir_name = output_run_time_dir + scenario_name #Used by post processing 158 159 … … 170 171 171 172 ############################### 172 # Domain definitions173 # Interior region definitions 173 174 ############################### 174 175 175 from anuga.utilities.polygon import read_polygon, plot_polygons, polygon_area, is_inside_polygon 176 177 # bounding polygon for study area 176 # Initial bounding polygon for data clipping 178 177 poly_all = read_polygon(polygons_dir+'poly_all_extend.csv') 179 178 res_poly_all = 100000*res_factor 180 181 182 ###############################183 # Interior region definitions184 ###############################185 179 186 180 #digitized polygons … … 209 203 210 204 211 boundary_tags={'back': [3, 4, 5, 6, 7],212 'side': [2, 8], 'ocean': [0, 1, 9]}213 214 205 trigs_min = number_mesh_triangles(interior_regions, poly_all, res_poly_all) 206 print 'min number triangles', trigs_min 215 207 216 208 poly_mainland=read_polygon(polygons_dir+'initial_condition.csv') 217 218 print 'min number triangles', trigs_min219 209 220 210
Note: See TracChangeset
for help on using the changeset viewer.