Ignore:
Timestamp:
May 9, 2008, 3:08:19 PM (17 years ago)
Author:
steve
Message:

Working version of wave.py and dam_break.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/convergence_study/dam_break.py

    r5177 r5300  
    4141# Setup domain
    4242#------------------------------------------------------------------------------
    43 dx = 1000.
     43dx = 200.
    4444dy = dx
    4545L = 100000.
    46 W = 50*dx
     46W = 10*dx
    4747
    4848# structured mesh
     
    6464domain.use_edge_limiter = True
    6565domain.tight_slope_limiters = True
     66domain.use_centroid_velocities = False
    6667
    6768domain.CFL = 1.0
     
    8081
    8182h0 = 10.0
    82 h1 = 0.1
     83h1 = 0.0
    8384
    8485def height(x,y):
     
    110111vis = RealtimeVisualiser(domain)
    111112vis.render_quantity_height("stage", zScale =h0*500, dynamic=True)
    112 vis.colour_height_quantity('stage', (1.0, 0.5, 0.5))
     113vis.colour_height_quantity('stage', (0.0, 0.5, 1.0))
    113114vis.start()
    114115#===============================================================================
Note: See TracChangeset for help on using the changeset viewer.