Changeset 8093


Ignore:
Timestamp:
Dec 7, 2010, 5:17:53 PM (9 years ago)
Author:
habili
Message:

Updated the inlet operator to deal with variable discharge rates.
test_hydrograph.tms is the test data

Location:
trunk/anuga_core/source/anuga/structures
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/structures/testing_inlet_operator.py

    r8073 r8093  
    77from anuga.abstract_2d_finite_volumes.mesh_factory import rectangular_cross
    88from anuga.abstract_2d_finite_volumes.quantity import Quantity
     9from anuga.abstract_2d_finite_volumes.util import file_function
    910
    1011import anuga
     
    102103
    103104line = [[0.0, 5.0], [0.0, 10.0]]
    104 Q = 5.0
     105
     106Q = file_function('test_hydrograph.tms', quantities=['hydrograph'])
     107
    105108Inlet_operator(domain, line, Q)
    106109
     
    134137#min_delta_w = sys.maxint
    135138#max_delta_w = -min_delta_w
    136 for t in domain.evolve(yieldstep = 1.0, finaltime = 200):
     139for t in domain.evolve(yieldstep = 1.0, finaltime = 38):
    137140    domain.write_time()
    138141
Note: See TracChangeset for help on using the changeset viewer.