Ignore:
Timestamp:
May 15, 2005, 10:25:56 PM (19 years ago)
Author:
steve
Message:

Added ghosts to rectangle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/netherlands.py

    r1392 r1393  
    6565
    6666            #Wall
    67             #if x[i] > 0.995:
    68             #    z[i] = -x[i]/20+0.3
     67            if x[i] > 0.995:
     68                z[i] = -x[i]/20+0.3
    6969
    7070        return z/2
     
    103103
    104104#Set bed-slope and friction
    105 inflow_stage = 0.2
    106 manning = 0.00
     105inflow_stage = 0.1
     106manning = 0.03
    107107Z = Weir(inflow_stage)
    108108
     
    156156t0 = time.time()
    157157
    158 for t in domain.evolve(yieldstep = 1.0, finaltime = 100.0):
     158from visual import *
     159
     160for t in domain.evolve(yieldstep = 0.1, finaltime = 15.0):
    159161    domain.write_time()
    160162    #domain.visualiser.scale_z = 1.0
    161     domain.visualiser.update_quantity_color('xmomentum',scale_z = 4.0)
     163    #domain.visualiser.update_quantity_color('xmomentum',scale_z = 4.0)
     164    #integral_label.text='Integral=%10.5e'%domain.quantities['stage'].get_integral()
    162165
    163166
Note: See TracChangeset for help on using the changeset viewer.