Changeset 340
- Timestamp:
- Sep 22, 2004, 2:30:48 PM (20 years ago)
- 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 2 using time boundary from a file 5 3 """ 6 4 … … 13 11 from Numeric import array, ones 14 12 15 #Create basic mesh (1km x 1km)13 #Create basic mesh (100m x 100m) 16 14 points, vertices, boundary = rectangular(50, 50, 100, 100) 17 15 … … 20 18 domain.smooth = False 21 19 domain.visualise = False 22 domain.default_order =223 domain.store = True #Store for visualisation purposes20 domain.default_order = 2 21 domain.store = True #Store for visualisation purposes 24 22 domain.format = 'sww' #Native netcdf visualisation format 25 23 … … 28 26 ####################### 29 27 #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) 28 domain.set_quantity('elevation', 0.0) #Flat 29 #domain.set_quantity('elevation', lambda x,y: -(x+y)/3) #Slopy 33 30 domain.set_quantity('friction', 0.1) 34 31 … … 57 54 58 55 ###################### 59 #Initial condition 56 #Initial condition (constant) 60 57 domain.set_quantity('level', 0.0) 61 62 58 domain.check_integrity() 63 59
Note: See TracChangeset
for help on using the changeset viewer.