- Timestamp:
- Sep 1, 2010, 6:11:25 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/structures/boyd_box_routine.py
r7980 r7984 70 70 local_debug ='false' 71 71 72 if self.inflow.get_ average_height() > 0.01: #this value was 0.01:72 if self.inflow.get_enquiry_height() > 0.01: #this value was 0.01: 73 73 if local_debug =='true': 74 74 log.critical('Specific E & Deltat Tot E = %s, %s' 75 % (str(self.inflow.get_ average_specific_energy()),75 % (str(self.inflow.get_enquiry_specific_energy()), 76 76 str(self.delta_total_energy))) 77 77 log.critical('culvert type = %s' % str(culvert_type)) … … 79 79 80 80 if self.log_filename is not None: 81 s = 'Specific energy = %f m' % self.inflow.get_ average_specific_energy()81 s = 'Specific energy = %f m' % self.inflow.get_enquiry_specific_energy() 82 82 log_to_file(self.log_filename, s) 83 83 84 84 msg = 'Specific energy at inlet is negative' 85 assert self.inflow.get_ average_specific_energy() >= 0.0, msg85 assert self.inflow.get_enquiry_specific_energy() >= 0.0, msg 86 86 87 87 height = self.culvert_height … … 89 89 flow_width = self.culvert_width 90 90 91 Q_inlet_unsubmerged = 0.540*g**0.5*width*self.inflow.get_ average_specific_energy()**1.50 # Flow based on Inlet Ctrl Inlet Unsubmerged92 Q_inlet_submerged = 0.702*g**0.5*width*height**0.89*self.inflow.get_ average_specific_energy()**0.61 # Flow based on Inlet Ctrl Inlet Submerged91 Q_inlet_unsubmerged = 0.540*g**0.5*width*self.inflow.get_enquiry_specific_energy()**1.50 # Flow based on Inlet Ctrl Inlet Unsubmerged 92 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 93 93 94 94 # FIXME(Ole): Are these functions really for inlet control? … … 120 120 case = 'INLET CTRL Culvert is open channel flow we will for now assume critical depth' 121 121 122 if self.delta_total_energy < self.inflow.get_ average_specific_energy():122 if self.delta_total_energy < self.inflow.get_enquiry_specific_energy(): 123 123 # Calculate flows for outlet control 124 124 125 125 # Determine the depth at the outlet relative to the depth of flow in the Culvert 126 if self.outflow.get_ average_height() > height: # The Outlet is Submerged126 if self.outflow.get_enquiry_height() > height: # The Outlet is Submerged 127 127 outlet_culvert_depth=height 128 128 flow_area=width*height # Cross sectional area of flow in the culvert … … 172 172 # END CODE BLOCK for DEPTH > Required depth for CULVERT Flow 173 173 174 else: # self.inflow.get_ average_height() < 0.01:174 else: # self.inflow.get_enquiry_height() < 0.01: 175 175 Q = barrel_velocity = outlet_culvert_depth = 0.0 176 176
Note: See TracChangeset
for help on using the changeset viewer.