Changeset 8027
- Timestamp:
- Sep 30, 2010, 10:01:46 AM (13 years ago)
- Location:
- trunk/anuga_core/source/anuga/structures
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/structures/boyd_box_operator.py
r8020 r8027 73 73 self.discharge = 0.0 74 74 self.velocity = 0.0 75 76 self.case = 'N/A' 75 77 76 78 … … 117 119 perimeter= 2.0*dcrit+width 118 120 outlet_culvert_depth = dcrit 119 case = 'Inlet unsubmerged Box Acts as Weir'121 self.case = 'Inlet unsubmerged Box Acts as Weir' 120 122 else: # Inlet Submerged but check internal culvert flow depth 121 123 Q = Q_inlet_submerged … … 129 131 perimeter= 2.0*dcrit+width 130 132 outlet_culvert_depth = dcrit 131 case = 'Inlet submerged Box Acts as Orifice'133 self.case = 'Inlet submerged Box Acts as Orifice' 132 134 133 135 dcrit = (Q**2/anuga.g/width**2)**0.333333 … … 138 140 flow_area = width*height # Cross sectional area of flow in the culvert 139 141 perimeter = 2*(width+height) 140 case = 'Inlet CTRL Outlet unsubmerged PIPE PART FULL'142 self.case = 'Inlet CTRL Outlet unsubmerged PIPE PART FULL' 141 143 else: 142 144 flow_area = width * outlet_culvert_depth 143 145 perimeter = width+2*outlet_culvert_depth 144 case = 'INLET CTRL Culvert is open channel flow we will for now assume critical depth'146 self.case = 'INLET CTRL Culvert is open channel flow we will for now assume critical depth' 145 147 # Initial Estimate of Flow for Outlet Control using energy slope 146 148 #( may need to include Culvert Bed Slope Comparison) … … 158 160 flow_area=width*height # Cross sectional area of flow in the culvert 159 161 perimeter=2.0*(width+height) 160 case = 'Outlet submerged'162 self.case = 'Outlet submerged' 161 163 else: # Here really should use the Culvert Slope to calculate Actual Culvert Depth & Velocity 162 164 dcrit = (Q**2/anuga.g/width**2)**0.333333 … … 166 168 flow_area=width*height 167 169 perimeter=2.0*(width+height) 168 case = 'Outlet is Flowing Full'170 self.case = 'Outlet is Flowing Full' 169 171 else: 170 172 flow_area=width*outlet_culvert_depth 171 173 perimeter=(width+2.0*outlet_culvert_depth) 172 case = 'Outlet is open channel flow'174 self.case = 'Outlet is open channel flow' 173 175 174 176 hyd_rad = flow_area/perimeter -
trunk/anuga_core/source/anuga/structures/boyd_pipe_operator.py
r8018 r8027 71 71 self.velocity = 0.0 72 72 73 self.case = 'N/A' 74 73 75 74 76 def discharge_routine(self): … … 140 142 perimeter = diameter * math.pi 141 143 flow_width= diameter 142 case = 'Inlet CTRL Outlet submerged Circular PIPE FULL'144 self.case = 'Inlet CTRL Outlet submerged Circular PIPE FULL' 143 145 if local_debug == 'true': 144 146 anuga.log.critical('Inlet CTRL Outlet submerged Circular ' … … 151 153 flow_width= diameter*math.sin(alpha/2.0) 152 154 perimeter = alpha*diameter/2.0 153 case = 'INLET CTRL Culvert is open channel flow we will for now assume critical depth'155 self.case = 'INLET CTRL Culvert is open channel flow we will for now assume critical depth' 154 156 if local_debug =='true': 155 157 anuga.log.critical('INLET CTRL Culvert is open channel flow ' … … 167 169 perimeter = diameter * math.pi 168 170 flow_width= diameter 169 case = 'Outlet submerged'171 self.case = 'Outlet submerged' 170 172 if local_debug =='true': 171 173 anuga.log.critical('Outlet submerged') … … 183 185 perimeter = diameter * math.pi 184 186 flow_width= diameter 185 case = 'Outlet unsubmerged PIPE FULL'187 self.case = 'Outlet unsubmerged PIPE FULL' 186 188 if local_debug =='true': 187 189 anuga.log.critical('Outlet unsubmerged PIPE FULL') … … 191 193 flow_width= diameter*math.sin(alpha/2.0) 192 194 perimeter = alpha*diameter/2.0 193 case = 'Outlet is open channel flow we will for now assume critical depth'195 self.case = 'Outlet is open channel flow we will for now assume critical depth' 194 196 if local_debug == 'true': 195 197 anuga.log.critical('Q Outlet Depth and ALPHA = %s, %s, %s' -
trunk/anuga_core/source/anuga/structures/structure_operator.py
r8024 r8027 307 307 message += 'Inlet Driving Energy %.2f\n' % self.driving_energy 308 308 message += 'Delta Total Energy %.2f\n' % self.delta_total_energy 309 message += 'Control at this instant: %s\n' % self.case 309 310 310 311 print message
Note: See TracChangeset
for help on using the changeset viewer.