- Timestamp:
- Jun 8, 2010, 10:47:10 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/documentation/user_manual/examples/runsydney.py
r3944 r7808 20 20 21 21 # Related major packages 22 from anuga.shallow_water import Domain, Dirichlet_boundary 23 from anuga.shallow_water.data_manager import convert_dem_from_ascii2netcdf, dem2pts 24 from anuga.abstract_2d_finite_volumes.combine_pts import combine_rectangular_points_files 25 from anuga.pmesh.mesh_interface import create_mesh_from_regions 22 import anuga 26 23 27 24 # Application specific imports 28 25 import project # Define file names and polygons 29 from anuga.shallow_water.smf import slump_tsunami # Function for submarine mudslide30 26 31 27 … … 41 37 meshname = project.meshname+'.msh' 42 38 43 convert_dem_from_ascii2netcdf(demname, use_cache=True, verbose=True)39 anuga.asc2dem(demname, use_cache=True, verbose=True) 44 40 45 41 # creates pts file 46 dem2pts(demname, use_cache=True, verbose=True) 47 48 # combining the coarse and fine data 49 #combine_rectangular_points_files(finedemname, 50 # coarsedemname, 51 # combineddemname) 52 42 anuga.dem2pts(demname, use_cache=True, verbose=True) 53 43 54 44 … … 68 58 [project.shallow_polygon, shallow_res]] 69 59 70 create_mesh_from_regions(project.demopoly,60 anuga.create_mesh_from_regions(project.demopoly, 71 61 boundary_tags= {'oceannorth': [0], 72 62 'onshorenorth1': [1], … … 85 75 #Create shallow water domain 86 76 87 domain = Domain(meshname,77 domain = anuga.Domain(meshname, 88 78 use_cache = True, 89 79 verbose = True) … … 102 92 #------------------------------------------------------------------------------ 103 93 104 tsunami_source = slump_tsunami(length=30000.0,94 tsunami_source = anuga.slump_tsunami(length=30000.0, 105 95 depth=400.0, 106 96 slope=6.0, … … 131 121 print 'Available boundary tags', domain.get_boundary_tags() 132 122 133 Bd = Dirichlet_boundary([0.0,0.0,0.0])123 Bd = anuga.Dirichlet_boundary([0.0,0.0,0.0]) 134 124 domain.set_boundary( {'oceannorth': Bd, 135 125 'onshorenorth1': Bd,
Note: See TracChangeset
for help on using the changeset viewer.