Changeset 4308


Ignore:
Timestamp:
Mar 21, 2007, 2:17:41 PM (17 years ago)
Author:
nick
Message:

update to dampier

Location:
anuga_work/production/dampier_2006
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/dampier_2006/get_timeseries.py

    r4282 r4308  
    2323   
    2424# sww file created from URS boundary
    25 production_dirs = {#'20070206_005106_run': '10000 yr wave height'}
    26                    '20070223_031527_run': 'URS boundary condition'}
     25production_dirs = {'boundaries': '10000 yr wave height'
     26                   #'20070307_224017_run': 'URS boundary normal'
     27                   }
    2728
     29   
    2830is_parallel = False
    2931if is_parallel == True:
     
    3335swwfiles = {}
    3436
     37#J:\inundation\data\western_australia\onslow_tsunami_scenario_2006\anuga\boundaries SU-AU_high_res1.sww
     38
     39#boundary_dir_filename= os.path.join(home,data,state,'onslow_tsunami_scenario_2006',an,bo,'SU-AU_high_res1.sww')
     40#gauges_dir_name_simple =
    3541if is_parallel == True:
     42    print 'buggur'
     43   
    3644
    37     for i in range(nodes):
    38         print 'Sending node %d of %d' %(i,nodes)
    39         swwfiles = {}
    40         #reportname = report_name + '_%s' %(i)
    41         for label_id in production_dirs.keys():
    42             if label_id == 'boundaries':
    43                 file_loc = project.boundaries_in_dir
    44                 swwfile = file_loc + sep + '20070223_031527_run' + sep + 'dampier.sww'
    45                 print 'hi'
    46             #else:
    47             #file_loc = project.output_dir + label_id + sep
    48             #sww_extra = '_P%s_%s' %(i,nodes)
    49             #swwfile = file_loc + project.scenario_name + sww_extra + '.sww'
    50             swwfiles[swwfile] = label_id
    51 
    52         texname, elev_output = sww2timeseries(swwfiles,
    53                                               project.gauges_dir_name_test,
    54                                               production_dirs,
    55                                               report = False,
    56                                               #reportname = reportname,
    57                                               plot_quantity = ['stage', 'momentum'],
    58                                               generate_fig = False,
    59                                               surface = False,
    60                                               time_min = None,
    61                                               time_max = None,
    62                                               title_on = False,
    63                                               verbose = True)
    64            
    65             #latex_output.append(texname)
    66    
    6745else:
    6846   
     
    7048       
    7149        if label_id == 'boundaries':
     50                print 'boundaries'
    7251                file_loc = project.boundaries_in_dir
    73                 swwfile = file_loc + sep + '20070223_031527_run' + sep + 'dampier.sww'
     52                swwfile = project.boundaries_dir_name3 + '.sww'
     53#                swwfile = boundary_dir_filename
    7454        else:
    7555            file_loc = project.output_dir + label_id + sep
     
    7858       
    7959    texname, elev_output = sww2timeseries(swwfiles,
    80                                           project.gauges_dir_name_test,
     60                                          project.gauges_dir_name_simple,
    8161                                          production_dirs,
    8262                                          report = False,
    8363                                          #reportname = report_name,
    84                                           plot_quantity = ['stage', 'momentum'],
     64#                                          plot_quantity = ['stage', 'momentum'],
     65                                          plot_quantity = ['stage', 'xmomentum', 'ymomentum'],
    8566                                          surface = False,
    8667                                          time_min = None,
     
    8869                                          title_on = False,
    8970                                          verbose = True)
     71                                         
  • anuga_work/production/dampier_2006/project.py

    r4291 r4308  
    9999boundaries_dir_name3 = boundaries_dir + boundaries_name+'_test_8500_12000'
    100100boundaries_dir_name4 = boundaries_dir + boundaries_name+'_8500_12000_no_zone'
    101 boundaries_dir_name5 = boundaries_dir + boundaries_name+'_not-gridded'
     101boundaries_dir_name5 = boundaries_dir + '20061026_173920_build'+sep+'dampier'
     102boundaries_dir_name6 = boundaries_dir + 'SU-AU'
    102103
    103104#boundaries_time_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'boundaries'+sep+build_time+sep
     
    113114gauge_name = 'dampier_gauges_up2.csv' #'dampier.csv'
    114115gauge_name_test = 'dampier_gauges_up_test.csv' #'dampier.csv'
     116gauge_name_simple = 'dampier_gauges_simple.csv'
    115117gauges_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'gauges'+sep
    116118gauges_dir_name = gauges_dir + gauge_name
    117119gauges_dir_name_test = gauges_dir + gauge_name_test
     120gauges_dir_name_simple = gauges_dir + gauge_name_simple
    118121
    119122
     
    176179
    177180poly_coast = read_polygon(polygons_dir+'coastpoly.csv')
    178 res_coast = 1000
    179 #res_coast = 10000
     181#res_coast = 1000
     182res_coast = 10000
    180183
    181184poly_NWislands = read_polygon(polygons_dir+'nw_islands_area.csv')
  • anuga_work/production/dampier_2006/run_dampier.py

    r4282 r4308  
    166166#                    filename = project.combined_dir_name + '.pts',
    167167# MUST USE TXT FILES FOR CACHING TO WORK!
    168                     filename = project.combined_smaller_dir_name + '.txt',
     168                    filename = project.combined_smallest_dir_name + '.txt',
    169169                    use_cache = True,
    170170                    verbose = True,
     
    203203print 'Reading Boundary file',project.boundaries_dir_name4 + '.sww'
    204204#Bf = File_boundary(boundaries_dir_name + '.sww',
    205 Bf = File_boundary(project.boundaries_dir_name4 + '.sww',
    206                   domain, time_thinning=4, use_cache=True, verbose=True)
     205Bf = File_boundary(project.boundaries_dir_name3 + '.sww',
     206                  domain, time_thinning=24, use_cache=True, verbose=True)
    207207
    208208print 'finished reading boundary file'
     
    226226t0 = time.time()
    227227
    228 for t in domain.evolve(yieldstep = 60, finaltime = 9000):
     228for t in domain.evolve(yieldstep = 60, finaltime = 3400):
    229229    domain.write_time()
    230230    domain.write_boundary_statistics(tags = 'ocean')
     
    233233#    domain.write_time()
    234234#    domain.write_boundary_statistics(tags = 'ocean')
    235      
     235'''     
    236236for t in domain.evolve(yieldstep = 60, finaltime = 28800
    237237                       ,skip_initial_step = True):
     
    243243    domain.write_time()
    244244    domain.write_boundary_statistics(tags = 'ocean')   
    245 
     245'''
    246246x, y = domain.get_maximum_inundation_location()
    247247q = domain.get_maximum_inundation_elevation()
Note: See TracChangeset for help on using the changeset viewer.