Changeset 2930
- Timestamp:
- May 19, 2006, 5:34:17 PM (18 years ago)
- Location:
- production/pt_hedland_2006
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
production/pt_hedland_2006/project.py
r2922 r2930 4 4 5 5 from os import sep, environ, getenv, getcwd 6 from os.path import expanduser 6 from os.path import expanduser, basename 7 7 from utilities.polygon import read_polygon 8 8 import sys … … 10 10 from coordinate_transforms.redfearn import degminsec2decimal_degrees 11 11 from time import localtime, strftime 12 13 14 12 15 13 16 #Making assumptions about the location of scenario data … … 34 37 # python_home = getenv('PWD') 35 38 # home = environ['INUNDATIONHOME'] #Sandpit's parent dir 39 user = basename(getenv('USERPROFILE')) 40 print 'USER:', user 36 41 else: 37 # home = environ['INUNDATIONHOME'] #Sandpit's parent dir38 # home = getenv('INUNDATIONHOME')39 # python_home = getenv('PWD')40 42 home = getenv('INUNDATIONHOME', sep+'d'+sep+'cit'+sep+'1'+sep+'cit'+sep+'risk_assessment_methods_project'+sep+'inundation') 43 user = getenv('LOGNAME') 44 print 'USER:', user 45 41 46 # home = sep+'d'+sep+'cit'+sep+'1'+sep+'cit'+sep+'risk_assessment_methods_project'+sep+'inundation' 42 47 # home = expanduser('~') … … 111 116 # bounding polygon provided by Hamish 112 117 #d0 = [818732.55, 8062768.27] 118 """ 119 old 113 120 d0 = [755000.0, 8025000.0] 114 121 d1 = [708940.32, 7750510.33] … … 116 123 d3 = [604415.81, 7733013.56] 117 124 d4 = [517682.34, 7899310.22] 125 """ 118 126 119 polyAll = [d0, d4, d3, d2, d1] 127 d0 = [763852.0, 7934358.0] 128 d1 = [710987.0, 7925797.0] 129 d2 = [658264.0, 7926314.0] 130 d3 = [552686.0, 7871580.0] 131 d4 = [604415.81, 7733013.56] 132 d5 = [656561.15, 7732615.11] 133 d6 = [708940.32, 7750510.33] 134 135 polyAll = [d0, d1, d2, d3, d4, d5, d6] 120 136 121 137 #Interior region - Pt Hedland town … … 129 145 130 146 #Are there other significant features? 131 j0 = [670000, 77 80000]132 j1 = [6 20000, 7745000]133 j2 = [665000, 77 35000]134 j3 = [ 700000, 7755000]147 j0 = [670000, 7760000] 148 j1 = [630000, 7745000] 149 j2 = [665000, 7743000] 150 j3 = [690000, 7755000] 135 151 136 152 poly_region = [j0, j1, j2, j3] -
production/pt_hedland_2006/run_pt_hedland.py
r2913 r2930 51 51 52 52 # filenames 53 print 'run home', project.home54 53 onshore_dem_name = project.onshore_dem_name 55 54 offshore_points1 = project.offshore_dem_name1 … … 117 116 from pmesh.mesh_interface import create_mesh_from_regions 118 117 119 region_res = 50000118 region_res = 100000 120 119 coast_res = 2500 121 pt_hedland_res = 500 0120 pt_hedland_res = 500 122 121 # derive poly_coast from project.coast_name using alpha_shape 123 122 interior_regions = [[project.poly_pt_hedland, pt_hedland_res], … … 156 155 # {'boundary_tags': {'right': [0], 'bottomright': [1], 157 156 # 'bottomleft': [2], 'left': [3], 'top': [4]}, 158 {'boundary_tags': {'top ': [0], 'left': [1],159 'bottomleft': [ 2], 'bottomright': [3], 'right': [4]},160 'maximum_triangle_area': 400000,157 {'boundary_tags': {'topright': [0], 'top': [1],'topleft': [2], 'left': [3], 158 'bottomleft': [4], 'bottomright': [5], 'right': [6]}, 159 'maximum_triangle_area': 500000, 161 160 'filename': meshname, 162 161 'interior_regions': interior_regions}, … … 247 246 f=lambda t: [(60<t<480)*6, 0, 0]) 248 247 249 #domain.set_boundary( {'right': Br, 'bottomright': Br, 250 # 'bottomleft': Br, 'left': Br, 'top': Bf} ) 251 domain.set_boundary( {'top': Bf, 'left': Br, 'bottomleft': Br, 'bottomright': Br, 'right': Br} ) 248 #domain.set_boundary( {'top': Bf, 'left': Br, 'bottomleft': Br, 'bottomright': Br, 'right': Br} ) 249 # 250 domain.set_boundary( {'topright': Bf, 'top': Bf,'topleft': Bf, 'left': Br, 251 'bottomleft': Br, 'bottomright': Br, 'right': Br}) 252 252 253 253 #------------------------------------------------------------------------------- … … 261 261 domain.write_boundary_statistics(tags = 'top') 262 262 263 for t in domain.evolve(yieldstep = 240, finaltime = 12600264 ,skip_initial_step = True): 265 domain.write_time() 266 domain.write_boundary_statistics(tags = 'top') 267 268 for t in domain.evolve(yieldstep = 240, finaltime = 19800263 for t in domain.evolve(yieldstep = 120, finaltime = 12600 264 ,skip_initial_step = True): 265 domain.write_time() 266 domain.write_boundary_statistics(tags = 'top') 267 268 for t in domain.evolve(yieldstep = 60, finaltime = 19800 269 269 ,skip_initial_step = True): 270 270 domain.write_time() 271 271 domain.write_boundary_statistics(tags = 'top') 272 272 273 for t in domain.evolve(yieldstep = 240, finaltime = 25200273 for t in domain.evolve(yieldstep = 120, finaltime = 25200 274 274 ,skip_initial_step = True): 275 275 domain.write_time()
Note: See TracChangeset
for help on using the changeset viewer.