Changeset 7795
- Timestamp:
- Jun 7, 2010, 10:19:51 AM (14 years ago)
- Location:
- anuga_validation
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/automated_validation_tests/UQ_runup_2006/run_dam.py
r7774 r7795 17 17 18 18 # Related major packages 19 from anuga.shallow_water import Domain, Reflective_boundary, \ 20 Dirichlet_boundary, Time_boundary, File_boundary 19 import anuga 20 21 21 from anuga.abstract_2d_finite_volumes.region import Set_region 22 22 from anuga.fit_interpolate.interpolate import interpolate_sww2csv, \ … … 55 55 # Setup computational domain 56 56 #------------------------------------------------------------------------- 57 domain = Domain(project.mesh_filename, use_cache = False, verbose = False)57 domain = anuga.Domain(project.mesh_filename, use_cache = False) 58 58 domain.set_name(project.basename) 59 59 domain.set_datadir('.') … … 80 80 location = 'unique vertices') 81 81 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. 84 84 domain.set_boundary( {'wall': Br, 'edge': Bd} ) 85 85 -
anuga_validation/automated_validation_tests/fitting/validate_benchmark_fit.py
r7343 r7795 72 72 } 73 73 74 74 75 # run trial, report on time and memory 75 76 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, 78 78 maxArea=0.0001, 79 79 is_fit=True, -
anuga_validation/automated_validation_tests/okushiri_tank_validation/run_okushiri.py
r6046 r7795 22 22 23 23 # 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 24 import anuga 28 25 29 26 import project … … 33 30 # Create Domain from mesh 34 31 #------------------------- 35 domain = Domain(project.mesh_filename, use_cache=False, verbose=True)32 domain = anuga.Domain(project.mesh_filename, use_cache=False, verbose=True) 36 33 print domain.statistics() 37 34 … … 63 60 64 61 # Create boundary function from timeseries provided in file 65 function = file_function(project.boundary_filename,62 function = anuga.file_function(project.boundary_filename, 66 63 domain, verbose=True) 67 64 68 65 # 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) 71 68 domain.set_boundary({'wave': Bts, 'wall': Br}) 72 69 -
anuga_validation/automated_validation_tests/okushiri_tank_validation/test_caching_of_set_quantity.py
r7276 r7795 9 9 10 10 # Module imports 11 from anuga.shallow_water import Domain11 from anuga.shallow_water.shallow_water_domain import Domain 12 12 from anuga.caching import cache 13 13 from anuga.fit_interpolate.fit import _fit_to_mesh -
anuga_validation/automated_validation_tests/patong_beach_validation/run_model.py
r7750 r7795 29 29 from Scientific.IO.NetCDF import NetCDFFile 30 30 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 31 import anuga 32 44 33 45 34 import project -
anuga_validation/circular_island/run_circular.py
r7746 r7795 8 8 9 9 # Module imports 10 from anuga.shallow_water import Domain10 from anuga.shallow_water.shallow_water_domain import Domain 11 11 from anuga.shallow_water import Reflective_boundary 12 12 from anuga.shallow_water import Transmissive_momentum_set_stage_boundary 13 13 from anuga.shallow_water import Dirichlet_boundary, Time_boundary 14 14 from anuga.utilities.file_utils import copy_code_files 15 from anuga.shallow_water. data_managerimport get_maximum_inundation_data15 from anuga.shallow_water.sww_interrogate import get_maximum_inundation_data 16 16 from anuga.abstract_2d_finite_volumes.util import file_function, \ 17 17 sww2csv_gauges, csv2timeseries_graphs -
anuga_validation/uq_flume_2007/run_dam.py
r7773 r7795 22 22 23 23 # Related major packages 24 from anuga.shallow_water import Domain, Reflective_boundary, \24 from anuga.shallow_water.shallow_water_domain import Domain, Reflective_boundary, \ 25 25 Dirichlet_boundary, Time_boundary, File_boundary 26 26 from anuga.abstract_2d_finite_volumes.region import Set_region
Note: See TracChangeset
for help on using the changeset viewer.