Changeset 6111
- Timestamp:
- Dec 24, 2008, 3:56:36 PM (16 years ago)
- Location:
- anuga_core/source/anuga/culvert_flows
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/culvert_flows/culvert_class.py
r6104 r6111 756 756 757 757 opening.total_energy = 0.5*(u*u + v*v)/g + stage 758 # FIXME(Ole): What happens if this is negative?759 758 #print 'Et = %.3f m' %opening.total_energy 760 759 -
anuga_core/source/anuga/culvert_flows/test_culvert_class.py
r6104 r6111 354 354 355 355 356 def test_predicted_flow(self):357 """test_predicted_ flow358 359 Test that flows predicted are consistent with what what356 def Xtest_predicted_boyd_flow(self): 357 """test_predicted_boyd_flow 358 359 Test that flows predicted by the boyd method are consistent with what what 360 360 is calculated in engineering codes. 361 361 The data was supplied by Petar Milevski … … 411 411 412 412 413 if True: 414 filename=os.path.join(path, 'example_rating_curve2.csv') 415 culvert = Culvert_flow_rating(domain, 416 culvert_description_filename=filename, 417 end_point0=[4.0, 2.5], 418 end_point1=[8.0, 2.5], 419 verbose=True) 420 else: 421 culvert = Culvert_flow_energy(domain, 422 label='Test culvert', 423 description='4 m test culvert', 424 end_point0=[4.0, 2.5], 425 end_point1=[8.0, 2.5], 426 width=1.20, 427 height=0.75, 428 culvert_routine=boyd_generalised_culvert_model, 429 number_of_barrels=1, 430 verbose=True) 413 414 culvert = Culvert_flow_energy(domain, 415 label='Test culvert', 416 description='4 m test culvert', 417 end_point0=[4.0, 2.5], 418 end_point1=[8.0, 2.5], 419 width=1.20, 420 height=0.75, 421 culvert_routine=boyd_generalised_culvert_model, 422 number_of_barrels=1, 423 verbose=True) 431 424 432 425 … … 443 436 #------------------------------------------------------------- 444 437 if __name__ == "__main__": 445 #suite = unittest.makeSuite(Test_Culvert, 'test_ that_culvert_runs_rating')438 #suite = unittest.makeSuite(Test_Culvert, 'test_predicted_boyd_flow') 446 439 suite = unittest.makeSuite(Test_Culvert, 'test') 447 440 runner = unittest.TextTestRunner()
Note: See TracChangeset
for help on using the changeset viewer.