Changeset 8020
- Timestamp:
- Sep 16, 2010, 5:06:07 PM (14 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
r8018 r8020 87 87 # Water has risen above inlet 88 88 89 if self.log_filename is not None:90 s = 'Specific energy = %f m' % self.inflow.get_enquiry_specific_energy()91 log_to_file(self.log_filename, s)92 89 93 90 msg = 'Specific energy at inlet is negative' … … 177 174 hyd_rad = flow_area/perimeter 178 175 179 if self.log_filename is not None: 180 s = 'hydraulic radius at outlet = %f' % hyd_rad 181 log_to_file(self.log_filename, s) 176 182 177 183 178 # Final Outlet control velocity using tail water … … 185 180 Q_outlet_tailwater = flow_area * culvert_velocity 186 181 187 if self.log_filename is not None:188 s = 'Q_outlet_tailwater = %.6f' % Q_outlet_tailwater189 log_to_file(self.log_filename, s)190 182 Q = min(Q, Q_outlet_tailwater) 191 183 else: -
trunk/anuga_core/source/anuga/structures/structure_operator.py
r8019 r8020 303 303 message += 'Velocity [m/s]: %.2f\n' % self.velocity 304 304 message += 'Inlet Driving Energy %.2f\n' % self.driving_energy 305 message += ' delta total energy %.2f\n' % self.delta_total_energy305 message += 'Delta Total Energy %.2f\n' % self.delta_total_energy 306 306 307 307 print message -
trunk/anuga_core/source/anuga/structures/test_Outlet_Ctrl.py
r8018 r8020 26 26 #from anuga.culvert_flows.culvert_class import Culvert_flow 27 27 from anuga.structures.boyd_pipe_operator import Boyd_pipe_operator 28 from anuga.structures.boyd_box_operator import Boyd_box_operator 28 29 #from anuga.culvert_flows.culvert_routines import weir_orifice_channel_culvert_model 29 30 from math import pi,pow,sqrt … … 140 141 # Setup CULVERT INLETS and OUTLETS in Current Topography 141 142 #------------------------------------------------------------------------------ 142 print 'D EFINING any Structures if Required'143 print 'Defining Structures' 143 144 144 145 # DEFINE CULVERT INLET AND OUTLETS … … 166 167 ep1 = [50.0, y] 167 168 losses = {'inlet':0.5, 'outlet':1, 'bend':0, 'grate':0, 'pier': 0, 'other': 0} 168 culverts.append(Boyd_pipe_operator(domain, 169 # culverts.append(Boyd_pipe_operator(domain, 170 # end_point0=ep0, 171 # end_point1=ep1, 172 # losses=losses, 173 # diameter=1.5, #culvert_width, #3.658, 174 # apron=6.0, 175 # use_momentum_jet=True, 176 # use_velocity_head=True, 177 # manning=0.013, 178 # logging=True, 179 # label='culvert', 180 # verbose=False)) 181 182 183 # Boyd_pipe_operator(domain, 184 # end_point0=ep0, 185 # end_point1=ep1, 186 # losses=losses, 187 # diameter=1.5, #culvert_width, #3.658, 188 # apron=6.0, 189 # use_momentum_jet=True, 190 # use_velocity_head=True, 191 # manning=0.013, 192 # logging=True, 193 # label='pipe_culvert', 194 # verbose=False) 195 196 Boyd_box_operator(domain, 169 197 end_point0=ep0, 170 198 end_point1=ep1, 171 199 losses=losses, 172 diameter=1.5, #culvert_width, #3.658, 200 width=culvert_width, 201 height=10.0, 173 202 apron=6.0, 174 203 use_momentum_jet=True, … … 176 205 manning=0.013, 177 206 logging=True, 178 verbose=False)) 207 label='box_culvert', 208 verbose=False) 179 209 180 210
Note: See TracChangeset
for help on using the changeset viewer.