Changeset 2395 for development/momentum_sink/compare_sww.py
- Timestamp:
- Feb 14, 2006, 1:43:12 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
development/momentum_sink/compare_sww.py
r2379 r2395 5 5 import project 6 6 from pyvolution.util import file_function 7 import Numeric 8 #from friction_block #import test 9 10 #print "test", test 11 #import sys 12 #sys.exit() 7 13 8 14 9 15 #swwfile = project.outputname + '.sww' 10 swwfile = project.outputdir + sep + 'friction_12330.sww' 11 gauge_locations = [[10,10],[20,20]] 16 #swwfile = project.outputdir + sep + 'FrictionBlock_0.01_3.sww' 17 swwfile = project.outputdir + sep + 'Buildings_3662.sww' 18 gauge_depth = Numeric.arrayrange(0, 700, 20) 19 gauge_breadth = 100 20 gauge_locations = [] 12 21 13 quantities = ['stage','elevation'] 22 for GD in gauge_depth: 23 gauge_location = [GD,gauge_breadth] 24 gauge_locations.append(gauge_location) 25 26 quantities = ['stage','elevation','xmomentum'] 14 27 gauges = file_function(swwfile, 15 28 quantities = quantities, … … 18 31 use_cache = True) 19 32 20 times = [ 0,1,2,3,4]33 times = [150,500] 21 34 22 35 for gauge, _ in enumerate(gauge_locations):
Note: See TracChangeset
for help on using the changeset viewer.