Changeset 340


Ignore:
Timestamp:
Sep 22, 2004, 2:30:48 PM (20 years ago)
Author:
ole
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/bed_w_eden_boundary.py

    r326 r340  
    1 """Example of shallow water wave equation.
    2 
    3 Generate slope
    4 
     1"""Example of shallow water wave equation
     2using time boundary from a file
    53"""
    64
     
    1311from Numeric import array, ones
    1412
    15 #Create basic mesh  (1km x 1km)
     13#Create basic mesh (100m x 100m)
    1614points, vertices, boundary = rectangular(50, 50, 100, 100)
    1715
     
    2018domain.smooth = False
    2119domain.visualise = False
    22 domain.default_order=2
    23 domain.store = True    #Store for visualisation purposes
     20domain.default_order = 2
     21domain.store = True     #Store for visualisation purposes
    2422domain.format = 'sww'   #Native netcdf visualisation format
    2523
     
    2826#######################
    2927#Bed-slope and friction
    30 domain.set_quantity('elevation', lambda x,y: 0.*ones(x.shape))
    31 
    32 #domain.set_quantity('elevation', lambda x,y: -(x+y)/3)
     28domain.set_quantity('elevation', 0.0) #Flat
     29#domain.set_quantity('elevation', lambda x,y: -(x+y)/3) #Slopy
    3330domain.set_quantity('friction', 0.1)
    3431
     
    5754
    5855######################
    59 #Initial condition
     56#Initial condition (constant)
    6057domain.set_quantity('level', 0.0)
    61 
    6258domain.check_integrity()
    6359
Note: See TracChangeset for help on using the changeset viewer.