Changeset 2317


Ignore:
Timestamp:
Feb 1, 2006, 4:28:22 PM (19 years ago)
Author:
sexton
Message:

Updates to Sydney example.

Location:
production/sydney_2006
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • production/sydney_2006/export_results.py

    r2313 r2317  
    88
    99#print 'Which variable do you want to export?'
    10 #which_var = int(raw_input('Stage = 0, Absolute Momentum = 1, Depth = 2'  ))
    11 which_var = 2
     10#which_var = int(raw_input('Stage = 0, Absolute Momentum = 1, Depth = 2, Speed = 3  '  ))
     11which_var = 3
    1212
    1313if which_var == 0:  # Stage
     
    2222    outname = name + '_depth'
    2323    quantityname = 'stage-elevation'  #Depth
     24
     25if 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
    2431   
    2532sww2dem(name, basename_out = outname,
  • production/sydney_2006/project.py

    r2293 r2317  
    3737nminviz = 6231000
    3838nmaxviz = 6283000
    39    
     39# for harbour region
     40#nminviz = 6248000
     41#nmaxvix = 6270000
     42# for botany bay region
     43#nmaxviz = 6248000
     44#nminvix = 6283000
     45
    4046basename = 'slump'
    4147
     
    6066#newoutputname = outputdir+'Combined Data v1'+sep+'d400'+sep+basename
    6167gauge_filename = outputdir + 'sydney_gauges.xya'
     68gauge_outname = outputdir + 'gauges_max_output.xya'
    6269
    6370#Georeferencing
     
    131138harbour_7x = degminsec2decimal_degrees(-33,34,30)
    132139harbour_7y = degminsec2decimal_degrees(151,20,20)
     140#harbour_8x = degminsec2decimal_degrees(-33,33,30)
     141#harbour_8y = degminsec2decimal_degrees(151,15,0)
    133142harbour_8x = degminsec2decimal_degrees(-33,33,30)
    134 harbour_8y = degminsec2decimal_degrees(151,15,0)
     143harbour_8y = degminsec2decimal_degrees(151,17,0)
     144#harbour_9x = degminsec2decimal_degrees(-33,45,30)
     145#harbour_9y = degminsec2decimal_degrees(151,15,0)
    135146harbour_9x = degminsec2decimal_degrees(-33,45,30)
    136 harbour_9y = degminsec2decimal_degrees(151,15,0)
     147harbour_9y = degminsec2decimal_degrees(151,17,0)
    137148harbour_10x = degminsec2decimal_degrees(-33,45,10)
    138149harbour_10y = degminsec2decimal_degrees(151,11,40)
     
    197208j92 = [bb_10x, bb_10y]
    198209
    199 botanybay_polygon_2 = [j92, j12, j22, j62, j82, j72, j42, j02]
     210botanybay_polygon_2 = [j92, j12, j22, j62, j82, j72, j42] # worked
    200211#botanybay_polygon_2 = [j02, j12, j22, j32, j42, j52] # worked
    201212
  • production/sydney_2006/run_sydney_smf.py

    r2293 r2317  
    8080if mytest == 0:
    8181    # for whole region
    82     interior_res = 2000 # run at 2000 for final one
     82    interior_res = 5000
    8383    interior_regions = [[project.harbour_polygon_2, interior_res],
    8484                        [project.botanybay_polygon_2, interior_res]] # maximal area of per triangle
     
    134134    # as advised by Adrian, this can be as much as 15000-30000 metres
    135135    # len = 4500.0
    136     len = 15000.0
     136    len = 30000.0
    137137    #thk = 670 #thk = 760.0
    138     thk = 75.0
     138    dep = 400.0
     139    thk = 0.44*dep #thk = 120.0
    139140    wid = 15000.0 # for slump scenario, wid=len
    140141    #dep = 400 #1000.0 #d = 400 doesn't make sense with thk = 670!
    141     dep = 400.0
    142142    rad = 3330
    143143    dp = 0.23
     
    190190t0 = time.time()
    191191
    192 for t in domain.evolve(yieldstep = 120, finaltime = 10800): #120 10800 = 3hrs
     192for t in domain.evolve(yieldstep = 120, finaltime = 18000): #120 10800 = 3hrs, 18000 = 5hrs
    193193    domain.write_time()
    194194    domain.write_boundary_statistics(tags = 'bottom') #quantities = 'stage')     
Note: See TracChangeset for help on using the changeset viewer.