Ignore:
Timestamp:
Sep 2, 2010, 11:19:06 AM (14 years ago)
Author:
steve
Message:

Finally resolved conflicts between nariman and steve

File:
1 edited

Legend:

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

    r7988 r7991  
    8787            assert self.inflow.get_enquiry_specific_energy() >= 0.0, msg
    8888
     89            if self.use_velocity_head :
     90                driving_energy = self.inflow.get_enquiry_specific_energy()
     91            else:
     92                driving_energy = self.get_enquiry_height
     93
    8994            height = self.culvert_height
    9095            width = self.culvert_width
    9196            flow_width = self.culvert_width
    9297
    93             Q_inlet_unsubmerged = 0.540*g**0.5*width*self.inflow.get_enquiry_specific_energy()**1.50 # Flow based on Inlet Ctrl Inlet Unsubmerged
    94             Q_inlet_submerged = 0.702*g**0.5*width*height**0.89*self.inflow.get_enquiry_specific_energy()**0.61  # Flow based on Inlet Ctrl Inlet Submerged
     98            Q_inlet_unsubmerged = 0.540*g**0.5*width*driving_energy**1.50 # Flow based on Inlet Ctrl Inlet Unsubmerged
     99            Q_inlet_submerged = 0.702*g**0.5*width*height**0.89*driving_energy**0.61  # Flow based on Inlet Ctrl Inlet Submerged
    95100
    96101            # FIXME(Ole): Are these functions really for inlet control?
     
    122127                case = 'INLET CTRL Culvert is open channel flow we will for now assume critical depth'
    123128
    124             if self.delta_total_energy < self.inflow.get_enquiry_specific_energy():
     129            if self.delta_total_energy < driving_energy:
    125130                # Calculate flows for outlet control
    126131
Note: See TracChangeset for help on using the changeset viewer.