Changeset 2706


Ignore:
Timestamp:
Apr 12, 2006, 1:50:07 PM (19 years ago)
Author:
nick
Message:

updates to onslow

Location:
production/onslow_2006
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • production/onslow_2006/export_results.py

    r2700 r2706  
    2222#which_var = int(raw_input('Stage = 0, Absolute Momentum = 1, Depth = 2, Speed = 3  '  ))
    2323which_var = 4
    24 
     24sys.stderr.write(sys.stdout.data)
    2525if which_var == 0:  # Stage
    2626    outname = name + '_stage'
     
    4646
    4747print 'start sww2dem'
     48sys.stderr.write(sys.stdout.data)
    4849sww2dem(name, basename_out = outname,
    4950            quantity = quantityname,
  • production/onslow_2006/project.py

    r2683 r2706  
    109109
    110110#Updated Main Domain of Onslow: first run NB 6/4/06
     111'''
    111112d0 = [310000, 7690000]
    112113d1 = [280000, 7690000]
     
    118119
    119120polyAll = [d0, d1, d2, d3, d4, d5, d6]
     121'''
     122d0 = [310000, 7630000]
     123d1 = [280000, 7630000]
     124d2 = [280000, 7590000]
     125d3 = [310000, 7590000]
    120126
     127polyAll = [d0, d1, d2, d3]
     128'''
    121129#Interior region - Onslow town
    122130
     
    137145
    138146poly_thevenard = [j0, j1, j2, j3]
    139 '''
     147
    140148# Direction Is
    141149k0 = [309000, 7619000]
  • production/onslow_2006/run_onslow.py

    r2683 r2706  
    3535
    3636from geospatial_data import *
     37import sys
     38from pyvolution.util import Screen_Catcher
    3739
    3840#-------------------------------------------------------------------------------
     
    6163copy (project.codedir + 'run_onslow.py', project.outputtimedir + 'run_onslow.py')
    6264print'output dir', project.outputtimedir
     65
     66#normal screen output is stored in
     67screen_output_name = project.outputtimedir + "screen_output.txt"
     68
     69#used to catch screen output to file
     70sys.stdout = Screen_Catcher(screen_output_name)
     71sys.stderr = Screen_Catcher(screen_output_name)
     72
    6373'''
    6474copied_files = False
     
    7585#if access(project.MOST_dir + project.boundary_basename+'_ha.nc',F_OK) == 1 :
    7686#    print' most file', project.MOST_dir + project.boundary_basename
    77 '''
     87
    7888
    7989# fine data (clipping the points file to smaller area)
     
    101111print'export G'
    102112G.new_export_points_file(project.combined_dem_name + '.pts')
    103 '''
     113
    104114
    105115#-------------------------------------------------------------------------------                                 
     
    112122
    113123# original
    114 interior_res = 1000
    115 interior_regions = [[project.poly_onslow, interior_res],
    116                     [project.poly_thevenard, interior_res]]
    117 
    118 print 'number of interior regions', len(interior_regions)
     124#interior_res = 1000
     125#interior_regions = [[project.poly_onslow, interior_res],
     126#                    [project.poly_thevenard, interior_res]]
     127
     128print 'number of interior regions'#, len(interior_regions)
    119129
    120130from caching import cache
     
    125135                             'bottom': [4], 'bottomright': [5],
    126136                             'topright':[6]},
    127            'maximum_triangle_area': 50000,
    128            'filename': meshname,           
    129            'interior_regions': interior_regions},
    130           verbose = True)
     137           'maximum_triangle_area': 500,
     138           'filename': meshname},           
     139#           'interior_regions': interior_regions},
     140           verbose = True)
    131141
    132142
     
    181191                    use_cache = True,
    182192                    verbose = True,
    183                     alpha = 0.05
     193                    alpha = 0.0
    184194                    )
    185195
     
    245255t0 = time.time()
    246256
    247 for t in domain.evolve(yieldstep = 500, finaltime = 3000):
     257for t in domain.evolve(yieldstep = 10, finaltime = 10):
    248258    domain.write_time()
    249259    domain.write_boundary_statistics(tags = 'top')     
    250 
     260'''
    251261for t in domain.evolve(yieldstep = 120, finaltime = 31000):
    252 #                       ,skip_initial_step = True):
     262                       ,skip_initial_step = True):
    253263    domain.write_time()
    254264    domain.write_boundary_statistics(tags = 'top')     
    255  
     265''' 
    256266print 'That took %.2f seconds' %(time.time()-t0)
    257267
Note: See TracChangeset for help on using the changeset viewer.