Changeset 8095
- Timestamp:
- Dec 7, 2010, 10:56:18 PM (13 years ago)
- Location:
- trunk/anuga_core/source/anuga/structures
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/structures/boyd_box_operator.py
r8073 r8095 36 36 anuga.Structure_operator.__init__(self, 37 37 domain, 38 width,39 height,40 38 end_points, 41 39 exchange_lines, 42 40 enquiry_points, 41 width, 42 height, 43 43 apron, 44 44 manning, … … 49 49 logging, 50 50 verbose) 51 52 51 53 52 if type(losses) == types.DictType: -
trunk/anuga_core/source/anuga/structures/structure_operator.py
r8073 r8095 24 24 def __init__(self, 25 25 domain, 26 width,27 height,28 26 end_points, 29 27 exchange_lines, 30 28 enquiry_points, 29 width, 30 height, 31 31 apron, 32 32 manning, … … 246 246 self.culvert_vector = self.end_points[1] - end_points[0] 247 247 248 self.culvert_length = math.sqrt(num.sum(self.culvert_vector**2)) 248 self.culvert_length = math.sqrt(num.sum(self.culvert_vector**2)) 249 249 assert self.culvert_length > 0.0, 'The length of culvert is less than 0' 250 250 -
trunk/anuga_core/source/anuga/structures/testing_outlet_control.py
r8073 r8095 186 186 187 187 Boyd_box_operator(domain, 188 end_points=[ep0,ep1], 189 losses=losses, 190 width=culvert_width, 191 depth=10.0, 192 apron=6.0, 193 use_momentum_jet=True, 194 use_velocity_head=True, 195 manning=0.013, 196 logging=True, 197 label='box_culvert', 198 verbose=False) 199 200 188 losses=losses, 189 width=culvert_width, 190 height=10.0, 191 end_points=[ep0,ep1], 192 apron=6.0, 193 manning=0.013, 194 label='box_culvert', 195 logging=True, 196 verbose=False) 201 197 202 198 #losses = {'inlet':1, 'outlet':1, 'bend':1, 'grate':1, 'pier': 1, 'other': 1} -
trunk/anuga_core/source/anuga/structures/testing_wide_bridge.py
r8073 r8095 184 184 culvert_width = 50.0/number_of_culverts 185 185 y = 100-i*culvert_width - culvert_width/2.0 186 ep0 = [40.0, y]187 ep1 = [50.0, y]186 ep0 = num.array([40.0, y]) 187 ep1 = num.array([50.0, y]) 188 188 culverts.append(anuga.Boyd_box_operator(domain, 189 end_point0=ep0, 190 end_point1=ep1, 191 losses=1.5, 192 width=3.658, 193 depth=3.658, 194 apron=5.0, 195 use_momentum_jet=True, 196 use_velocity_head=True, 197 manning=0.013, 198 description='bridge culvert', 199 verbose=False)) 200 201 202 189 losses=1.5, 190 width=3.658, 191 height=3.658, 192 end_points=[ep0, ep1], 193 apron=0.5, 194 manning=0.013, 195 enquiry_gap=1.0, 196 description='bridge culvert', 197 verbose=False)) 203 198 204 199 #culvert2 = Culvert_operator(domain, … … 260 255 for i, culvert in enumerate(culverts): 261 256 print 'culvert: ', i 262 print culvert.st ructure_statistics()257 print culvert.statistics() 263 258 264 259
Note: See TracChangeset
for help on using the changeset viewer.