Changeset 8861
- Timestamp:
- May 9, 2013, 12:34:07 PM (12 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
r8832 r8861 93 93 local_debug = False 94 94 95 if self.culvert_height <= 0.0: 96 Q = 0.0 97 barrel_velocity = 0.0 98 outlet_culvert_depth = 0.0 99 self.case = "Culvert blocked" 100 return Q, barrel_velocity, outlet_culvert_depth 101 102 103 95 104 if self.use_velocity_head: 96 105 self.delta_total_energy = \ -
trunk/anuga_core/source/anuga/structures/run_gate_operator.py
r8860 r8861 93 93 losses=1.5, 94 94 width=1.5, 95 height = 10.0, 95 96 apron=5.0, 96 97 use_momentum_jet=True, … … 98 99 manning=0.013, 99 100 verbose=False) 100 101 102 gate.set_culvert_height(10.0)103 101 104 102 line = [[0.0, 5.0], [0.0, 10.0]] … … 128 126 domain.write_time() 129 127 128 if num.allclose(t, 10.0): 129 gate.set_culvert_height(0.0) 130 130 131 if num.allclose(t, 10.0): 132 gate.set_culvert_height(0.000001) 131 Q, velocity, depth = gate.discharge_routine() 133 132 134 133 print gate.inlets[0].get_enquiry_stage() 135 134 print gate.inlets[1].get_enquiry_stage() 135 print gate.get_culvert_height() 136 136 137 Q, velocity, depth = gate.discharge_routine()138 139 print gate.culvert_height140 137 print Q 141 138 print velocity 142 139 print depth 143 140 144 145 #if domain.get_time() > 150.5 and domain.get_time() < 151.5 : 146 #Bi = anuga.Dirichlet_boundary([0.0, 0.0, 0.0]) 147 #domain.set_boundary({'left': Bi, 'right': Br, 'top': Br, 'bottom': Br}) 148 149 #delta_w = culvert.inlet.stage - culvert.outlet.stage 141 gate.print_timestepping_statistics() 150 142 151 #if delta_w > max_delta_w: max_delta_w = delta_w152 #if delta_w < min_delta_w: min_delta_w = delta_w153 154 #print domain.volumetric_balance_statistics()155 156 pass157 158 ## Check that extreme values in rating curve have been exceeded159 ## so that we know that condition has been exercised160 #assert min_delta_w < 0161 #assert max_delta_w > 10162 143 163 144 164 #os.remove('Test_culvert.sww') 145 146 -
trunk/anuga_core/source/anuga/structures/structure_operator.py
r8859 r8861 193 193 #new_outflow_xmom = outflow.get_average_xmom() + outflow_extra_momentum[0] 194 194 #new_outflow_ymom = outflow.get_average_ymom() + outflow_extra_momentum[1] 195 196 195 new_outflow_xmom = barrel_speed*new_outflow_depth*outflow_direction[0] 197 196 new_outflow_ymom = barrel_speed*new_outflow_depth*outflow_direction[1]
Note: See TracChangeset
for help on using the changeset viewer.