Changeset 4362


Ignore:
Timestamp:
Apr 5, 2007, 4:13:27 PM (17 years ago)
Author:
ole
Message:

Work on convergence of solitary wave

Location:
anuga_validation/solitary_waves
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/solitary_waves/convergence_results.txt

    r4356 r4362  
    11CONVERGENCE RESULTS
    2        
    3        
    4        
    5 max_area = 1.0 
     2
     3
     4
     5**********************************************
     6Coastline elevation = -0.00 at (x,y)=(300.05, 85.17)
     7Max coastline elevation = 4.24 at (88.25, 85.17)
     8Run up distance = 211.81
     9Max area in runup zone = 2.00
     10********************************************** 
     11
    612**********************************************
    713Coastline elevation = -0.00 at (x,y)=(300.05, 99.61)
    814Max coastline elevation = 3.91 at (104.56, 99.61)
    915Run up distance = 195.49
     16Max area in runup zone = 1.00
     17********************************************** 
     18       
    1019**********************************************
     20Coastline elevation = -0.00 at (x,y)=(300.05, 0.55)
     21Max coastline elevation = 3.39 at (130.32, 0.55)
     22Run up distance = 169.74
     23Max area in runup zone = 0.50
     24**********************************************
     25
     26**********************************************
     27Coastline elevation = -0.00 at (x,y)=(300.05, 11.05)
     28Max coastline elevation = 2.99 at (150.74, 11.05)
     29Run up distance = 149.31
     30Max area in runup zone = 0.25
     31**********************************************
     32
     33
  • anuga_validation/solitary_waves/solitary_wave_runup.py

    r4353 r4362  
    33Water driven up a linear slope and time varying boundary,
    44similar to a beach environment.
     5
     6For the case (H=0.5m, tan beta=1:50, and still water depth 20m),
     7the analytical solution for runup height (R) should be 3.97997m.
    58
    69"""
     
    2730
    2831
     32
    2933#------------------------------------------------------------------------------
    3034# Model constants
     35
     36max_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
    3142
    3243slope = -0.02       # 1:50 Slope, reaches h=20m 1000m from western bndry,
     
    5364#------------------------------------------------------------------------------
    5465
    55 # Structured mesh
    56 dx = 40.           # Resolution: Length of subdivisions on x axis (length)
    57 dy = 40.          # Resolution: Length of subdivisions on y axis (width)
    58 
    5966length = east-west
    6067width = 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 domain
    66 
    6768
    6869# Unstructured mesh
     
    7071interior_polygon = [[400,north],[west+10,north],
    7172                    [west+10,south],[400,south]]
    72 res = 1.
    73 simulation_name = 'runup_convergence' + str(res)
     73
     74simulation_name = 'runup_convergence' + str(max_area)
    7475meshname = simulation_name + '.msh'
    7576create_mesh_from_regions(polygon,
    7677                         boundary_tags={'top': [0], 'left': [1],
    7778                                        'bottom': [2], 'right': [3]},
    78                          maximum_triangle_area=100.,#dx*dy/4.,
     79                         maximum_triangle_area=100.,
    7980                         filename=meshname,
    80                          #interior_regions=[[interior_polygon,dx*dy/32.]])
    81                          interior_regions=[[interior_polygon,res]])
     81                         interior_regions=[[interior_polygon, max_area]])
    8282
    8383
    8484
    8585domain = 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)
     88domain.beta_h = 0.0
     89domain.limit2007 = 1
    8890domain.set_name(simulation_name)
    8991
     
    175177print 'Max coastline elevation = %.2f at (%.2f, %.2f)' %(w_max, x_max, y_max)
    176178print 'Run up distance = %.2f' %sqrt( (x_max-x0)**2 + (y_max-y0)**2 )
     179print 'Max area in runup zone = %.2f' %max_area
    177180print '**********************************************'
    178181
Note: See TracChangeset for help on using the changeset viewer.