Changeset 5774
- Timestamp:
- Sep 19, 2008, 2:31:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/culvert_flows/Test_Culvert_Flat_Water_Lev.py
r5773 r5774 21 21 Transmissive_boundary, Time_boundary 22 22 23 from anuga.culvert_flows.culvert_class import Culvert_flow 24 from anuga.culvert_flows.culvert_routines import boyd_generalised_culvert_model 25 23 26 from math import pi,pow,sqrt 24 27 from Numeric import choose, greater, ones, sin, exp, cosh … … 62 65 63 66 # Changing Slopes in the X- Direction 64 # N = len(x)65 # for i in range(N):66 # if 0 <x[i] < 5.1:67 # z[i] -= -x[i]/1068 # if 5 <x[i] < 10.1:69 # z[i] -= -x[i]/10070 # if 10 <x[i]:71 # z[i] -= -x[i]/2072 # return z67 # N = len(x) 68 # for i in range(N): 69 # if 0 <x[i] < 5.1: 70 # z[i] -= -x[i]/10 71 # if 5 <x[i] < 10.1: 72 # z[i] -= -x[i]/100 73 # if 10 <x[i]: 74 # z[i] -= -x[i]/20 75 # return z 73 76 74 # NOW Add bits and Pieces to topography77 # NOW Add bits and Pieces to topography 75 78 N = len(x) 76 79 for i in range(N): … … 126 129 #------------------------------------------------------------------------------ 127 130 print 'DEFINING any Structures if Required' 128 # ++++++++ Ole I do not have Latest installe don this machine.... YET !!! Will Do IT129 131 130 132 # DEFINE CULVERT INLET AND OUTLETS 131 #culvert = Culvert_flow(domain, 132 # center0=[9.0, 2.5], radius0=1.00, # U/S Opening 133 # center1=[13.0, 2.5], radius1=1.00, # D/S Opening 134 # transfer_flow=None) # Hardwired for now 135 136 #domain.forcing_terms.append(culvert) 133 134 135 culvert = Culvert_flow(domain, 136 label='Culvert No. 1', 137 description='This culvert is a test unit 1.2m Wide by 0.75m High', 138 end_point0=[9.0, 2.5], 139 end_point1=[13.0, 2.5], 140 width=1.20,height=0.75, 141 culvert_routine=boyd_generalised_culvert_model, 142 number_of_barrels=1, 143 verbose=True) 144 145 domain.forcing_terms.append(culvert) 137 146 138 147 #------------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.