Changeset 2156 for inundation/examples/bedslope.py
- Timestamp:
- Dec 19, 2005, 6:21:38 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/examples/bedslope.py
r2155 r2156 10 10 from pyvolution.mesh_factory import rectangular 11 11 from pyvolution.shallow_water import Domain, Reflective_boundary,\ 12 Dirichlet_boundary, Constant_height, Time_boundary, Transmissive_boundary 13 from Numeric import array 12 Dirichlet_boundary, Time_boundary, Transmissive_boundary 14 13 15 14 #Create basic mesh … … 22 21 domain.store = True 23 22 domain.filename = 'bedslope' 24 domain.default_order =223 domain.default_order = 2 25 24 26 25 ####################### 27 26 # Initial conditions 28 domain.set_quantity('elevation', lambda x,y: -x/3) 27 def f(x,y): 28 return -x/2 29 30 domain.set_quantity('elevation', f) 29 31 domain.set_quantity('friction', 0.1) 30 32
Note: See TracChangeset
for help on using the changeset viewer.