Ignore:
Timestamp:
Sep 25, 2006, 2:26:13 PM (18 years ago)
Author:
sexton
Message:

clean up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/hobart_2006/run_hobart.py

    r3660 r3661  
    8888                                 project.onshore_dem_name_25 + '.pts',
    8989                                 project.all_onshore_dem_name + '.pts')
    90 #print 'local offshore data sets'
    91 #G1 = Geospatial_data(file_name = project.offshore_dem_name_local1 + '.xya')
    92 #G2 = Geospatial_data(file_name = project.offshore_dem_name_local2 + '.xya')
    93 #G3 = Geospatial_data(file_name = project.offshore_dem_name_local3 + '.xya')
    94 #G4 = Geospatial_data(file_name = project.offshore_dem_name_local4 + '.xya')
    95 #G11 = G1 + G2 + G3 + G4
    96 #print 'aho offshore data sets'
    97 #G5 = Geospatial_data(file_name = project.offshore_dem_name_aho1 + '.xya')
    98 #G6 = Geospatial_data(file_name = project.offshore_dem_name_aho2 + '.xya')
    99 #G7 = Geospatial_data(file_name = project.offshore_dem_name_aho3 + '.xya')
    100 #G8 = Geospatial_data(file_name = project.offshore_dem_name_aho4 + '.xya')
    101 #G9 = Geospatial_data(file_name = project.offshore_dem_name_aho5 + '.xya')
    102 #G10 = Geospatial_data(file_name = project.offshore_dem_name_aho6 + '.xya')
    103 #G11 = Geospatial_data(file_name = project.offshore_dem_name_aho7 + '.xya')
    104 #G12 = Geospatial_data(file_name = project.offshore_dem_name_aho8 + '.xya')
    105 #G13 = Geospatial_data(file_name = project.offshore_dem_name_aho9 + '.xya')
    106 #G14 = Geospatial_data(file_name = project.offshore_dem_name_aho10 + '.xya')
    107 #G15 = Geospatial_data(file_name = project.offshore_dem_name_aho11 + '.xya')
    108 #G16 = Geospatial_data(file_name = project.offshore_dem_name_aho12 + '.xya')
    109 #G17 = Geospatial_data(file_name = project.offshore_dem_name_aho13 + '.xya')
    110 #G18 = Geospatial_data(file_name = project.offshore_dem_name_aho14 + '.xya')
    111 #G19 = Geospatial_data(file_name = project.offshore_dem_name_aho15 + '.xya')
    112 #G20 = Geospatial_data(file_name = project.offshore_dem_name_aho16 + '.xya')
    113 #G12 = G5+G6+G7+G8+G9+G10+G11+G12+G13+G14+G15+G16+G17+G18+G19+G20
    114 #print 'local onshore dem'
    115 #G21 = Geospatial_data(file_name = project.onshore_dem_name + '.pts')
    116 print 'coast'
    117 #G22 = Geospatial_data(file_name = project.coast_dem_name + '.xya')
    118 #print 'adding data sets'
    119 #G = G11 + G12 + G21 + G22
    120 #G = G1+G2+G3+G4+G5+G6+G7+G8+G9+G10+G11+G12+G13+G14+G15+G16+G17+G18+G19+G20+G21+G22
    121 #G = G5+G6+G7+G8+G9+G10+G11+G12+G13+G14+G15+G16+G17+G18+G19+G20+G21+G22
    122 #G = G21+G22+G5+G6+G7+G8+G9+G10+G11+G12+G13+G14+G15+G16+G17+G18+G19+G20
    123 #G = G21+G22+G5
    124 #G = Geospatial_data(file_name = project.onshore_dem_name + '.pts') #+ \
    125 #    Geospatial_data(file_name = project.coast_dem_name + '.xya') #+ \
    126 #    Geospatial_data(file_name = project.offshore_dem_name_aho1 + '.xya')
     90
     91print 'adding data sets'
    12792G = Geospatial_data(file_name = project.offshore_dem_name_local1 + '.xya')+\
    12893    Geospatial_data(file_name = project.offshore_dem_name_local2 + '.xya')+\
     
    148113G.export_points_file(project.combined_dem_name + '.pts')
    149114
    150 #-------------------------------------------------------------------------------                                 
     115#----------------------------------------------------------------------------
    151116# Create the triangular mesh based on overall clipping polygon with a tagged
    152117# boundary and interior regions defined in project.py along with
     
    171136          {'boundary_tags': {'bottom': [0], 'right': [1],
    172137                             'top': [2], 'left': [3]},
    173            'maximum_triangle_area': 250000,
    174            'filename': meshname,           
    175            'interior_regions': interior_regions},
     138           'maximum_triangle_area': 100000,
     139           'filename': meshname},           
     140           #'interior_regions': interior_regions},
    176141          verbose = True, evaluate=True)
    177142
     
    211176
    212177#-------------------------------------------------------------------------------                                 
    213 # Setup boundary conditions (all reflective)
     178# Setup boundary conditions
    214179#-------------------------------------------------------------------------------
    215180print 'start ferret2sww'
     
    274239t0 = time.time()
    275240
    276 for t in domain.evolve(yieldstep = 240, finaltime = 7200):
     241for t in domain.evolve(yieldstep = 60, finaltime = 120):
    277242    domain.write_time()
    278243    domain.write_boundary_statistics(tags = 'bottom')     
    279244
    280 for t in domain.evolve(yieldstep = 120, finaltime = 12600
    281                        ,skip_initial_step = True):
    282     domain.write_time()
    283     domain.write_boundary_statistics(tags = 'bottom')     
     245#for t in domain.evolve(yieldstep = 120, finaltime = 12600
     246#                       ,skip_initial_step = True):
     247#    domain.write_time()
     248#    domain.write_boundary_statistics(tags = 'bottom')     
    284249   
    285250print 'That took %.2f seconds' %(time.time()-t0)
Note: See TracChangeset for help on using the changeset viewer.