Changeset 7774 for anuga_validation/automated_validation_tests/flow_tests/test_inflow_using_flowline.py
 Timestamp:
 Jun 3, 2010, 2:03:30 PM (14 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

anuga_validation/automated_validation_tests/flow_tests/test_inflow_using_flowline.py
r7749 r7774 14 14 # Import necessary modules 15 15 # 16 from anuga.abstract_2d_finite_volumes.mesh_factory import rectangular_cross 17 from anuga.shallow_water import Domain 18 from anuga.shallow_water.forcing import Inflow 19 import anuga.shallow_water 20 from anuga.shallow_water.boundaries import Reflective_boundary, \ 21 Field_boundary, Transmissive_momentum_set_stage_boundary, \ 22 Transmissive_stage_zero_momentum_boundary 23 from anuga.shallow_water.data_manager import get_flow_through_cross_section 24 from anuga.abstract_2d_finite_volumes.util import sww2csv_gauges, csv2timeseries_graphs 16 17 # Get the standard ANUGA API. 18 import anuga 25 19 26 20 … … 36 30 dx = dy = 2 # Resolution: of grid on both axes 37 31 38 points, vertices, boundary = rectangular_cross(int(length/dx), int(width/dy),39 32 points, vertices, boundary = anuga.rectangular_cross(int(length/dx), \ 33 int(width/dy), len1=length, len2=width) 40 34 41 35 for mannings_n in [0.012, 0.035, 0.070, 0.150]: … … 46 40 47 41 48 domain = Domain(points, vertices, boundary)42 domain = anuga.Domain(points, vertices, boundary) 49 43 domain.set_name('inflow_flowline_test') 50 44 … … 69 63 70 64 # Fixed Flowrate onto Area 71 fixed_inflow = Inflow(domain,65 fixed_inflow = anuga.Inflow(domain, 72 66 center=(10.0, 10.0), 73 67 radius=5.00, … … 94 88 # 95 89 96 Br = Reflective_boundary(domain) # Solid reflective wall90 Br = anuga.Reflective_boundary(domain) # Solid reflective wall 97 91 98 92 # Define downstream boundary based on predicted depth … … 100 94 return (slope*length) + normal_depth 101 95 102 Bt = Transmissive_momentum_set_stage_boundary(domain=domain,96 Bt = anuga.Transmissive_momentum_set_stage_boundary(domain=domain, 103 97 function=normal_depth_stage_downstream) 104 98
Note: See TracChangeset
for help on using the changeset viewer.