Changeset 7795


Ignore:
Timestamp:
Jun 7, 2010, 10:19:51 AM (10 years ago)
Author:
hudson
Message:

Adapted validation tests to use new API.

Location:
anuga_validation
Files:
7 edited

Legend:

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

    r7774 r7795  
    1717
    1818# Related major packages
    19 from anuga.shallow_water import Domain, Reflective_boundary, \
    20      Dirichlet_boundary, Time_boundary, File_boundary
     19import anuga
     20
    2121from anuga.abstract_2d_finite_volumes.region import Set_region
    2222from anuga.fit_interpolate.interpolate import interpolate_sww2csv, \
     
    5555    # Setup computational domain
    5656    #-------------------------------------------------------------------------
    57     domain = Domain(project.mesh_filename, use_cache = False, verbose = False)
     57    domain = anuga.Domain(project.mesh_filename, use_cache = False)
    5858    domain.set_name(project.basename)
    5959    domain.set_datadir('.')
     
    8080                                 location = 'unique vertices')
    8181
    82     Br = Reflective_boundary(domain)
    83     Bd = Dirichlet_boundary([0,0,0])  # to drain the water out.
     82    Br = anuga.Reflective_boundary(domain)
     83    Bd = anuga.Dirichlet_boundary([0,0,0])  # to drain the water out.
    8484    domain.set_boundary( {'wall': Br, 'edge': Bd} )
    8585
  • anuga_validation/automated_validation_tests/fitting/validate_benchmark_fit.py

    r7343 r7795  
    7272                           }
    7373
     74
    7475        # run trial, report on time and memory
    7576        ben = BenchmarkLeastSquares()
    76         (time, mem, num_tri, one_t,
    77          more_t, quad_t) = ben.trial(num_of_points=1000,
     77        (time, mem, num_tri, quad_t) = ben.trial(num_of_points=1000,
    7878                                     maxArea=0.0001,
    7979                                     is_fit=True,
  • anuga_validation/automated_validation_tests/okushiri_tank_validation/run_okushiri.py

    r6046 r7795  
    2222
    2323# Module imports
    24 from anuga.shallow_water import Domain
    25 from anuga.shallow_water import Reflective_boundary
    26 from anuga.shallow_water import Transmissive_momentum_set_stage_boundary
    27 from anuga.abstract_2d_finite_volumes.util import file_function
     24import anuga
    2825
    2926import project
     
    3330    # Create Domain from mesh
    3431    #-------------------------
    35     domain = Domain(project.mesh_filename, use_cache=False, verbose=True)
     32    domain = anuga.Domain(project.mesh_filename, use_cache=False, verbose=True)
    3633    print domain.statistics()
    3734
     
    6360
    6461    # Create boundary function from timeseries provided in file
    65     function = file_function(project.boundary_filename,
     62    function = anuga.file_function(project.boundary_filename,
    6663                             domain, verbose=True)
    6764
    6865    # Create and assign boundary objects
    69     Bts = Transmissive_momentum_set_stage_boundary(domain, function)
    70     Br = Reflective_boundary(domain)
     66    Bts = anuga.Transmissive_momentum_set_stage_boundary(domain, function)
     67    Br = anuga.Reflective_boundary(domain)
    7168    domain.set_boundary({'wave': Bts, 'wall': Br})
    7269
  • anuga_validation/automated_validation_tests/okushiri_tank_validation/test_caching_of_set_quantity.py

    r7276 r7795  
    99
    1010# Module imports
    11 from anuga.shallow_water import Domain
     11from anuga.shallow_water.shallow_water_domain import Domain
    1212from anuga.caching import cache
    1313from anuga.fit_interpolate.fit import _fit_to_mesh
  • anuga_validation/automated_validation_tests/patong_beach_validation/run_model.py

    r7750 r7795  
    2929from Scientific.IO.NetCDF import NetCDFFile
    3030
    31 from anuga.interface import create_domain_from_regions
    32 from anuga.interface import Transmissive_stage_zero_momentum_boundary
    33 from anuga.interface import Dirichlet_boundary
    34 from anuga.interface import Reflective_boundary
    35 from anuga.interface import Field_boundary
    36 from anuga.interface import create_sts_boundary
    37 from anuga.interface import csv2building_polygons
    38 from anuga.utilities.system_tools import file_length
    39 
    40 from anuga.utilities.file_utils import copy_code_files
    41 from anuga.shallow_water.data_manager import urs2sts
    42 from anuga.utilities.polygon import read_polygon, Polygon_function
    43 from anuga.caching import cache
     31import anuga
     32
    4433
    4534import project
  • anuga_validation/circular_island/run_circular.py

    r7746 r7795  
    88
    99# Module imports
    10 from anuga.shallow_water import Domain
     10from anuga.shallow_water.shallow_water_domain import Domain
    1111from anuga.shallow_water import Reflective_boundary
    1212from anuga.shallow_water import Transmissive_momentum_set_stage_boundary
    1313from anuga.shallow_water import Dirichlet_boundary, Time_boundary
    1414from anuga.utilities.file_utils import copy_code_files
    15 from anuga.shallow_water.data_manager import get_maximum_inundation_data
     15from anuga.shallow_water.sww_interrogate import get_maximum_inundation_data
    1616from anuga.abstract_2d_finite_volumes.util import file_function, \
    1717                            sww2csv_gauges, csv2timeseries_graphs
  • anuga_validation/uq_flume_2007/run_dam.py

    r7773 r7795  
    2222
    2323# Related major packages
    24 from anuga.shallow_water import Domain, Reflective_boundary, \
     24from anuga.shallow_water.shallow_water_domain import Domain, Reflective_boundary, \
    2525                            Dirichlet_boundary, Time_boundary, File_boundary
    2626from anuga.abstract_2d_finite_volumes.region import Set_region
Note: See TracChangeset for help on using the changeset viewer.