Changeset 8036
 Timestamp:
 Oct 14, 2010, 5:50:44 PM (14 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/anuga_core/source/anuga/structures/test_boyd_box_operator.py
r8035 r8036 46 46 culvert_apron = 0.001 47 47 enquiry_gap = 1.0 48 49 expected_Q = 4.55 50 expected_v = 2.3 51 expected_d = 0.54 52 48 53 54 # Probably no need to change below here 55 49 56 domain_length = 200. #xDir 50 57 domain_width = 200. #ydir … … 114 121 115 122 116 print Q 117 print v 118 print d 119 120 121 assert numpy.allclose(Q, 4.55, rtol=1.0e1) #inflow 122 assert numpy.allclose(v, 2.3, rtol=1.0e1) #outflow velocity 123 assert numpy.allclose(d, 0.54, rtol=1.0e1) #depth at outlet used to calc v 123 assert numpy.allclose(Q, expected_Q, rtol=1.0e2) #inflow 124 assert numpy.allclose(v, expected_v, rtol=1.0e2) #outflow velocity 125 assert numpy.allclose(d, expected_d, rtol=1.0e2) #depth at outlet used to calc v 124 126 125 127
Note: See TracChangeset
for help on using the changeset viewer.