Changeset 2317
- Timestamp:
- Feb 1, 2006, 4:28:22 PM (19 years ago)
- Location:
- production/sydney_2006
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
production/sydney_2006/export_results.py
r2313 r2317 8 8 9 9 #print 'Which variable do you want to export?' 10 #which_var = int(raw_input('Stage = 0, Absolute Momentum = 1, Depth = 2 ' ))11 which_var = 210 #which_var = int(raw_input('Stage = 0, Absolute Momentum = 1, Depth = 2, Speed = 3 ' )) 11 which_var = 3 12 12 13 13 if which_var == 0: # Stage … … 22 22 outname = name + '_depth' 23 23 quantityname = 'stage-elevation' #Depth 24 25 if which_var == 3: # Speed 26 outname = name + '_speed' 27 #quantityname = '((xmomentum/(stage-elevation))**2 + (ymomentum/(stage-elevation))**2)**0.5' #Speed 28 #quantityname = 'xmomentum/(stage-elevation)' #Speed 29 quantityname = '(xmomentum**2 + ymomentum**2 + 1.e-30)**0.5/(stage-elevation)' #Speed 30 24 31 25 32 sww2dem(name, basename_out = outname, -
production/sydney_2006/project.py
r2293 r2317 37 37 nminviz = 6231000 38 38 nmaxviz = 6283000 39 39 # for harbour region 40 #nminviz = 6248000 41 #nmaxvix = 6270000 42 # for botany bay region 43 #nmaxviz = 6248000 44 #nminvix = 6283000 45 40 46 basename = 'slump' 41 47 … … 60 66 #newoutputname = outputdir+'Combined Data v1'+sep+'d400'+sep+basename 61 67 gauge_filename = outputdir + 'sydney_gauges.xya' 68 gauge_outname = outputdir + 'gauges_max_output.xya' 62 69 63 70 #Georeferencing … … 131 138 harbour_7x = degminsec2decimal_degrees(-33,34,30) 132 139 harbour_7y = degminsec2decimal_degrees(151,20,20) 140 #harbour_8x = degminsec2decimal_degrees(-33,33,30) 141 #harbour_8y = degminsec2decimal_degrees(151,15,0) 133 142 harbour_8x = degminsec2decimal_degrees(-33,33,30) 134 harbour_8y = degminsec2decimal_degrees(151,15,0) 143 harbour_8y = degminsec2decimal_degrees(151,17,0) 144 #harbour_9x = degminsec2decimal_degrees(-33,45,30) 145 #harbour_9y = degminsec2decimal_degrees(151,15,0) 135 146 harbour_9x = degminsec2decimal_degrees(-33,45,30) 136 harbour_9y = degminsec2decimal_degrees(151,1 5,0)147 harbour_9y = degminsec2decimal_degrees(151,17,0) 137 148 harbour_10x = degminsec2decimal_degrees(-33,45,10) 138 149 harbour_10y = degminsec2decimal_degrees(151,11,40) … … 197 208 j92 = [bb_10x, bb_10y] 198 209 199 botanybay_polygon_2 = [j92, j12, j22, j62, j82, j72, j42 , j02]210 botanybay_polygon_2 = [j92, j12, j22, j62, j82, j72, j42] # worked 200 211 #botanybay_polygon_2 = [j02, j12, j22, j32, j42, j52] # worked 201 212 -
production/sydney_2006/run_sydney_smf.py
r2293 r2317 80 80 if mytest == 0: 81 81 # for whole region 82 interior_res = 2000 # run at 2000 for final one82 interior_res = 5000 83 83 interior_regions = [[project.harbour_polygon_2, interior_res], 84 84 [project.botanybay_polygon_2, interior_res]] # maximal area of per triangle … … 134 134 # as advised by Adrian, this can be as much as 15000-30000 metres 135 135 # len = 4500.0 136 len = 15000.0136 len = 30000.0 137 137 #thk = 670 #thk = 760.0 138 thk = 75.0 138 dep = 400.0 139 thk = 0.44*dep #thk = 120.0 139 140 wid = 15000.0 # for slump scenario, wid=len 140 141 #dep = 400 #1000.0 #d = 400 doesn't make sense with thk = 670! 141 dep = 400.0142 142 rad = 3330 143 143 dp = 0.23 … … 190 190 t0 = time.time() 191 191 192 for t in domain.evolve(yieldstep = 120, finaltime = 1 0800): #120 10800 = 3hrs192 for t in domain.evolve(yieldstep = 120, finaltime = 18000): #120 10800 = 3hrs, 18000 = 5hrs 193 193 domain.write_time() 194 194 domain.write_boundary_statistics(tags = 'bottom') #quantities = 'stage')
Note: See TracChangeset
for help on using the changeset viewer.