Changeset 6729
- Timestamp:
- Apr 6, 2009, 1:39:35 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/automated_validation_tests/flow_tests/test_inflow_using_flowline.py
r6705 r6729 18 18 from anuga.shallow_water.shallow_water_domain import Reflective_boundary 19 19 from anuga.shallow_water.shallow_water_domain import Dirichlet_boundary 20 from anuga.shallow_water.shallow_water_domain import Transmissive_ Momentum_Set_Stage_boundary20 from anuga.shallow_water.shallow_water_domain import Transmissive_momentum_set_stage_boundary 21 21 from anuga.shallow_water.shallow_water_domain import Inflow 22 22 from anuga.shallow_water.data_manager import get_flow_through_cross_section … … 46 46 47 47 domain = Domain(points, vertices, boundary) 48 domain.set_name('inflow_flowline_test') # Output name48 domain.set_name('inflow_flowline_test') 49 49 50 50 … … 57 57 return z 58 58 59 domain.set_quantity('elevation', topography) # Use function for elevation60 domain.set_quantity('friction', mannings_n) # Constant friction of conc surface59 domain.set_quantity('elevation', topography) 60 domain.set_quantity('friction', mannings_n) 61 61 domain.set_quantity('stage', 62 expression='elevation') 62 expression='elevation') # Dry initial condition 63 63 64 64 … … 93 93 #---------------------------------------------------------------------- 94 94 95 Br = Reflective_boundary(domain) # Solid reflective wall 96 #Bo = Dirichlet_boundary([-(slope*length)+normal_depth, 0, 0]) # Outflow stage at normal depth 95 Br = Reflective_boundary(domain) # Solid reflective wall 96 97 # Define downstream boundary based on predicted depth 97 98 def normal_depth_stage_downstream(t): 98 return (-slope*length) + normal_depth 99 Bt = Transmissive_Momentum_Set_Stage_boundary(domain=domain,function=normal_depth_stage_downstream) 99 return (-slope*length) + normal_depth 100 101 Bt = Transmissive_momentum_set_stage_boundary(domain=domain, 102 function=normal_depth_stage_downstream) 103 100 104 domain.set_boundary({'left': Br, 'right': Bt, 'top': Br, 'bottom': Br}) 101 105 … … 110 114 if verbose : 111 115 print domain.timestepping_statistics() 116 print domain.volumetric_balance_statistics() 112 117 113 118
Note: See TracChangeset
for help on using the changeset viewer.