Changeset 4193 for anuga_work/production/dampier_2006/run_dampier.py
- Timestamp:
- Jan 24, 2007, 3:03:26 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.