- Timestamp:
- Aug 20, 2010, 5:27:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/structures/testing_culvert.py
r7960 r7962 33 33 width = 5. 34 34 35 dx = dy = 1# Resolution: Length of subdivisions on both axes35 dx = dy = 0.5 # Resolution: Length of subdivisions on both axes 36 36 37 37 points, vertices, boundary = rectangular_cross(int(length/dx), … … 85 85 86 86 filename=os.path.join(path, 'example_rating_curve.csv') 87 culvert = Generic_box_culvert(domain,87 culvert1 = Generic_box_culvert(domain, 88 88 end_point0=[9.0, 2.5], 89 89 end_point1=[13.0, 2.5], … … 91 91 verbose=False) 92 92 93 #domain.forcing_terms.append(culvert)94 93 94 #culvert2 = Generic_box_culvert(domain, 95 # end_point0=[19.0, 2.5], 96 # end_point1=[25.0, 2.5], 97 # width=1.00, 98 # verbose=False) 99 100 101 102 103 #print domain.fractional_step_operators 104 105 #domain.apply_fractional_steps() 95 106 96 107 ##----------------------------------------------------------------------- … … 99 110 100 111 ## Inflow based on Flow Depth and Approaching Momentum 101 #Bi = anuga.Dirichlet_boundary([0.0, 0.0, 0.0])102 #Br = anuga.Reflective_boundary(domain) # Solid reflective wall112 Bi = anuga.Dirichlet_boundary([1.0, 0.0, 0.0]) 113 Br = anuga.Reflective_boundary(domain) # Solid reflective wall 103 114 #Bo = anuga.Dirichlet_boundary([-5, 0, 0]) # Outflow 104 115 … … 111 122 #lambda t: [-5*(num.cos(2*pi*(t-4)/20)), 0.0, 0.0]) 112 123 #domain.set_boundary({'left': Btus, 'right': Btds, 'top': Br, 'bottom': Br}) 124 domain.set_boundary({'left': Bi, 'right': Br, 'top': Br, 'bottom': Br}) 113 125 114 126 … … 119 131 #min_delta_w = sys.maxint 120 132 #max_delta_w = -min_delta_w 121 #for t in domain.evolve(yieldstep = 1, finaltime = 25): 133 for t in domain.evolve(yieldstep = 1.0, finaltime = 300): 134 domain.write_time() 122 135 #delta_w = culvert.inlet.stage - culvert.outlet.stage 123 136 … … 125 138 #if delta_w < min_delta_w: min_delta_w = delta_w 126 139 127 #pass140 pass 128 141 129 142 ## Check that extreme values in rating curve have been exceeded
Note: See TracChangeset
for help on using the changeset viewer.