Changeset 3617


Ignore:
Timestamp:
Sep 18, 2006, 5:47:04 PM (18 years ago)
Author:
ole
Message:

Modifications from Rosh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/examples/runup_convergence.py

    r3563 r3617  
    2929# Model constants
    3030
    31 slope = -0.05       # 1:20 Slope
     31slope = -0.02       # 1:50 Slope, reaches h=20m 1000m from western bndry, and h=0 (coast) at 300m
    3232highest_point = 6   # Highest elevation (m)
    3333sea_level = 0       # Mean sea level
    3434min_elevation = -20 # Lowest elevation (elevation of offshore flat part)
    3535offshore_depth=sea_level-min_elevation # offshore water depth
    36 amplitude = 2       # Solitary wave height H
     36amplitude = 0.5       # Solitary wave height H
    3737normalized_amplitude = amplitude/offshore_depth
    3838simulation_name = 'runup_convergence'   
     
    4141# Basin dimensions (m)
    4242west = 0          # left boundary
    43 east = 500        # right boundary
     43east = 1500        # right boundary
    4444south = 0         # lower boundary
    4545north = 100       # upper bourdary
     
    5151
    5252# Structured mesh
    53 dx = 10           # Resolution: Lenght of subdivisions on x axis (length)
    54 dy = 10           # Resolution: Lenght of subdivisions on y axis (width)
     53dx = 20           # Resolution: Lenght of subdivisions on x axis (length)
     54dy = 20           # Resolution: Lenght of subdivisions on y axis (width)
    5555
    5656length = east-west
     
    6565# Unstructured mesh
    6666polygon = [[east,north],[west,north],[west,south],[east,south]]
    67 interior_polygon = [[200,north-10],[west+10,north-10],[west+10,south+10],[200,south+10]]
     67interior_polygon = [[400,north-10],[west+10,north-10],[west+10,south+10],[400,south+10]]
    6868meshname = simulation_name + '.msh'
    6969create_mesh_from_regions(polygon,
     
    119119
    120120def waveform(t):
    121     return sea_level + normalized_amplitude/cosh(t-25)**2
     121    return sea_level + amplitude/cosh(((t-50)/offshore_depth)*(0.75*9.81*amplitude)**0.5)**2
    122122
    123123Bw = Time_boundary(domain=domain,     # Time dependent boundary 
     
    137137
    138138stagestep = []
    139 for t in domain.evolve(yieldstep = 1, finaltime = 100):
     139for t in domain.evolve(yieldstep = 1, finaltime = 300):
    140140    domain.write_time()
    141141
     
    149149def gauge_line(west,east,north,south):
    150150    from Numeric import arange
    151     x_vector = arange(west, (east-west)/2, 10) # Gauges every 10 meter from west to midpt
     151    x_vector = arange(west,600, 1) # Gauges every 1 meter from west to 600m from western bdry
    152152    y = (north+south)/2.
    153153
Note: See TracChangeset for help on using the changeset viewer.