Changeset 4193
- Timestamp:
- Jan 24, 2007, 3:03:26 PM (18 years ago)
- Location:
- anuga_work/production/dampier_2006
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/dampier_2006/project.py
r4186 r4193 76 76 tide_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'tide_data'+sep 77 77 78 boundaries_source = '????' 78 boundaries_source = '' 79 boundaries_name = 'o_velocity' 79 80 #boundaries locations 80 81 boundaries_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_name82 boundaries_in_dir_name = boundaries_in_dir + boundaries_name 82 83 boundaries_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'boundaries'+sep 83 boundaries_dir_name = boundaries_dir + scenario_name84 boundaries_dir_name = boundaries_dir + boundaries_name 84 85 #boundaries_time_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'boundaries'+sep+build_time+sep 85 86 #boundaries_time_dir_name = boundaries_time_dir + boundaries_name #Used by post processing … … 102 103 103 104 refzone = 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)105 south_boundary = degminsec2decimal_degrees(-20,58,0) 106 north_boundary = degminsec2decimal_degrees(-20,13,0) 107 west_boundary = degminsec2decimal_degrees(116,15,0) 108 east_boundary = degminsec2decimal_degrees(117,11,0) 108 109 ## 109 110 ##p0 = [south, degminsec2decimal_degrees(116,32,0)] … … 122 123 print 'Area of bounding polygon', polygon_area(poly_all)/1000000.0 123 124 124 res_poly_all = 100000 125 #res_poly_all = 100000 126 res_poly_all = 500000 125 127 126 128 ############################### … … 132 134 133 135 poly_dampier = read_polygon(polygons_dir+'dampier_town.csv') 134 res_dampier = 500 136 #res_dampier = 500 137 res_dampier = 5000 135 138 136 139 poly_karratha = read_polygon(polygons_dir+'karrathav2.csv') … … 138 141 139 142 poly_karratha_town = read_polygon(polygons_dir+'karratha_townv2.csv') 140 res_karratha_town = 500 143 #res_karratha_town = 500 144 res_karratha_town = 5000 145 146 poly_facility = read_polygon(polygons_dir+'facility.csv') 147 res_facility = 1000 141 148 142 149 poly_delambre = read_polygon(polygons_dir+'delambre.csv') 143 res_delambre = 1000150 res_delambre = 5000 144 151 145 152 poly_coast = read_polygon(polygons_dir+'coastpoly.csv') 146 res_coast = 1000 153 #res_coast = 1000 154 res_coast = 10000 147 155 148 156 poly_NWislands = read_polygon(polygons_dir+'nw_islands_area.csv') … … 161 169 res_island0 = res_poly_all 162 170 163 res_islands = 5000 171 #res_islands = 5000 172 res_islands = 15000 164 173 165 174 poly_ref_nw4 = read_polygon(polygons_dir+'ref_nw4.csv') … … 203 212 [poly_karratha,res_karratha],[poly_karratha_town,res_karratha_town], 204 213 [poly_delambre,res_delambre],[poly_coast,res_coast], 214 [poly_facility,res_facility], 205 215 #[poly_NWislands,res_NWislands], 206 216 [poly_island0,res_island0],[poly_island1,res_island0], -
anuga_work/production/dampier_2006/run_dampier.py
r4186 r4193 67 67 # resolutions (maximal area of per triangle) for each polygon 68 68 #-------------------------------------------------------------------------- 69 70 poly = [[0,0],[0,100],[100,100],[100,0]] 71 72 create_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 81 sys.exit() 69 82 70 83 if myid == 0: … … 90 103 print domain.statistics() 91 104 92 """ 105 93 106 print 'starting to create boundary conditions' 94 107 boundaries_in_dir_name = project.boundaries_in_dir_name … … 102 115 cache(urs2sww, 103 116 (boundaries_in_dir_name, 104 # boundaries_time_dir_name),105 117 boundaries_dir_name), 106 118 {'verbose': True, … … 109 121 'minlon': project.west_boundary, 110 122 'maxlon': project.east_boundary, 111 # 'minlat': project.south,112 # 'maxlat': project.north,113 # 'minlon': project.west,114 # 'maxlon': project.east,115 123 'mint': 0, 'maxt': 35100, 116 124 'origin': domain.geo_reference.get_origin(), … … 121 129 ) 122 130 barrier() 123 """ 131 124 132 125 133 #------------------------------------------------------------------------- … … 131 139 132 140 from polygon import * 141 #following sets the stage/water to be offcoast only 133 142 IC = Polygon_function( [(project.poly_bathy, tide)], default = 0.) 134 143 domain.set_quantity('stage', IC) … … 170 179 print 'domain id', id(domain) 171 180 print 'Reading Boundary file' 172 #Bf = File_boundary(boundaries_dir_name + '.sww',173 # domain, time_thinning=5, use_cache=True, verbose=True)181 Bf = File_boundary(boundaries_dir_name + '.sww', 182 domain, time_thinning=10, use_cache=True, verbose=True) 174 183 175 184 print 'finished reading boundary file' … … 184 193 domain.set_boundary({'back': Br, 185 194 'side': Bd, 186 'ocean': B d})195 'ocean': Bf}) 187 196 print'finish set boundary' 188 197
Note: See TracChangeset
for help on using the changeset viewer.