Ignore:
Timestamp:
Jul 4, 2007, 5:22:18 PM (18 years ago)
Author:
nick
Message:

update model scripts

Location:
anuga_work/production/exmouth_2006
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/exmouth_2006/project.py

    r4581 r4587  
    3939finaltime=25000
    4040setup='final'
    41 source='onslow'
     41#source='onslow'
    4242#source='dampier'
    43 #source='exmouth'
     43source='exmouth'
    4444
    4545if setup =='trial':
     
    5656    print'final'
    5757    res_factor=1
    58     time_thinning=1
     58    time_thinning=4
    5959    yieldstep=60
    6060if setup =='store':
     
    118118
    119119if source=='onslow':
    120     boundaries_name = 'exmouth_3103_18052007' #onslow_hedland_broome gun
     120    boundaries_name = 'exmouth_3859_16052007' #onslow_hedland_broome gun
    121121    boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'onslow_hedland_broome'+sep+'1_10000'+sep
    122122   
    123123if source=='exmouth':
    124     boundaries_name = 'exmouth_3859_16052007' #exmouth gun
     124    boundaries_name = 'exmouth_3103_18052007' #exmouth gun
    125125    boundaries_in_dir = anuga_dir+'boundaries'+sep+'urs'+sep+'exmouth'+sep+'1_10000'+sep
    126126
     
    133133output_dir = anuga_dir+'outputs'+sep
    134134output_build_time_dir = output_dir+build_time+sep
    135 output_run_time_dir = output_dir +run_time+dir_comment+sep
    136 #output_run_time_dir = output_dir +'20070604_022250_run_final_0_onslow_nbartzis'+sep
     135#output_run_time_dir = output_dir +run_time+dir_comment+sep
     136output_run_time_dir = output_dir +'20070619_042140_run_final_0_onslow_nbartzis'+sep
    137137output_run_time_dir_name = output_run_time_dir + scenario_name  #Used by post processing
    138138
     
    224224# exporting asc grid
    225225eastingmin = 200663
    226 eastingmax = 206250
     226eastingmax = 207500
    227227northingmax = 7574000
    228228northingmin = 7564500
  • anuga_work/production/exmouth_2006/run_exmouth.py

    r4546 r4587  
    6666#    kwargs['bathy_file']=project.combined_small_dir_name + '.txt'
    6767    kwargs['boundary_file']=project.boundaries_in_dir_name + '.sww'
    68    
     68    '''
    6969    print 'output_dir',kwargs['output_dir']
    7070    if myid == 0:
     
    226226    #kwargs 'completed' must be added to write the final parameters to file
    227227    kwargs['completed']=str(time.time()-t0)
     228   
     229    '''
    228230    if myid == 0:
    229231        store_parameters(**kwargs)
    230232       
    231233        print 'memory usage before del domain',mem_usage()
    232         del domain
     234        #del domain
    233235        print 'memory usage after del domain',mem_usage()
    234236       
    235237        swwfile = kwargs['output_dir']+kwargs['aa_scenario_name']
    236238        export_grid(swwfile, extra_name_out = 'town',
    237 #                quantities = ['depth'], # '(xmomentum**2 + ymomentum**2)**0.5' defaults to elevation
    238                 quantities = ['elevation','depth','stage','speed'], # '(xmomentum**2 + ymomentum**2)**0.5' defaults to elevation
     239                quantities = ['speed'], # '(xmomentum**2 + ymomentum**2)**0.5' defaults to elevation
     240#                quantities = ['elevation','depth','speed','stage'], # '(xmomentum**2 + ymomentum**2)**0.5' defaults to elevation
    239241                timestep = None,
    240242                reduction = max,
     
    253255        buildings_filename_out = project.buildings_filename_out
    254256               
    255         inundation_damage(swwfile+'.sww', buildings_filename, buildings_filename_out)
     257        #inundation_damage(swwfile+'.sww', buildings_filename, buildings_filename_out)
    256258        print '\n Augmented building file written to %s \n' %buildings_filename_out
    257259   
Note: See TracChangeset for help on using the changeset viewer.