Changeset 3962


Ignore:
Timestamp:
Nov 9, 2006, 8:19:26 PM (16 years ago)
Author:
steve
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/examples/netherlands.py

    r3906 r3962  
    1717from anuga.abstract_2d_finite_volumes.mesh_factory import rectangular_cross
    1818from Numeric import array
    19 from anuga.visualiser.vtk_realtime_visualiser import Visualiser
     19from anuga.visualiser import RealtimeVisualiser
    2020
    2121class Weir:
     
    138138    domain.checkpoint = False
    139139    domain.store = False
    140     vis = Visualiser(domain,title="netherlands")
    141     vis.setup['elevation'] = True
    142     vis.updating['stage'] = True
    143     vis.qcolor['stage'] = (0.0,0.0,0.8)
    144     vis.coloring['stage']= False
     140    domain.visualise = False
     141    vis = RealtimeVisualiser(domain)
     142    vis.render_quantity_height("elevation", dynamic=False)
     143    vis.render_quantity_height("stage", dynamic=True)
     144    vis.colour_height_quantity('stage', (0.0, 0.0, 0.8))
     145    vis.start()
    145146
    146147
     
    199200    #domain.visualiser.update_quantity_color('xmomentum',scale_z = 4.0)
    200201    #integral_label.text='Integral=%10.5e'%domain.quantities['stage'].get_integral()
    201 
     202vis.evolveFinished()
    202203
    203204print 'That took %.2f seconds' %(time.time()-t0)
    204 vis.shutdown()
     205
     206
     207v.join()
Note: See TracChangeset for help on using the changeset viewer.