- Timestamp:
- Jun 14, 2012, 12:31:32 AM (12 years ago)
- Location:
- trunk/anuga_work/development/gareth/tests/channel_floodplain
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/gareth/tests/channel_floodplain/channel_floodplain1.py
r8353 r8446 10 10 import numpy 11 11 from anuga.structures.inlet_operator import Inlet_operator 12 from anuga import *12 #from anuga import * 13 13 #from swb_domain import domain 14 14 #from anuga import * … … 82 82 83 83 84 domain.set_name('channel_floodplain1 _bal_dev_lowvisc') # Output name84 domain.set_name('channel_floodplain1') # Output name 85 85 #domain.set_store_vertices_uniquely(True) 86 86 #domain.use_edge_limiter=False … … 142 142 143 143 # Define inlet operator 144 flow_in_yval=10 0.0144 flow_in_yval=10.0 145 145 if True: 146 146 line1 = [ [floodplain_width/2. - chan_width/2., flow_in_yval],\ … … 245 245 if( numpy.floor(t/100.) == t/100. ): 246 246 print '#### COMPUTING FLOW THROUGH CROSS-SECTIONS########' 247 s0 = domain.get_flow_through_cross_section([[0., 10.0], [floodplain_width, 10.]]) 247 248 s1 = domain.get_flow_through_cross_section([[0., floodplain_length-300.0], [floodplain_width, floodplain_length-300.0]]) 248 249 s2 = domain.get_flow_through_cross_section([[0., floodplain_length-1.0], [floodplain_width, floodplain_length-1.0]]) 249 250 250 print 'Cross sectional flows: ', s 1, s2251 print 'Cross sectional flows: ', s0, s1, s2 251 252 print '$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$' 252 253 -
trunk/anuga_work/development/gareth/tests/channel_floodplain/plotme.py
r8384 r8446 4 4 5 5 # Time-index to plot outputs from 6 index= 536 index=60 7 7 8 8 #p2 = util.get_output('channel_floodplain1_bal_dev.sww', minimum_allowed_height=0.01) … … 10 10 #p=util.get_centroids(p2, velocity_extrapolation=True) 11 11 12 p2 = util.get_output('channel_floodplain1_bal_dev_lowvisc.sww', 0.01) 12 #p2 = util.get_output('channel_floodplain1_bal_dev_lowvisc.sww', 0.01) 13 p2 = util.get_output('channel_floodplain1.sww', 0.01) 13 14 p=util.get_centroids(p2, velocity_extrapolation=True) 14 15
Note: See TracChangeset
for help on using the changeset viewer.