Changeset 4725
- Timestamp:
- Sep 11, 2007, 12:02:31 PM (17 years ago)
- Location:
- anuga_work/development/demos
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/demos/island.py
r4723 r4725 30 30 #------------------------------------------------------------------------------ 31 31 32 #Create basic mesh 33 create_mesh_from_regions( [[0,0], [100,0], [100,100], [0,100]], 34 boundary_tags = {'bottom': [0], 35 'right': [1], 36 'top': [2], 37 'left': [3]}, 38 maximum_triangle_area = 2, 39 filename = 'island.msh' , 40 interior_regions=[ ([[50,25], [70,25], [70,75], [50,75]], 10.0)] 41 #interior_holes=[[[50,25], [70,25], [70,75], [50,75]]], 42 ) 32 if False: 33 #Create basic mesh 34 create_mesh_from_regions( [[0,0], [100,0], [100,100], [0,100]], 35 boundary_tags = {'bottom': [0], 36 'right': [1], 37 'top': [2], 38 'left': [3]}, 39 maximum_triangle_area = 2, 40 filename = 'island.msh' , 41 interior_regions=[ ([[50,25], [70,25], [70,75], [50,75]], 10.0)] 42 #interior_holes=[[[50,25], [70,25], [70,75], [50,75]]], 43 ) 43 44 44 45 45 46 47 48 49 # Select precomputed meshes here. In changeset:4725 there is a huge difference 50 # in timestepping characteristics depending on the mesh used. 51 # The mesh generated on windows takes 10 times as many timesteps. 52 53 name = 'island_linux' # Mesh generated on a Linux box (here nautilus) but similar on cyclone 54 #name = 'island_windows' # Mesh generated on a Windows box (asset 0031136) 55 56 46 57 #Create shallow water domain 47 domain = Domain(mesh_filename = 'island.msh')58 domain = Domain(mesh_filename = name + '.msh') 48 59 domain.smooth = False #True 49 domain.set_name( 'island_unique')60 domain.set_name(name) 50 61 #domain.set_name('island_not_unique') 51 62 domain.default_order = 2 52 63 64 print domain.statistics() 53 65 54 66 #I tried to introduce this parameter top control the h-limiter, … … 89 101 domain.maximum_allowed_speed = 0 90 102 domain.beta_h = 0.0 91 #domain.H0 = 0.0192 103 domain.tight_slope_limiters = 1 93 94 95 104 96 105
Note: See TracChangeset
for help on using the changeset viewer.