Changeset 8097
- Timestamp:
- Dec 8, 2010, 1:54:41 PM (14 years ago)
- Location:
- trunk/anuga_core/source/anuga/structures
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/structures/boyd_pipe_operator.py
r8073 r8097 38 38 enquiry_points, 39 39 width=diameter, 40 depth=None,40 height=None, 41 41 apron=apron, 42 42 manning=manning, … … 73 73 self.case = 'N/A' 74 74 75 76 def __determine_inflow_outflow(self): 77 # Determine flow direction based on total energy difference 78 75 def discharge_routine(self): 76 77 #self.__determine_inflow_outflow() 78 79 local_debug ='false' 80 79 81 if self.use_velocity_head: 80 82 self.delta_total_energy = self.inlets[0].get_enquiry_total_energy() - self.inlets[1].get_enquiry_total_energy() … … 90 92 self.delta_total_energy = -self.delta_total_energy 91 93 92 def discharge_routine(self):93 94 self.__determine_inflow_outflow()95 96 local_debug ='false'97 98 #import pdb99 #pdb.set_trace()100 101 94 if self.inflow.get_enquiry_depth() > 0.01: #this value was 0.01: Remember this needs to be compared to the Invert Lvl 102 95 if local_debug =='true': -
trunk/anuga_core/source/anuga/structures/testing_culvert.py
r8050 r8097 41 41 len2=width) 42 42 domain = anuga.Domain(points, vertices, boundary) 43 domain.set_starttime(10) 43 44 domain.set_name('Test_culvert') # Output name 44 45 domain.set_default_order(2) … … 88 89 filename=os.path.join(path, 'example_rating_curve.csv') 89 90 90 91 end_point0 = num.array([9.0, 2.5]) 92 end_point1 = num.array([13.0, 2.5]) 91 93 92 94 Boyd_pipe_operator(domain, 93 end_point0=[9.0, 2.5], 94 end_point1=[13.0, 2.5], 95 losses=1.5, 96 diameter=1.5, 97 apron=5.0, 98 use_momentum_jet=True, 99 use_velocity_head=False, 100 manning=0.013, 101 verbose=False) 95 #end_point0=[9.0, 2.5], 96 #end_point1=[13.0, 2.5], 97 #exchange_line0=[[9.0, 1.75],[9.0, 3.25]], 98 #exchange_line1=[[13.0, 1.75],[13.0, 3.25]], 99 losses=1.5, 100 end_points=[end_point0, end_point1], 101 diameter=1.5, 102 apron=0.5, 103 use_momentum_jet=True, 104 use_velocity_head=False, 105 manning=0.013, 106 verbose=False) 102 107 103 108 … … 135 140 #min_delta_w = sys.maxint 136 141 #max_delta_w = -min_delta_w 137 for t in domain.evolve(yieldstep = 1.0, finaltime = 200):142 for t in domain.evolve(yieldstep=1.0, finaltime=50.0): 138 143 domain.write_time() 139 144 140 #if domain.get_time() > 150.5 and domain.ge t_time() < 151.5 :145 #if domain.get_time() > 150.5 and domain.ge t_time() < 151.5 : 141 146 #Bi = anuga.Dirichlet_boundary([0.0, 0.0, 0.0]) 142 147 #domain.set_boundary({'left': Bi, 'right': Br, 'top': Br, 'bottom': Br})
Note: See TracChangeset
for help on using the changeset viewer.