Changeset 4422
- Timestamp:
- Apr 24, 2007, 12:03:30 PM (18 years ago)
- Location:
- anuga_work/production/dampier_2006
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/dampier_2006/export_results.py
r4347 r4422 5 5 from os import sep 6 6 7 time_dir = '20061127_055714_run' # 7 time_dir = '20070418_035124_run' # 8 cellsize = 25 9 timestep = None 8 10 directory = project.output_dir 9 11 #name = directory + time_dir + sep + project.scenario_name 10 name = directory+ sep+project.scenario_name12 name = directory+time_dir+sep+project.scenario_name 11 13 12 is_parallel = True14 is_parallel = False 13 15 if is_parallel == True: nodes = 4 14 16 print 'output dir:', name 15 17 16 which_var = 118 which_var = 2 17 19 if which_var == 0: # Stage 18 20 outname = name + '_stage' … … 35 37 quantityname = 'elevation' #Elevation 36 38 39 40 37 41 if is_parallel == True: 42 # print 'is_parallel',is_parallel 38 43 for i in range(0,nodes): 39 44 namei = name + '_P%d_%d' %(i,nodes) … … 42 47 sww2dem(namei, basename_out = outnamei, 43 48 quantity = quantityname, 44 timestep = 1,45 cellsize = 100,46 #easting_min = project.e_min_area,47 #easting_max = project.e_max_area,48 #northing_min = project.n_min_area,49 #northing_max = project.n_max_area,49 timestep = timestep, 50 cellsize = cellsize, 51 easting_min = project.e_min_area, 52 easting_max = project.e_max_area, 53 northing_min = project.n_min_area, 54 northing_max = project.n_max_area, 50 55 reduction = max, 51 56 verbose = True, … … 55 60 sww2dem(name, basename_out = outname, 56 61 quantity = quantityname, 57 cellsize = 20, 62 timestep = timestep, 63 cellsize = cellsize, 58 64 easting_min = project.e_min_area, 59 65 easting_max = project.e_max_area, -
anuga_work/production/dampier_2006/get_timeseries.py
r4373 r4422 24 24 # sww file created from URS boundary 25 25 production_dirs = {#'boundaries': '10000 yr wave height' 26 '2007041 3_033455_run': 'URS boundary normal'26 '20070418_035124_run': 'URS boundary normal' 27 27 } 28 28 29 29 30 is_parallel = True30 is_parallel = False 31 31 if is_parallel == True: 32 32 nodes = 8 … … 89 89 90 90 texname, elev_output = sww2timeseries(swwfiles, 91 project.gauges_dir_name_simple, 91 project.gauges_dir_name, 92 # project.gauges_dir_name_simple, 92 93 production_dirs, 93 94 report = False, -
anuga_work/production/dampier_2006/project.py
r4401 r4422 21 21 22 22 #time stuff 23 time = strftime('%Y%m%d_%H%M%S',localtime()) #gets time for new dir 23 time = strftime('%Y%m%d_%H%M%S',gmtime()) #gets time for new dir 24 #time = strftime('%Y%m%d_%H%M%S',localtime()) #gets time for new dir 24 25 gtime = strftime('%Y%m%d_%H%M%S',gmtime()) #gets time for new dir 25 26 build_time = time+'_build' -
anuga_work/production/dampier_2006/run_dampier.py
r4401 r4422 100 100 #domain = cache(Domain, (meshes_dir_name), {'use_cache':True, 'verbose':True}, verbose=True) 101 101 #above don't work 102 domain = Domain(meshes_dir_name, use_cache= True, verbose=True)102 domain = Domain(meshes_dir_name, use_cache=False, verbose=True) 103 103 print 'domain id', id(domain) 104 104 print 'myhash', myhash(domain) … … 106 106 print domain.statistics() 107 107 108 boundaries_dir_name=project.boundaries_dir_name109 110 print 'starting to create boundary conditions'111 112 from anuga.shallow_water.data_manager import urs2sww108 #boundaries_dir_name=project.boundaries_dir_name 109 110 #print 'starting to create boundary conditions' 111 112 #from anuga.shallow_water.data_manager import urs2sww 113 113 114 114 … … 122 122 from polygon import * 123 123 #following sets the stage/water to be offcoast only 124 IC = Polygon_function( [(project.poly_mainland, 0.)], default = tide)125 #IC = Polygon_function( [(project.poly_mainland, 0.)], default = 200)124 # IC = Polygon_function( [(project.poly_mainland, 0.)], default = tide) 125 IC = Polygon_function( [(project.poly_mainland, 0.)], default = 200) 126 126 domain.set_quantity('stage', IC) 127 127 domain.set_quantity('friction', 0.01) … … 159 159 domain.set_maximum_allowed_speed(0.1) # Allow a little runoff (0.1 is OK) 160 160 print 'domain id', id(domain) 161 #domain.beta_h = 0161 domain.beta_h = 0 162 162 #domain.limit2007 = 1 163 163 … … 170 170 171 171 Bf = Field_boundary(project.boundaries_dir_namea + '.sww', 172 domain, time_thinning=1 2, mean_stage=tide,172 domain, time_thinning=1, mean_stage=tide, 173 173 use_cache=True, verbose=True) 174 174
Note: See TracChangeset
for help on using the changeset viewer.