- Timestamp:
- Jun 15, 2010, 9:11:59 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/documentation/user_manual/demos/buildings.py
r7816 r7838 26 26 length = 50 27 27 width = 10 28 resolution = 0.15# make this number smaller to make the simulation more accurate28 resolution = 1.0 # make this number smaller to make the simulation more accurate 29 29 30 30 # Create the "world" as a long, skinny channel … … 73 73 }) 74 74 75 import cPickle 76 75 77 #------------------------------------------------------------------------------ 76 78 # Evolve system through time 77 79 #------------------------------------------------------------------------------ 78 for t in domain.evolve(yieldstep=0.2, finaltime=15.0): 79 print domain.timestepping_statistics() 80 #for t in domain.evolve(yieldstep=0.2, finaltime=15.0): 81 # print domain.timestepping_statistics() 82 83 #cPickle.dump(domain, open('domain_pickle.txt', 'w')) 84 85 domain = cPickle.load(open('domain_pickle.txt')) 86 80 87 81 88 # now turn off the tap 82 89 domain.set_boundary({'left': Bo}) 83 90 84 for t in domain.evolve(yieldstep=0. 2, finaltime=30.0):91 for t in domain.evolve(yieldstep=0.1, finaltime=30.0): 85 92 print domain.timestepping_statistics()
Note: See TracChangeset
for help on using the changeset viewer.