Changeset 2470
- Timestamp:
- Mar 3, 2006, 10:03:34 AM (19 years ago)
- Location:
- production/onslow_2006
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
production/onslow_2006/project.py
r2452 r2470 40 40 outputdir = home+sep+scenario_dir_name+sep+'output'+sep 41 41 polygondir = home+sep+scenario_dir_name+sep+'polygons'+sep 42 boundarydir = home+sep+scenario_dir_name+sep+'boundaries'+sep 42 43 43 44 meshname = meshdir + basename -
production/onslow_2006/run_onslow.py
r2451 r2470 20 20 21 21 # Related major packages 22 from pyvolution.shallow_water import Domain, Reflective_boundary 23 from pyvolution.shallow_water import Domain, Time_boundary22 from pyvolution.shallow_water import Domain, Reflective_boundary, \ 23 Dirichlet_boundary, Time_boundary 24 24 from pyvolution.data_manager import convert_dem_from_ascii2netcdf, dem2pts 25 25 from pyvolution.combine_pts import combine_rectangular_points_files … … 132 132 #------------------------------------------------------------------------------- 133 133 134 domain.set_quantity('stage', 0.) 134 tide = 0. 135 136 domain.set_quantity('stage', tide) 135 137 domain.set_quantity('friction', 0.0) 136 138 domain.set_quantity('elevation', … … 145 147 # Setup boundary conditions (all reflective) 146 148 #------------------------------------------------------------------------------- 149 150 from pyvolution.data_manager import ferret2sww 151 152 south = project.south 153 north = project.north 154 west = project.west 155 east = project.east 147 156 148 157 cache(ferret2sww, … … 166 175 167 176 Br = Reflective_boundary(domain) 168 # 10 min square wave starting at 1 min, 6m high 177 Bd = Dirichlet_boundary([tide,0,0]) 178 179 180 # 7 min square wave starting at 1 min, 6m high 169 181 Bw = Time_boundary(domain = domain, 170 f=lambda t: [( 50<t<800)*6, 0, 0])182 f=lambda t: [(60<t<480)*6, 0, 0]) 171 183 172 184 domain.set_boundary( {'top': Bw, 'topleft': Br, … … 182 194 t0 = time.time() 183 195 184 for t in domain.evolve(yieldstep = 50, finaltime = 5000):196 for t in domain.evolve(yieldstep = 50, finaltime = 100): 185 197 domain.write_time() 186 198 domain.write_boundary_statistics(tags = 'top')
Note: See TracChangeset
for help on using the changeset viewer.