Changeset 1696


Ignore:
Timestamp:
Aug 8, 2005, 5:59:09 PM (19 years ago)
Author:
ole
Message:

Played with lwru2 validation (momentum of BC)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/validation/LWRU2/lwru2.py

    r1691 r1696  
    5959
    6060    fid.createVariable('xmomentum', Float, ('number_of_timesteps',))
    61     fid.variables['xmomentum'][:] = 0.0 #0.04
     61    #fid.variables['xmomentum'][:] = 0.005
     62    #fid.variables['xmomentum'][:-1] = Q[1:]-Q[:-1]/0.05 #Too high
     63    #fid.variables['xmomentum'][:-1] = Q[1:]-Q[:-1]/0.5   #Too low
     64    #fid.variables['xmomentum'][:-1] = Q[1:]-Q[:-1]/0.1   #Too high
     65    #fid.variables['xmomentum'][:-1] = Q[1:]-Q[:-1]/0.25   #Too high
     66    #fid.variables['xmomentum'][:-1] = Q[1:]-Q[:-1]/0.35 #Too low
     67    #fid.variables['xmomentum'][:-1] = Q[1:]-Q[:-1]/0.3  #Too low
     68    #fid.variables['xmomentum'][-1] = 0.0
     69   
     70
     71    fid.variables['xmomentum'][:] = 0.003
     72   
    6273    fid.createVariable('ymomentum', Float, ('number_of_timesteps',))
    6374    fid.variables['ymomentum'][:] = 0.0
     
    8394   
    8495try:
    85     raise Exception
     96    #raise Exception
    8697    print 'Read pickled domain'
    8798    fid = open(picklefile)
     
    157168import time
    158169t0 = time.time()
    159 domain.visualise = True
     170domain.visualise = False
    160171
    161172for t in domain.evolve(yieldstep = 0.05, finaltime = 22.5):
Note: See TracChangeset for help on using the changeset viewer.