Changeset 2539
- Timestamp:
- Mar 13, 2006, 4:47:16 PM (19 years ago)
- Location:
- production/onslow_2006
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
production/onslow_2006/project.py
r2519 r2539 38 38 39 39 #swollen/ all data output 40 basename = 'source '40 basename = 'source_fine_clipped' 41 41 42 42 if sys.platform == 'win32': -
production/onslow_2006/run_onslow.py
r2522 r2539 21 21 # Related major packages 22 22 from pyvolution.shallow_water import Domain, Reflective_boundary, \ 23 Dirichlet_boundary, Time_boundary 23 Dirichlet_boundary, Time_boundary, File_boundary 24 24 from pyvolution.data_manager import convert_dem_from_ascii2netcdf, dem2pts 25 25 from pyvolution.combine_pts import combine_rectangular_points_files … … 55 55 convert_dem_from_ascii2netcdf(onshore_dem_name, use_cache=True, verbose=True) 56 56 dem2pts(onshore_dem_name, 57 #easting_min=project.eastingmin,58 #easting_max=project.eastingmax,59 #northing_min=project.northingmin,60 #northing_max= project.northingmax,57 easting_min=project.eastingmin, 58 easting_max=project.eastingmax, 59 northing_min=project.northingmin, 60 northing_max= project.northingmax, 61 61 use_cache=True, 62 62 verbose=True) … … 64 64 65 65 # combining the coarse and fine data 66 combine_rectangular_points_files( project.onshore_dem_name + '.pts',66 combine_rectangular_points_files( 67 67 project.coarsedemname + '.pts', 68 project.onshore_dem_name + '.pts', 68 69 project.combineddemname + '.pts') 69 70 … … 140 141 domain.set_quantity('elevation', 141 142 # 0. 143 # filename = project.onshore_dem_name + '.pts', 142 144 filename = project.combineddemname + '.pts', 143 145 # filename = project.coarsedemname + '.pts', … … 150 152 # Setup boundary conditions (all reflective) 151 153 #------------------------------------------------------------------------------- 152 ''' 154 153 155 from pyvolution.data_manager import ferret2sww 154 156 … … 159 161 160 162 cache(ferret2sww, 161 (source_dir +project.boundary_basename,162 project.boundary_basename),163 (source_dir + project.boundary_basename, 164 source_dir + project.boundary_basename), 163 165 {'verbose': True, 164 'minlat': south-1, 165 'maxlat': north+1, 166 'minlon': west-1, 167 'maxlon': east+1, 166 # 'minlat': south - 1, 167 # 'maxlat': north + 1, 168 # 'minlon': west - 1, 169 # 'maxlon': east + 1, 170 'minlat': south, 171 'maxlat': north, 172 'minlon': west, 173 'maxlon': east, 168 174 # 'origin': project.mesh_origin, 169 175 'origin': domain.geo_reference.get_origin(), … … 175 181 verbose = True) 176 182 177 ''' 183 178 184 print 'Available boundary tags', domain.get_boundary_tags() 179 185 186 Bf = File_boundary(source_dir + project.boundary_basename + '.sww', 187 domain, verbose = True) 180 188 Br = Reflective_boundary(domain) 181 189 Bd = Dirichlet_boundary([tide,0,0]) … … 186 194 f=lambda t: [(60<t<480)*6, 0, 0]) 187 195 188 domain.set_boundary( {'top': B w, 'topleft': Br,196 domain.set_boundary( {'top': Bf, 'topleft': Bf, 189 197 'left': Br, 'bottom': Br, 190 198 'bottomright': Br, 'topright': Br} ) … … 198 206 t0 = time.time() 199 207 200 for t in domain.evolve(yieldstep = 100, finaltime = 100):208 for t in domain.evolve(yieldstep = 50, finaltime = 50): 201 209 domain.write_time() 202 210 domain.write_boundary_statistics(tags = 'top')
Note: See TracChangeset
for help on using the changeset viewer.