Ignore:
Timestamp:
Jan 24, 2007, 3:03:26 PM (18 years ago)
Author:
nick
Message:

updates

File:
1 edited

Legend:

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

    r4186 r4193  
    6767# resolutions (maximal area of per triangle) for each polygon
    6868#--------------------------------------------------------------------------
     69
     70poly = [[0,0],[0,100],[100,100],[100,0]]
     71
     72create_mesh_from_regions(poly,
     73                             boundary_tags={'back': [0], 'side': [1,3],
     74                                            'ocean': [2]},
     75                             maximum_triangle_area=1,
     76                             interior_regions=None,
     77                             filename=meshes_dir_name,
     78                             use_cache=True,
     79                             verbose=True)
     80
     81sys.exit()
    6982
    7083if myid == 0:
     
    90103print domain.statistics()
    91104
    92 """
     105
    93106print 'starting to create boundary conditions'
    94107boundaries_in_dir_name = project.boundaries_in_dir_name
     
    102115    cache(urs2sww,
    103116          (boundaries_in_dir_name,
    104     #       boundaries_time_dir_name),
    105117           boundaries_dir_name),
    106118          {'verbose': True,
     
    109121           'minlon': project.west_boundary,
    110122           'maxlon': project.east_boundary,
    111 #           'minlat': project.south,
    112 #           'maxlat': project.north,
    113 #           'minlon': project.west,
    114 #           'maxlon': project.east,
    115123           'mint': 0, 'maxt': 35100,
    116124           'origin': domain.geo_reference.get_origin(),
     
    121129           )
    122130barrier()
    123 """
     131
    124132
    125133#-------------------------------------------------------------------------
     
    131139
    132140    from polygon import *
     141    #following sets the stage/water to be offcoast only
    133142    IC = Polygon_function( [(project.poly_bathy, tide)], default = 0.)
    134143    domain.set_quantity('stage', IC)
     
    170179print 'domain id', id(domain)
    171180print 'Reading Boundary file'
    172 #Bf = File_boundary(boundaries_dir_name + '.sww',
    173 #                  domain, time_thinning=5, use_cache=True, verbose=True)
     181Bf = File_boundary(boundaries_dir_name + '.sww',
     182                  domain, time_thinning=10, use_cache=True, verbose=True)
    174183
    175184print 'finished reading boundary file'
     
    184193domain.set_boundary({'back': Br,
    185194                     'side': Bd,
    186                      'ocean': Bd})
     195                     'ocean': Bf})
    187196print'finish set boundary'
    188197
Note: See TracChangeset for help on using the changeset viewer.