Changeset 7774


Ignore:
Timestamp:
Jun 3, 2010, 2:03:30 PM (14 years ago)
Author:
hudson
Message:

Validation tests use new API.

Location:
anuga_validation/automated_validation_tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/automated_validation_tests/UQ_runup_2006/run_dam.py

    r7750 r7774  
    2222from anuga.fit_interpolate.interpolate import interpolate_sww2csv, \
    2323     file_function
    24 from anuga.utilities.file_utils import copy_code_files, load_csv_as_dict
     24from anuga.utilities.file_utils import copy_code_files
     25from anuga.file.csv_file import load_csv_as_dict
    2526from numerical_tools import  err 
    2627
  • anuga_validation/automated_validation_tests/flow_tests/test_inflow_using_flowline.py

    r7749 r7774  
    1414# Import necessary modules
    1515#------------------------------------------------------------------------------
    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.
     18import anuga
    2519
    2620
     
    3630dx = dy = 2          # Resolution: of grid on both axes
    3731
    38 points, vertices, boundary = rectangular_cross(int(length/dx), int(width/dy),
    39                                               len1=length, len2=width)
     32points, vertices, boundary = anuga.rectangular_cross(int(length/dx), \
     33                                int(width/dy), len1=length, len2=width)
    4034
    4135for mannings_n in [0.012, 0.035, 0.070, 0.150]:
     
    4640       
    4741
    48         domain = Domain(points, vertices, boundary)   
     42        domain = anuga.Domain(points, vertices, boundary)   
    4943        domain.set_name('inflow_flowline_test')
    5044
     
    6963
    7064        # Fixed Flowrate onto Area
    71         fixed_inflow = Inflow(domain,
     65        fixed_inflow = anuga.Inflow(domain,
    7266                              center=(10.0, 10.0),
    7367                              radius=5.00,
     
    9488        #----------------------------------------------------------------------
    9589
    96         Br = Reflective_boundary(domain) # Solid reflective wall
     90        Br = anuga.Reflective_boundary(domain) # Solid reflective wall
    9791
    9892        # Define downstream boundary based on predicted depth
     
    10094            return (-slope*length) + normal_depth
    10195       
    102         Bt = Transmissive_momentum_set_stage_boundary(domain=domain,
     96        Bt = anuga.Transmissive_momentum_set_stage_boundary(domain=domain,
    10397                                                      function=normal_depth_stage_downstream)
    10498       
Note: See TracChangeset for help on using the changeset viewer.