Changeset 7064 for anuga_core/documentation/user_manual/demos/channel1.py
- Timestamp:
- May 22, 2009, 4:40:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/documentation/user_manual/demos/channel1.py
r5173 r7064 12 12 from anuga.shallow_water import Dirichlet_boundary 13 13 14 15 14 #------------------------------------------------------------------------------ 16 15 # Setup computational domain … … 21 20 domain = Domain(points, vertices, boundary) # Create domain 22 21 domain.set_name('channel1') # Output name 23 24 22 25 23 #------------------------------------------------------------------------------ … … 34 32 expression='elevation + 0.0') 35 33 36 37 34 #------------------------------------------------------------------------------ 38 35 # Setup boundary conditions … … 43 40 domain.set_boundary({'left': Bi, 'right': Br, 'top': Br, 'bottom': Br}) 44 41 45 46 42 #------------------------------------------------------------------------------ 47 43 # Evolve system through time 48 44 #------------------------------------------------------------------------------ 49 for t in domain.evolve(yieldstep = 0.2, finaltime =40.0):45 for t in domain.evolve(yieldstep=0.2, finaltime=40.0): 50 46 print domain.timestepping_statistics() 51 52
Note: See TracChangeset
for help on using the changeset viewer.