Changeset 7807
- Timestamp:
- Jun 8, 2010, 9:48:54 AM (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
r7801 r7807 1 """Common filenames and locations for topographic data, meshes and outputs.""" 1 """ Common filenames and locations for topographic data, meshes and outputs. 2 This file defines the parameters of the scenario you wish to run. 3 """ 2 4 3 5 from anuga.geometry.polygon import read_polygon, plot_polygons, \ … … 45 47 46 48 # Define resolutions (max area per triangle) for each polygon 47 default_res = 1000000000 # Background resolution 48 islands_res = 10000000 49 cairns_res = 10000000 50 shallow_res = 50000000 49 # Make these numbers larger to reduce the number of triangles in the model, 50 # and hence speed up the simulation 51 default_res = 10000000 # Background resolution 52 islands_res = 100000 53 cairns_res = 100000 54 shallow_res = 500000 51 55 52 56 # Define list of interior regions with associated resolutions -
trunk/anuga_core/documentation/user_manual/demos/cairns/runcairns.py
r7801 r7807 81 81 if project.scenario == 'slide': 82 82 # Function for submarine slide 83 tsunami_source = slide_tsunami(length=35000.0,83 tsunami_source = anuga.slide_tsunami(length=35000.0, 84 84 depth=project.slide_depth, 85 85 slope=6.0, … … 96 96 print 'Available boundary tags', domain.get_boundary_tags() 97 97 98 Bd = Dirichlet_boundary([tide, 0, 0]) # Mean water level99 Bs = Transmissive_stage_zero_momentum_boundary(domain) # Neutral boundary98 Bd = anuga.Dirichlet_boundary([tide, 0, 0]) # Mean water level 99 Bs = anuga.Transmissive_stage_zero_momentum_boundary(domain) # Neutral boundary 100 100 101 101 if project.scenario == 'fixed_wave': 102 102 # Huge 50m wave starting after 60 seconds and lasting 1 hour. 103 Bw = Time_boundary(domain=domain,103 Bw = anuga.Time_boundary(domain=domain, 104 104 function=lambda t: [(60<t<3660)*50, 0, 0]) 105 105 domain.set_boundary({'ocean_east': Bw, … … 121 121 t0 = time.time() 122 122 123 from Numericimport allclose123 from numpy import allclose 124 124 125 125 if project.scenario == 'slide':
Note: See TracChangeset
for help on using the changeset viewer.