Ignore:
Timestamp:
Jun 14, 2012, 12:31:32 AM (12 years ago)
Author:
davies
Message:

bal_dev: Updates

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  
    1010import numpy
    1111from anuga.structures.inlet_operator import Inlet_operator
    12 from anuga import *
     12#from anuga import *
    1313#from swb_domain import domain
    1414#from anuga import *
     
    8282
    8383
    84 domain.set_name('channel_floodplain1_bal_dev_lowvisc') # Output name
     84domain.set_name('channel_floodplain1') # Output name
    8585#domain.set_store_vertices_uniquely(True)
    8686#domain.use_edge_limiter=False
     
    142142
    143143# Define inlet operator
    144 flow_in_yval=100.0
     144flow_in_yval=10.0
    145145if True:
    146146    line1 = [ [floodplain_width/2. - chan_width/2., flow_in_yval],\
     
    245245    if( numpy.floor(t/100.) == t/100. ):
    246246        print '#### COMPUTING FLOW THROUGH CROSS-SECTIONS########'
     247        s0 = domain.get_flow_through_cross_section([[0., 10.0], [floodplain_width, 10.]])
    247248        s1 = domain.get_flow_through_cross_section([[0., floodplain_length-300.0], [floodplain_width, floodplain_length-300.0]])
    248249        s2 = domain.get_flow_through_cross_section([[0., floodplain_length-1.0], [floodplain_width, floodplain_length-1.0]])
    249250       
    250         print 'Cross sectional flows: ', s1, s2
     251        print 'Cross sectional flows: ', s0, s1, s2
    251252        print '$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$'
    252253
  • trunk/anuga_work/development/gareth/tests/channel_floodplain/plotme.py

    r8384 r8446  
    44
    55# Time-index to plot outputs from
    6 index=53
     6index=60
    77
    88#p2 = util.get_output('channel_floodplain1_bal_dev.sww', minimum_allowed_height=0.01)
     
    1010#p=util.get_centroids(p2, velocity_extrapolation=True)
    1111
    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)
     13p2 = util.get_output('channel_floodplain1.sww', 0.01)
    1314p=util.get_centroids(p2, velocity_extrapolation=True)
    1415
Note: See TracChangeset for help on using the changeset viewer.