Changeset 4193


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

updates

Location:
anuga_work/production/dampier_2006
Files:
2 edited

Legend:

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

    r4186 r4193  
    7676tide_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'tide_data'+sep
    7777
    78 boundaries_source = '????'
     78boundaries_source = ''
     79boundaries_name = 'o_velocity'
    7980#boundaries locations
    8081boundaries_in_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'boundaries'+sep+'urs'+sep+boundaries_source+sep
    81 boundaries_in_dir_name = boundaries_in_dir + scenario_name
     82boundaries_in_dir_name = boundaries_in_dir + boundaries_name
    8283boundaries_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'boundaries'+sep
    83 boundaries_dir_name = boundaries_dir + scenario_name
     84boundaries_dir_name = boundaries_dir + boundaries_name
    8485#boundaries_time_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'boundaries'+sep+build_time+sep
    8586#boundaries_time_dir_name = boundaries_time_dir + boundaries_name  #Used by post processing
     
    102103
    103104refzone = 50
    104 ##south = degminsec2decimal_degrees(-20,55,0)
    105 ##north = degminsec2decimal_degrees(-20,15,0)
    106 ##west = degminsec2decimal_degrees(116,17,0)
    107 ##east = degminsec2decimal_degrees(117,10,0)
     105south_boundary = degminsec2decimal_degrees(-20,58,0)
     106north_boundary = degminsec2decimal_degrees(-20,13,0)
     107west_boundary = degminsec2decimal_degrees(116,15,0)
     108east_boundary = degminsec2decimal_degrees(117,11,0)
    108109##
    109110##p0 = [south, degminsec2decimal_degrees(116,32,0)]
     
    122123print 'Area of bounding polygon', polygon_area(poly_all)/1000000.0
    123124
    124 res_poly_all = 100000
     125#res_poly_all = 100000
     126res_poly_all = 500000
    125127
    126128###############################
     
    132134
    133135poly_dampier = read_polygon(polygons_dir+'dampier_town.csv')
    134 res_dampier = 500
     136#res_dampier = 500
     137res_dampier = 5000
    135138
    136139poly_karratha = read_polygon(polygons_dir+'karrathav2.csv')
     
    138141
    139142poly_karratha_town = read_polygon(polygons_dir+'karratha_townv2.csv')
    140 res_karratha_town = 500
     143#res_karratha_town = 500
     144res_karratha_town = 5000
     145
     146poly_facility = read_polygon(polygons_dir+'facility.csv')
     147res_facility = 1000
    141148
    142149poly_delambre = read_polygon(polygons_dir+'delambre.csv')
    143 res_delambre = 1000
     150res_delambre = 5000
    144151
    145152poly_coast = read_polygon(polygons_dir+'coastpoly.csv')
    146 res_coast = 1000
     153#res_coast = 1000
     154res_coast = 10000
    147155
    148156poly_NWislands = read_polygon(polygons_dir+'nw_islands_area.csv')
     
    161169res_island0 = res_poly_all
    162170
    163 res_islands = 5000
     171#res_islands = 5000
     172res_islands = 15000
    164173
    165174poly_ref_nw4 = read_polygon(polygons_dir+'ref_nw4.csv')
     
    203212                    [poly_karratha,res_karratha],[poly_karratha_town,res_karratha_town],
    204213                    [poly_delambre,res_delambre],[poly_coast,res_coast],
     214                    [poly_facility,res_facility],
    205215                    #[poly_NWislands,res_NWislands],
    206216                    [poly_island0,res_island0],[poly_island1,res_island0],
  • 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.