Ignore:
Timestamp:
Mar 28, 2008, 2:13:13 PM (17 years ago)
Author:
steve
Message:

Added an example which has soliton type solutions (tilted.py)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/convergence_study/wave.py

    r5175 r5180  
    4242# Setup domain
    4343#------------------------------------------------------------------------------
    44 dx = 200.
     44dx = 100.
    4545dy = dx
    4646L = 100000.
     
    7676domain.beta_h    = 0.0
    7777
     78interactive_visualisation = False
     79
    7880
    7981#------------------------------------------------------------------------------
     
    107109
    108110#===============================================================================
    109 from anuga.visualiser import RealtimeVisualiser
    110 vis = RealtimeVisualiser(domain)
    111 vis.render_quantity_height("stage", zScale =10000, dynamic=True)
    112 vis.colour_height_quantity('stage', (1.0, 0.5, 0.5))
    113 vis.start()
     111if interactive_visualisation:
     112    from anuga.visualiser import RealtimeVisualiser
     113    vis = RealtimeVisualiser(domain)
     114    vis.render_quantity_height("stage", zScale =10000, dynamic=True)
     115    vis.colour_height_quantity('stage', (1.0, 0.5, 0.5))
     116    vis.start()
    114117#===============================================================================
    115118
     
    121124for t in domain.evolve(yieldstep = 50.0, finaltime = 60*60.):
    122125    domain.write_time()
    123     vis.update()
    124    
    125 vis.evolveFinished()
     126    if interactive_visualisation:
     127        vis.update()
    126128
     129if interactive_visualisation:
     130    vis.evolveFinished()
     131
Note: See TracChangeset for help on using the changeset viewer.