Changeset 4362
- Timestamp:
- Apr 5, 2007, 4:13:27 PM (18 years ago)
- Location:
- anuga_validation/solitary_waves
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/solitary_waves/convergence_results.txt
r4356 r4362 1 1 CONVERGENCE RESULTS 2 3 4 5 max_area = 1.0 2 3 4 5 ********************************************** 6 Coastline elevation = -0.00 at (x,y)=(300.05, 85.17) 7 Max coastline elevation = 4.24 at (88.25, 85.17) 8 Run up distance = 211.81 9 Max area in runup zone = 2.00 10 ********************************************** 11 6 12 ********************************************** 7 13 Coastline elevation = -0.00 at (x,y)=(300.05, 99.61) 8 14 Max coastline elevation = 3.91 at (104.56, 99.61) 9 15 Run up distance = 195.49 16 Max area in runup zone = 1.00 17 ********************************************** 18 10 19 ********************************************** 20 Coastline elevation = -0.00 at (x,y)=(300.05, 0.55) 21 Max coastline elevation = 3.39 at (130.32, 0.55) 22 Run up distance = 169.74 23 Max area in runup zone = 0.50 24 ********************************************** 25 26 ********************************************** 27 Coastline elevation = -0.00 at (x,y)=(300.05, 11.05) 28 Max coastline elevation = 2.99 at (150.74, 11.05) 29 Run up distance = 149.31 30 Max area in runup zone = 0.25 31 ********************************************** 32 33 -
anuga_validation/solitary_waves/solitary_wave_runup.py
r4353 r4362 3 3 Water driven up a linear slope and time varying boundary, 4 4 similar to a beach environment. 5 6 For the case (H=0.5m, tan beta=1:50, and still water depth 20m), 7 the analytical solution for runup height (R) should be 3.97997m. 5 8 6 9 """ … … 27 30 28 31 32 29 33 #------------------------------------------------------------------------------ 30 34 # Model constants 35 36 max_area = 0.25 # Maximal triangle area in runup zone (interior_polygon) 37 # This is the variable that we use to measure convergence. 38 # Range in [1.0/8; 8.0] 39 40 41 31 42 32 43 slope = -0.02 # 1:50 Slope, reaches h=20m 1000m from western bndry, … … 53 64 #------------------------------------------------------------------------------ 54 65 55 # Structured mesh56 dx = 40. # Resolution: Length of subdivisions on x axis (length)57 dy = 40. # Resolution: Length of subdivisions on y axis (width)58 59 66 length = east-west 60 67 width = north-south 61 ##points, vertices, boundary = rectangular_cross(length/dx, width/dy,62 ## len1=length, len2=width,63 ## origin = (west, south))64 ##65 ##domain = Domain(points, vertices, boundary) # Create domain66 67 68 68 69 # Unstructured mesh … … 70 71 interior_polygon = [[400,north],[west+10,north], 71 72 [west+10,south],[400,south]] 72 res = 1. 73 simulation_name = 'runup_convergence' + str( res)73 74 simulation_name = 'runup_convergence' + str(max_area) 74 75 meshname = simulation_name + '.msh' 75 76 create_mesh_from_regions(polygon, 76 77 boundary_tags={'top': [0], 'left': [1], 77 78 'bottom': [2], 'right': [3]}, 78 maximum_triangle_area=100., #dx*dy/4.,79 maximum_triangle_area=100., 79 80 filename=meshname, 80 #interior_regions=[[interior_polygon,dx*dy/32.]]) 81 interior_regions=[[interior_polygon,res]]) 81 interior_regions=[[interior_polygon, max_area]]) 82 82 83 83 84 84 85 85 domain = Domain(meshname, use_cache=True, verbose = True) 86 domain.set_minimum_storable_height(0.01) 87 86 #domain.set_minimum_storable_height(0.01) 87 #domain.set_minimum_allowed_height(0.01) 88 domain.beta_h = 0.0 89 domain.limit2007 = 1 88 90 domain.set_name(simulation_name) 89 91 … … 175 177 print 'Max coastline elevation = %.2f at (%.2f, %.2f)' %(w_max, x_max, y_max) 176 178 print 'Run up distance = %.2f' %sqrt( (x_max-x0)**2 + (y_max-y0)**2 ) 179 print 'Max area in runup zone = %.2f' %max_area 177 180 print '**********************************************' 178 181
Note: See TracChangeset
for help on using the changeset viewer.