Changeset 6689 for branches/numpy/anuga/culvert_flows/culvert_routines.py
- Timestamp:
- Apr 1, 2009, 3:19:07 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy/anuga/culvert_flows/culvert_routines.py
r6553 r6689 28 28 manning=0.0, 29 29 sum_loss=0.0, 30 max_velocity=10.0, 30 31 log_filename=None): 31 32 … … 47 48 48 49 49 if inlet_depth > 0. 01:50 if inlet_depth > 0.1: #this value was 0.01: 50 51 # Water has risen above inlet 51 52 … … 116 117 117 118 # Outlet control velocity using tail water 118 culvert_velocity = sqrt(delta_total_energy/((sum_loss/2 *g)+(manning**2*culvert_length)/hyd_rad**1.33333))119 culvert_velocity = sqrt(delta_total_energy/((sum_loss/2/g)+(manning**2*culvert_length)/hyd_rad**1.33333)) 119 120 Q_outlet_tailwater = flow_area * culvert_velocity 120 121 … … 183 184 184 185 # Outlet control velocity using tail water 185 culvert_velocity = sqrt(delta_total_energy/((sum_loss/2 *g)+(manning**2*culvert_length)/hyd_rad**1.33333))186 culvert_velocity = sqrt(delta_total_energy/((sum_loss/2/g)+(manning**2*culvert_length)/hyd_rad**1.33333)) 186 187 Q_outlet_tailwater = flow_area * culvert_velocity 187 188 … … 216 217 else: # inlet_depth < 0.01: 217 218 Q = barrel_velocity = outlet_culvert_depth = 0.0 219 # Temporary flow limit 220 if barrel_velocity > max_velocity: 221 if log_filename is not None: 222 s = 'Barrel velocity was reduced from = %f m/s to %f m/s' % (barrel_velocity, max_velocity) 223 log_to_file(log_filename, s) 224 225 barrel_velocity = max_velocity 226 Q = flow_area * barrel_velocity 227 228 229 218 230 219 231 return Q, barrel_velocity, outlet_culvert_depth
Note: See TracChangeset
for help on using the changeset viewer.