Changeset 3962
- Timestamp:
- Nov 9, 2006, 8:19:26 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/examples/netherlands.py
r3906 r3962 17 17 from anuga.abstract_2d_finite_volumes.mesh_factory import rectangular_cross 18 18 from Numeric import array 19 from anuga.visualiser .vtk_realtime_visualiser importVisualiser19 from anuga.visualiser import RealtimeVisualiser 20 20 21 21 class Weir: … … 138 138 domain.checkpoint = False 139 139 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() 145 146 146 147 … … 199 200 #domain.visualiser.update_quantity_color('xmomentum',scale_z = 4.0) 200 201 #integral_label.text='Integral=%10.5e'%domain.quantities['stage'].get_integral() 201 202 vis.evolveFinished() 202 203 203 204 print 'That took %.2f seconds' %(time.time()-t0) 204 vis.shutdown() 205 206 207 v.join()
Note: See TracChangeset
for help on using the changeset viewer.