Changeset 7991
- Timestamp:
- Sep 2, 2010, 11:19:06 AM (14 years ago)
- Location:
- trunk/anuga_core/source/anuga/structures
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/structures/boyd_box_culvert.py
r7986 r7991 20 20 manning, 21 21 enquiry_gap, 22 use_velocity_head, 22 23 verbose=False): 23 24 24 culvert.Culvert.__init__(self, domain, end_points, width, height, apron, manning, enquiry_gap, verbose) 25 25 26 culvert.Culvert.__init__(self, 27 domain, 28 end_points, 29 width, 30 height, 31 apron, 32 manning, 33 enquiry_gap, 34 use_velocity_head, 35 verbose) 36 37 26 38 self.routine = boyd_box_routine.Boyd_box_routine(self) 27 39 -
trunk/anuga_core/source/anuga/structures/boyd_box_routine.py
r7988 r7991 87 87 assert self.inflow.get_enquiry_specific_energy() >= 0.0, msg 88 88 89 if self.use_velocity_head : 90 driving_energy = self.inflow.get_enquiry_specific_energy() 91 else: 92 driving_energy = self.get_enquiry_height 93 89 94 height = self.culvert_height 90 95 width = self.culvert_width 91 96 flow_width = self.culvert_width 92 97 93 Q_inlet_unsubmerged = 0.540*g**0.5*width* self.inflow.get_enquiry_specific_energy()**1.50 # Flow based on Inlet Ctrl Inlet Unsubmerged94 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 Submerged98 Q_inlet_unsubmerged = 0.540*g**0.5*width*driving_energy**1.50 # Flow based on Inlet Ctrl Inlet Unsubmerged 99 Q_inlet_submerged = 0.702*g**0.5*width*height**0.89*driving_energy**0.61 # Flow based on Inlet Ctrl Inlet Submerged 95 100 96 101 # FIXME(Ole): Are these functions really for inlet control? … … 122 127 case = 'INLET CTRL Culvert is open channel flow we will for now assume critical depth' 123 128 124 if self.delta_total_energy < self.inflow.get_enquiry_specific_energy():129 if self.delta_total_energy < driving_energy: 125 130 # Calculate flows for outlet control 126 131 -
trunk/anuga_core/source/anuga/structures/culvert.py
r7986 r7991 25 25 manning, 26 26 enquiry_gap, 27 use_velocity_head, 27 28 verbose): 28 29 … … 37 38 38 39 self.enquiry_gap = enquiry_gap 40 self.use_velocity_head = use_velocity_head 39 41 self.verbose=verbose 40 42 -
trunk/anuga_core/source/anuga/structures/culvert_routine.py
r7984 r7991 31 31 self.manning = manning 32 32 self.log_filename = None 33 34 self.use_velocity_head = True 35 36 33 37 34 38 self.determine_inflow() … … 50 54 # Determine flow direction based on total energy difference 51 55 52 self.delta_total_energy = self.inlets[0].get_enquiry_total_energy() - self.inlets[1].get_enquiry_total_energy() 56 if self.use_velocity_head: 57 self.delta_total_energy = self.inlets[0].get_enquiry_total_energy() - self.inlets[1].get_enquiry_total_energy() 58 else: 59 self.delta_total_energy = self.inlets[0].get_enquiry_stage() - self.inlets[1].get_enquiry_stage() 60 53 61 54 62 self.inflow = self.inlets[0]
Note: See TracChangeset
for help on using the changeset viewer.