Changeset 5180 for anuga_validation/convergence_study/wave.py
- Timestamp:
- Mar 28, 2008, 2:13:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/convergence_study/wave.py
r5175 r5180 42 42 # Setup domain 43 43 #------------------------------------------------------------------------------ 44 dx = 200.44 dx = 100. 45 45 dy = dx 46 46 L = 100000. … … 76 76 domain.beta_h = 0.0 77 77 78 interactive_visualisation = False 79 78 80 79 81 #------------------------------------------------------------------------------ … … 107 109 108 110 #=============================================================================== 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() 111 if 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() 114 117 #=============================================================================== 115 118 … … 121 124 for t in domain.evolve(yieldstep = 50.0, finaltime = 60*60.): 122 125 domain.write_time() 123 vis.update() 124 125 vis.evolveFinished() 126 if interactive_visualisation: 127 vis.update() 126 128 129 if interactive_visualisation: 130 vis.evolveFinished() 131
Note: See TracChangeset
for help on using the changeset viewer.