Changeset 5577 for anuga_work/development/Hinwood_2008/run_dam.py
- Timestamp:
- Jul 25, 2008, 4:36:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/Hinwood_2008/run_dam.py
r5503 r5577 62 62 outputdir_name=None, 63 63 run_type=0, 64 width=1.0, 65 use_limits=True, 64 66 end_tag = '_limiterD'): 65 67 … … 68 70 69 71 if run_type == 1: 70 outputdir_name += '_test' + end_tag71 72 yieldstep = 1.0 72 73 finaltime = 15. 73 74 maximum_triangle_area=0.1 75 outputdir_name += '_test' 74 76 75 77 elif run_type == 2: 76 outputdir_name += '_test_long_time' + end_tag77 78 yieldstep = 0.5 78 79 finaltime = None 79 80 maximum_triangle_area=0.01 81 outputdir_name += '_test_long_time' 80 82 81 83 elif run_type == 3: 82 outputdir_name += '_yieldstep_0.1_tri_area_0.01' + end_tag83 84 yieldstep = 0.1 84 85 finaltime = None 85 86 maximum_triangle_area=0.01 87 #outputdir_name += '_yieldstep_0.1' 88 86 89 elif run_type == 4: 87 outputdir_name += '_good_tri_area_0.01' + end_tag88 90 # this is not a test 89 91 # Output will go to a file … … 92 94 finaltime = None 93 95 maximum_triangle_area=0.01 96 #outputdir_name += '_good' 97 94 98 elif run_type == 5: 95 outputdir_name += '_good_tri_area_0.001' + end_tag96 99 # this is not a test 97 100 # Output will go to a file … … 100 103 finaltime = None 101 104 maximum_triangle_area=0.001 102 105 #outputdir_name += '_good' 106 107 elif run_type == 6: 108 # this is not a test 109 # Output will go to a file 110 # The sww file will be interpolated 111 yieldstep = 0.01 112 finaltime = None 113 maximum_triangle_area=0.0001 114 #outputdir_name += '_good' 115 116 if use_limits is True: 117 outputdir_name += '_lmts' 118 else: 119 outputdir_name += '_nolmts' 120 outputdir_name += '_wdth_' + str(width) 121 outputdir_name += '_z_' + str(friction) 122 outputdir_name += '_ys_' + str(yieldstep) 123 outputdir_name += '_mta_' + str(maximum_triangle_area) 124 outputdir_name += end_tag 125 103 126 metadata_dic = set_z_origin_to_water_depth(metadata_dic) 104 127 … … 150 173 # this creates the mesh 151 174 #gate_position = 12.0 152 create_mesh.generate(mesh_filename, metadata_dic, 175 create_mesh.generate(mesh_filename, metadata_dic, width=width, 153 176 maximum_triangle_area=maximum_triangle_area) 154 177 … … 172 195 domain.set_minimum_storable_height(0.0001) 173 196 174 domain.set_default_order(2) # Use second order spatial scheme 175 domain.set_timestepping_method('rk2') 176 domain.use_edge_limiter = True 177 domain.tight_slope_limiters = True 178 179 domain.beta_w = 0.6 180 domain.beta_uh = 0.6 181 domain.beta_vh = 0.6 197 if use_limits is True: 198 domain.set_default_order(2) # Use second order spatial scheme 199 domain.set_timestepping_method('rk2') 200 domain.use_edge_limiter = True 201 domain.tight_slope_limiters = True 202 203 domain.beta_w = 0.6 204 domain.beta_uh = 0.6 205 domain.beta_vh = 0.6 182 206 183 207 … … 223 247 print 'finished' 224 248 225 flume_y_middle = 0. 5249 flume_y_middle = 0.0 226 250 points = [] 227 251 for gauge_x in metadata_dic['gauge_x']: … … 259 283 #from plot import plot 260 284 261 285 # 1 is fast and dirty 262 286 # 4 is 0.01 263 287 # 5 is 0.001 288 # 6 is 0.0001 289 290 #run_type = 1 264 291 run_type = 5 265 292 #for run_data in [scenarios[5]]: 266 293 #scenarios = scenarios[2:] 267 294 #scenarios = [scenarios[0]] 295 width = 1.0 296 width = 0.1 268 297 for run_data in scenarios: 269 298 pro_instance = main( run_data['scenario_id'] + '_boundary.tsm' , 270 299 run_data, 271 run_type = run_type, 300 width=width, 301 run_type=run_type, 272 302 outputdir_name=run_data['scenario_id'], 273 end_tag='_limiterD') 303 use_limits=False, 304 friction=0.012, 305 end_tag='_G') 274 306 #gauges_for_slope(pro_instance.outputdir,[run_data])
Note: See TracChangeset
for help on using the changeset viewer.