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

bal_dev: Updates

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.