Ignore:
Timestamp:
Jun 15, 2010, 9:11:59 AM (14 years ago)
Author:
hudson
Message:

Got all demos running with new API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/documentation/user_manual/demos/buildings.py

    r7816 r7838  
    2626length = 50
    2727width = 10
    28 resolution = 0.15 # make this number smaller to make the simulation more accurate
     28resolution = 1.0 # make this number smaller to make the simulation more accurate
    2929
    3030# Create the "world" as a long, skinny channel
     
    7373                    })
    7474
     75import cPickle
     76
    7577#------------------------------------------------------------------------------
    7678# Evolve system through time
    7779#------------------------------------------------------------------------------
    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 
     85domain = cPickle.load(open('domain_pickle.txt'))
     86
    8087   
    8188# now turn off the tap
    8289domain.set_boundary({'left': Bo})
    8390
    84 for t in domain.evolve(yieldstep=0.2, finaltime=30.0):
     91for t in domain.evolve(yieldstep=0.1, finaltime=30.0):
    8592    print domain.timestepping_statistics()       
Note: See TracChangeset for help on using the changeset viewer.