Changeset 8035


Ignore:
Timestamp:
Oct 14, 2010, 5:39:04 PM (13 years ago)
Author:
habili
Message:

Started a unit test for the boyd box operator

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

Legend:

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

    r8027 r8035  
    2424                 apron=None,
    2525                 manning=0.013,
    26                  enquiry_gap=0.2,
     26                 enquiry_gap=0.0,
    2727                 use_momentum_jet=True,
    2828                 use_velocity_head=True,
     
    184184                Q = min(Q, Q_outlet_tailwater)
    185185            else:
     186               
    186187                pass
    187188                #FIXME(Ole): What about inlet control?
  • trunk/anuga_core/source/anuga/structures/structure_operator.py

    r8034 r8035  
    102102        timestep = self.domain.get_timestep()
    103103       
    104         self.__determine_inflow_outflow()
     104        self.determine_inflow_outflow()
    105105       
    106106        Q, barrel_speed, outlet_depth = self.discharge_routine()
     
    175175
    176176
    177     def __determine_inflow_outflow(self):
     177    def determine_inflow_outflow(self):
    178178        # Determine flow direction based on total energy difference
    179179
     
    221221                             # direction of the culvert
    222222
    223         gap = (1 + self.enquiry_gap)*h
     223        gap = 1.5*h + self.enquiry_gap
    224224
    225225        self.inlet_polygons = []
Note: See TracChangeset for help on using the changeset viewer.