Changeset 2930


Ignore:
Timestamp:
May 19, 2006, 5:34:17 PM (18 years ago)
Author:
nick
Message:

update to pt hedland

Location:
production/pt_hedland_2006
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • production/pt_hedland_2006/project.py

    r2922 r2930  
    44
    55from os import sep, environ, getenv, getcwd
    6 from os.path import expanduser
     6from os.path import expanduser, basename
    77from utilities.polygon import read_polygon
    88import sys
     
    1010from coordinate_transforms.redfearn import degminsec2decimal_degrees
    1111from time import localtime, strftime
     12
     13
     14
    1215
    1316#Making assumptions about the location of scenario data
     
    3437#    python_home = getenv('PWD')     
    3538#    home = environ['INUNDATIONHOME']     #Sandpit's parent dir
     39    user = basename(getenv('USERPROFILE'))
     40    print 'USER:', user
    3641else:   
    37 #    home = environ['INUNDATIONHOME']     #Sandpit's parent dir
    38 #    home = getenv('INUNDATIONHOME')     
    39 #    python_home = getenv('PWD')     
    4042    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
    4146#    home = sep+'d'+sep+'cit'+sep+'1'+sep+'cit'+sep+'risk_assessment_methods_project'+sep+'inundation'
    4247#    home = expanduser('~')
     
    111116# bounding polygon provided by Hamish
    112117#d0 = [818732.55, 8062768.27]
     118"""
     119old
    113120d0 = [755000.0, 8025000.0]
    114121d1 = [708940.32, 7750510.33]
     
    116123d3 = [604415.81, 7733013.56]
    117124d4 = [517682.34, 7899310.22]
     125"""
    118126
    119 polyAll = [d0, d4, d3, d2, d1]
     127d0 = [763852.0, 7934358.0]
     128d1 = [710987.0, 7925797.0]
     129d2 = [658264.0, 7926314.0]
     130d3 = [552686.0, 7871580.0]
     131d4 = [604415.81, 7733013.56]
     132d5 = [656561.15, 7732615.11]
     133d6 = [708940.32, 7750510.33]
     134
     135polyAll = [d0, d1, d2, d3, d4, d5, d6]
    120136
    121137#Interior region - Pt Hedland town
     
    129145
    130146#Are there other significant features?
    131 j0 = [670000, 7780000]
    132 j1 = [620000, 7745000]
    133 j2 = [665000, 7735000]
    134 j3 = [700000, 7755000]
     147j0 = [670000, 7760000]
     148j1 = [630000, 7745000]
     149j2 = [665000, 7743000]
     150j3 = [690000, 7755000]
    135151
    136152poly_region = [j0, j1, j2, j3]
  • production/pt_hedland_2006/run_pt_hedland.py

    r2913 r2930  
    5151
    5252# filenames
    53 print 'run home', project.home
    5453onshore_dem_name = project.onshore_dem_name
    5554offshore_points1 = project.offshore_dem_name1
     
    117116from pmesh.mesh_interface import create_mesh_from_regions
    118117
    119 region_res = 50000
     118region_res = 100000
    120119coast_res = 2500
    121 pt_hedland_res = 5000
     120pt_hedland_res = 500
    122121# derive poly_coast from project.coast_name using alpha_shape
    123122interior_regions = [[project.poly_pt_hedland, pt_hedland_res],
     
    156155#          {'boundary_tags': {'right': [0], 'bottomright': [1],
    157156#                             '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,
    161160           'filename': meshname,           
    162161           'interior_regions': interior_regions},
     
    247246                   f=lambda t: [(60<t<480)*6, 0, 0])
    248247
    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#
     250domain.set_boundary( {'topright': Bf, 'top': Bf,'topleft': Bf, 'left':  Br,
     251                             'bottomleft': Br, 'bottomright': Br, 'right': Br})
    252252                             
    253253#-------------------------------------------------------------------------------                                 
     
    261261    domain.write_boundary_statistics(tags = 'top')     
    262262
    263 for t in domain.evolve(yieldstep = 240, 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 = 240, finaltime = 19800
     263for 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
     268for t in domain.evolve(yieldstep = 60, finaltime = 19800
    269269                       ,skip_initial_step = True):
    270270    domain.write_time()
    271271    domain.write_boundary_statistics(tags = 'top')     
    272272   
    273 for t in domain.evolve(yieldstep = 240, finaltime = 25200
     273for t in domain.evolve(yieldstep = 120, finaltime = 25200
    274274                       ,skip_initial_step = True):
    275275    domain.write_time()
Note: See TracChangeset for help on using the changeset viewer.