Changeset 7801
- Timestamp:
- Jun 7, 2010, 2:47:25 PM (15 years ago)
- Location:
- trunk/anuga_core/documentation/user_manual/demos/cairns
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/documentation/user_manual/demos/cairns/project.py
r7077 r7801 1 1 """Common filenames and locations for topographic data, meshes and outputs.""" 2 2 3 from anuga. utilities.polygon import read_polygon, plot_polygons, \3 from anuga.geometry.polygon import read_polygon, plot_polygons, \ 4 4 polygon_area, is_inside_polygon 5 5 … … 45 45 46 46 # Define resolutions (max area per triangle) for each polygon 47 default_res = 10000000 # Background resolution48 islands_res = 100000 49 cairns_res = 100000 50 shallow_res = 500000 47 default_res = 1000000000 # Background resolution 48 islands_res = 10000000 49 cairns_res = 10000000 50 shallow_res = 50000000 51 51 52 52 # Define list of interior regions with associated resolutions -
trunk/anuga_core/documentation/user_manual/demos/cairns/runcairns.py
r7086 r7801 21 21 22 22 # Related major packages 23 from anuga.interface import create_domain_from_regions 24 from anuga.interface import Reflective_boundary 25 from anuga.interface import Dirichlet_boundary 26 from anuga.interface import Time_boundary 27 from anuga.interface import File_boundary 28 from anuga.interface import Transmissive_stage_zero_momentum_boundary 29 30 from anuga.shallow_water.data_manager import convert_dem_from_ascii2netcdf 31 from anuga.shallow_water.data_manager import dem2pts 32 33 from anuga.shallow_water.smf import slide_tsunami 23 import anuga 34 24 35 25 # Application specific imports … … 41 31 #------------------------------------------------------------------------------ 42 32 # Create DEM from asc data 43 convert_dem_from_ascii2netcdf(project.demname, use_cache=True, verbose=True)33 anuga.asc2dem(project.demname, use_cache=True, verbose=True) 44 34 45 35 # Create pts file for onshore DEM 46 dem2pts(project.demname, use_cache=True, verbose=True)36 anuga.dem2pts(project.demname, use_cache=True, verbose=True) 47 37 48 38 #------------------------------------------------------------------------------ … … 51 41 # boundary and interior regions as defined in project.py 52 42 #------------------------------------------------------------------------------ 53 domain = create_domain_from_regions(project.bounding_polygon,43 domain = anuga.create_domain_from_regions(project.bounding_polygon, 54 44 boundary_tags={'top': [0], 55 45 'ocean_east': [1], … … 132 122 133 123 from Numeric import allclose 134 from anuga.abstract_2d_finite_volumes.quantity import Quantity135 124 136 125 if project.scenario == 'slide':
Note: See TracChangeset
for help on using the changeset viewer.