Changeset 2645
- Timestamp:
- Mar 31, 2006, 4:20:53 PM (17 years ago)
- Location:
- production/onslow_2006
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
production/onslow_2006/project.py
r2624 r2645 27 27 offshore_name = 'onslow_offshore_points' 28 28 29 boundary_basename = 'SU-AU '29 boundary_basename = 'SU-AU_clip' 30 30 31 31 #swollen/ all data output … … 50 50 51 51 # boundary source data 52 MOST_dir = 'f:'+sep+'3'+sep+'ehn'+sep+'users'+sep+'davidb'+sep+'tsunami'+sep+'WA_project'+sep+'SU-AU_90'+sep+'most_2'+sep+'detailed'+sep52 #MOST_dir = 'f:'+sep+'3'+sep+'ehn'+sep+'users'+sep+'davidb'+sep+'tsunami'+sep+'WA_project'+sep+'SU-AU_90'+sep+'most_2'+sep+'detailed'+sep 53 53 54 54 codedir = getcwd()+sep … … 100 100 d4 = [310000, 7580000] 101 101 d5 = [330000, 7610000] 102 d6 = [330000, 7620000] 102 103 103 polyAll = [d0, d1, d2, d3, d4, d5 ]104 polyAll = [d0, d1, d2, d3, d4, d5, d6] 104 105 105 106 #Interior region - Onslow town -
production/onslow_2006/run_onslow.py
r2629 r2645 61 61 copy (project.codedir + 'run_onslow.py', project.outputdir + 'run_onslow.py') 62 62 print'hello' 63 print' most file', project.MOST_dir + project.boundary_basename+'_ha.nc'64 if access(project.MOST_dir + project.boundary_basename+'_ha.nc',F_OK) == 1 :65 print' most file', project.MOST_dir + project.boundary_basename63 #print' most file', project.MOST_dir + project.boundary_basename+'_ha.nc' 64 #if access(project.MOST_dir + project.boundary_basename+'_ha.nc',F_OK) == 1 : 65 # print' most file', project.MOST_dir + project.boundary_basename 66 66 67 67 ''' … … 80 80 use_cache=True, 81 81 verbose=True) 82 83 ''' 84 ''' 82 ''' 83 85 84 print'create G1' 86 85 G1 = Geospatial_data(file_name = project.offshore_dem_name + '.xya') … … 95 94 G.new_export_points_file(project.combined_dem_name + '.pts') 96 95 97 ''' 96 98 97 #------------------------------------------------------------------------------- 99 98 # Create the triangular mesh based on overall clipping polygon with a tagged … … 117 116 {'boundary_tags': {'top': [0], 'topleft': [1], 118 117 'left': [2], 'bottom': [3], 119 'bottomright': [4], 'topright': [5]}, 118 'bottomright': [4], 'right': [5], 119 'topright':[6]}, 120 120 'maximum_triangle_area': 1000000, 121 121 'filename': meshname, … … 162 162 163 163 tide = 0. 164 ''' 164 165 165 domain.set_quantity('stage', tide) 166 166 domain.set_quantity('friction', 0.0) … … 174 174 use_cache = False, 175 175 verbose = True, 176 alpha = 0. 1176 alpha = 0.05 177 177 ) 178 ''' 178 179 179 print 'hi1' 180 180 … … 191 191 192 192 cache(ferret2sww, 193 # (source_dir + project.boundary_basename, 193 (source_dir + project.boundary_basename, 194 source_dir + project.boundary_basename), 195 # (project.MOST_dir + project.boundary_basename, 194 196 # source_dir + project.boundary_basename), 195 (project.MOST_dir + project.boundary_basename,196 source_dir + project.boundary_basename),197 197 {'verbose': True, 198 198 # note didn't work with the below … … 229 229 domain.set_boundary( {'top': Bf, 'topleft': Bf, 230 230 'left': Br, 'bottom': Br, 231 'bottomright': Br, ' topright': Bf} )231 'bottomright': Br, 'right': Br, 'topright': Br} ) 232 232 233 233 … … 238 238 t0 = time.time() 239 239 240 for t in domain.evolve(yieldstep = 1000, finaltime = 10000):240 for t in domain.evolve(yieldstep = 1000, finaltime = 3000): 241 241 domain.write_time() 242 242 domain.write_boundary_statistics(tags = 'top') 243 243 244 for t in domain.evolve(yieldstep = 50, finaltime = 10100,244 for t in domain.evolve(yieldstep = 100, finaltime = 20000, 245 245 skip_initial_step = True): 246 246 domain.write_time() 247 247 domain.write_boundary_statistics(tags = 'top') 248 248 249 249 print 'That took %.2f seconds' %(time.time()-t0) 250 250
Note: See TracChangeset
for help on using the changeset viewer.