Changeset 8325


Ignore:
Timestamp:
Jan 30, 2012, 9:54:32 PM (12 years ago)
Author:
steve
Message:

Uncommented the vtk visualisation code in dam_break.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_validation/validation_tests/dam_break.py

    r8212 r8325  
    9696
    9797#===============================================================================
    98 ##from anuga.visualiser import RealtimeVisualiser
    99 ##vis = RealtimeVisualiser(domain)
    100 ##vis.render_quantity_height("stage", zScale =h0*500, dynamic=True)
    101 ##vis.colour_height_quantity('stage', (0.0, 0.5, 1.0))
    102 ##vis.start()
     98from anuga.visualiser import RealtimeVisualiser
     99vis = RealtimeVisualiser(domain)
     100vis.render_quantity_height("stage", zScale=1, dynamic=True, wireframe=True)
     101vis.render_quantity_height("elevation", zScale=1, dynamic=False, wireframe=True)
     102vis.colour_height_quantity('stage', (0.0, 0.5, 1.0))
     103vis.colour_height_quantity('elevation', (0.5, 0.5, 0.5))
     104vis.start()
    103105#===============================================================================
    104106
     
    110112    #print domain.timestepping_statistics(track_speeds=True)
    111113    print domain.timestepping_statistics()
    112     #vis.update()
     114    vis.update()
    113115
    114116
    115117#test against know data
    116118   
    117 #vis.evolveFinished()
     119vis.evolveFinished()
    118120
Note: See TracChangeset for help on using the changeset viewer.