Changeset 4373
- Timestamp:
- Apr 13, 2007, 5:00:58 PM (18 years ago)
- Location:
- anuga_work/production/dampier_2006
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/dampier_2006/get_timeseries.py
r4311 r4373 23 23 24 24 # sww file created from URS boundary 25 production_dirs = { 'boundaries': '10000 yr wave height'26 #'20070307_224017_run': 'URS boundary normal'25 production_dirs = {#'boundaries': '10000 yr wave height' 26 '20070413_033455_run': 'URS boundary normal' 27 27 } 28 >>>>>>> .r430429 28 30 29 31 is_parallel = False30 is_parallel = True 32 31 if is_parallel == True: 33 nodes = 232 nodes = 8 34 33 35 34 # Generate figures … … 40 39 #boundary_dir_filename= os.path.join(home,data,state,'onslow_tsunami_scenario_2006',an,bo,'SU-AU_high_res1.sww') 41 40 #gauges_dir_name_simple = 42 if is_parallel == True: 43 print 'buggur' 41 if is_parallel is True: 42 print 'bugger' 43 44 for i in range(nodes): 45 print 'Sending node %d of %d' %(i,nodes) 46 swwfiles = {} 47 #reportname = report_name + '_%s' %(i) 48 for label_id in production_dirs.keys(): 49 if label_id == 'boundaries': 50 # file_loc = project.boundaries_in_dir 51 swwfile = best_boundary_sww 52 print 'hi' 53 else: 54 file_loc = project.output_dir + label_id + sep 55 sww_extra = '_P%s_%s' %(i,nodes) 56 swwfile = file_loc + project.scenario_name + sww_extra + '.sww' 57 print 'swwfile',swwfile 58 swwfiles[swwfile] = label_id 59 60 texname, elev_output = sww2timeseries(swwfiles, 61 project.gauges_dir_name_simple, 62 production_dirs, 63 report = False, 64 #reportname = reportname, 65 plot_quantity = ['stage', 'momentum'], 66 generate_fig = False, 67 surface = False, 68 time_min = None, 69 time_max = None, 70 title_on = False, 71 verbose = True) 72 73 #latex_output.append(texname) 44 74 45 75 … … 60 90 texname, elev_output = sww2timeseries(swwfiles, 61 91 project.gauges_dir_name_simple, 62 >>>>>>> .r430463 92 production_dirs, 64 93 report = False, -
anuga_work/production/dampier_2006/project.py
r4357 r4373 28 28 print 'gtime: ', gtime 29 29 30 #tide = -2.5 31 #tide = 0.0 30 32 tide = 2.4 31 33 … … 150 152 print 'Area of bounding polygon', polygon_area(poly_all)/1000000.0 151 153 152 res_poly_all = 400000153 #res_poly_all = 500000154 #res_poly_all = 400000 155 res_poly_all = 150000 154 156 155 157 ############################### … … 161 163 162 164 poly_dampier = read_polygon(polygons_dir+'dampier_town.csv') 163 res_dampier = 1000 164 #res_dampier = 500 165 #res_dampier = 5000 165 #res_dampier = 1000 166 res_dampier = 500 166 167 167 168 poly_karratha = read_polygon(polygons_dir+'karrathav2.csv') … … 169 170 170 171 poly_karratha_town = read_polygon(polygons_dir+'karratha_townv2.csv') 171 res_karratha_town = 1000 172 #res_karratha_town = 500 173 #res_karratha_town = 5000 172 #res_karratha_town = 1000 173 res_karratha_town = 500 174 174 175 175 poly_facility = read_polygon(polygons_dir+'facility.csv') … … 180 180 181 181 poly_coast = read_polygon(polygons_dir+'coastpoly.csv') 182 #res_coast = 1000183 res_coast = 10000182 res_coast = 2500 183 #res_coast = 10000 184 184 185 185 poly_NWislands = read_polygon(polygons_dir+'nw_islands_area.csv') … … 254 254 [poly_karratha,res_karratha],[poly_karratha_town,res_karratha_town]] 255 255 256 trigs_min = number_mesh_triangles(interior_regions_test, poly_all, res_poly_all) 256 #trigs_min = number_mesh_triangles(interior_regions_test, poly_all, res_poly_all) 257 trigs_min = number_mesh_triangles(interior_regions, poly_all, res_poly_all) 257 258 258 259 print 'min number triangles', trigs_min -
anuga_work/production/dampier_2006/run_dampier.py
r4357 r4373 28 28 from anuga.shallow_water import File_boundary 29 29 from anuga.shallow_water import Reflective_boundary 30 from anuga.shallow_water import Field_boundary 30 31 from Numeric import allclose 31 32 … … 43 44 #------------------------------------------------------------------------------ 44 45 46 #copy script must be before screen_catcher 47 if myid == 0: 48 copy_code_files(project.output_run_time_dir,__file__, 49 dirname(project.__file__)+sep+ project.__name__+'.py' ) 50 barrier() 51 45 52 start_screen_catcher(project.output_run_time_dir, myid, numprocs) 46 53 … … 56 63 57 64 # creates copy of code in output dir 58 if myid == 0: 59 copy_code_files(project.output_run_time_dir,__file__, 60 dirname(project.__file__)+sep+ project.__name__+'.py' ) 61 barrier() 65 62 66 63 67 print 'USER: ', project.user … … 199 203 domain.set_maximum_allowed_speed(0.1) # Allow a little runoff (0.1 is OK) 200 204 print 'domain id', id(domain) 201 domain.beta_h = 0202 domain.limit2007 = 1205 #domain.beta_h = 0 206 #domain.limit2007 = 1 203 207 204 208 #------------------------------------------------------------------------- … … 212 216 # domain, time_thinning=24, use_cache=True, verbose=True) 213 217 Bf = Field_boundary(project.boundaries_dir_namea + '.sww', 214 domain, time_thinning=12, mean_stage=tide, use_cache=True, verbose=True)218 domain, time_thinning=12, mean_stage=tide, use_cache=True, verbose=True) 215 219 216 220 print 'finished reading boundary file' … … 237 241 domain.write_time() 238 242 domain.write_boundary_statistics(tags = 'ocean') 243 244 domain.write_time(track_speeds=True) 239 245 240 246 #for t in domain.evolve(yieldstep = 120, finaltime = 9000):
Note: See TracChangeset
for help on using the changeset viewer.