Changeset 4026 for anuga_core/source/anuga/examples
- Timestamp:
- Nov 21, 2006, 8:36:47 PM (18 years ago)
- Location:
- anuga_core/source/anuga/examples
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/examples/advection_dirichlet.py
r3560 r4026 20 20 domain = Domain(points, vertices, boundary, velocity=[1.0, -1.0]) 21 21 domain.smooth = False 22 domain.visualise = True23 22 24 23 #Boundaries -
anuga_core/source/anuga/examples/advection_waves.py
r3560 r4026 19 19 domain = Domain(points, vertices, boundary, velocity=[1.0, -0.8]) 20 20 #domain.smooth = False 21 domain.visualise = True22 21 23 22 #Boundaries -
anuga_core/source/anuga/examples/bed_w_eden_boundary.py
r3565 r4026 17 17 domain = Domain(points, vertices, boundary) 18 18 domain.smooth = False 19 domain.visualise = False20 19 domain.default_order = 2 21 20 domain.store = True #Store for visualisation purposes -
anuga_core/source/anuga/examples/bed_w_file_boundary.py
r3565 r4026 19 19 domain = Domain(points, vertices, boundary) 20 20 domain.smooth = False 21 domain.visualise = True22 21 domain.default_order=2 23 22 -
anuga_core/source/anuga/examples/cornell_room.py
r3846 r4026 63 63 print "Number of triangles = ", len(domain) 64 64 65 domain.visualise = False66 domain.checkpoint = False67 65 domain.store = True #Store for visualisation purposes 68 66 domain.format = 'sww' #Native netcdf visualisation format -
anuga_core/source/anuga/examples/flatbed_compare.py
r3565 r4026 20 20 domain = Domain(points, vertices, boundary) 21 21 domain.smooth = False 22 domain.visualise = True23 22 domain.default_order=2 24 23 -
anuga_core/source/anuga/examples/island.py
r3876 r4026 61 61 domain.maximum_allowed_speed = 100.0 62 62 domain.minimum_storable_height = 1.0e-4 63 domain.visualise_wet_dry_cutoff = 5.0e-264 63 65 64 #------------------------------------------------------------------------------ … … 101 100 domain.check_integrity() 102 101 103 domain.initialise_visualiser()104 102 #------------------------------------------------------------------------------ 105 103 # Evolve system through time -
anuga_core/source/anuga/examples/netherlands.py
r3962 r4026 122 122 123 123 if N > 150: 124 domain.visualise = False125 124 domain.checkpoint = False 126 125 domain.store = True #Store for visualisation purposes … … 132 131 domain.set_name(basename) 133 132 else: 134 #domain.initialise_visualiser(rect=[0.0,0.0,1.0,1.0])135 #domain.initialise_visualiser()136 #domain.visualiser.coloring['stage'] = False137 domain.visualise_timer = True138 133 domain.checkpoint = False 139 134 domain.store = False 140 domain.visualise = False141 135 vis = RealtimeVisualiser(domain) 142 136 vis.render_quantity_height("elevation", dynamic=False) … … 177 171 t0 = time.time() 178 172 179 180 #from realtime_visualisation_new import Visualiser181 #V = Visualiser(domain,title='netherlands')182 #V.update_quantity('stage')183 #V.update_quantity('elevation')184 185 186 187 188 173 for t in domain.evolve(yieldstep = 0.005, finaltime = None): 189 174 domain.write_time() … … 192 177 print domain.quantities['stage'].get_values(location='centroids', 193 178 indices=[0]) 194 #domain.visualiser.update_quantity('elevation')195 179 #time.sleep(0.1) 196 180 #raw_input('pause>') 197 181 #V.update_quantity('stage') 198 182 #rpdb.set_active() 199 #domain.visualiser.scale_z = 1.0200 #domain.visualiser.update_quantity_color('xmomentum',scale_z = 4.0)201 183 #integral_label.text='Integral=%10.5e'%domain.quantities['stage'].get_integral() 202 184 vis.evolveFinished() -
anuga_core/source/anuga/examples/run_gong.py
r3846 r4026 21 21 from mesh_factory import rectangular 22 22 from anuga.pyvolution.pmesh2domain import pmesh_to_domain, pmesh_to_domain_instance 23 from anuga.visualiser import RealtimeVisualiser 23 24 24 25 from Numeric import array … … 50 51 domain.checkpoint = False #True 51 52 domain.default_order = 1 52 domain.visualise = visualise53 53 domain.smooth = True 54 54 domain.set_datadir('.') 55 55 domain.starttime = 20000 56 56 57 if ( domain.visualise):57 if (visualise): 58 58 domain.store = False #True #Store for visualisation purposes 59 59 else: … … 122 122 domain.check_integrity() 123 123 124 # prepare the visualiser 125 if visualise is True: 126 v = RealtimeVisualiser(domain) 127 v.render_quantity_height('elevation', dynamic=False) 128 v.render_quantity_height('stage', dynamic=True) 129 v.colour_height_quantity('stage', (0.0, 0.0, 0.8)) 130 v.start() 124 131 ###################### 125 132 #Evolution … … 127 134 for t in domain.evolve(yieldstep = yieldstep, finaltime = finaltime): 128 135 domain.write_time() 136 if visualise is True: 137 v.update() 138 if visualise is True: 139 v.evolveFinished() 129 140 130 141 print 'That took %.2f seconds' %(time.time()-t0) -
anuga_core/source/anuga/examples/run_sw_rectangle.py
r3697 r4026 48 48 print 'Number of triangles =', len(domain) 49 49 50 # Turn on the visualisation51 try:52 domain.initialise_visualiser()53 except:54 pass55 56 57 50 #----------------------------------------------------------------- 58 51 # Boundaries and Initial conditions … … 91 84 domain.set_name('new_limiter_second_order') 92 85 print 'Number of triangles =', len(domain) 93 94 # Turn on the visualisation95 try:96 domain.initialise_visualiser()97 except:98 pass99 86 100 87 #----------------------------------------------------------------- … … 136 123 print 'Number of triangles =', len(domain) 137 124 138 # Turn on the visualisation139 try:140 domain.initialise_visualiser()141 except:142 pass143 144 125 #----------------------------------------------------------------- 145 126 # Boundaries and Initial conditions -
anuga_core/source/anuga/examples/run_tsh.py
r3846 r4026 60 60 domain.checkpoint = False #True 61 61 domain.default_order = 1 62 domain.visualise = visualise63 62 domain.smooth = True 64 63 domain.set_datadir('.') 65 64 66 if ( domain.visualise):65 if (visualise): 67 66 domain.store = False #True #Store for visualisation purposes 68 67 else: … … 149 148 150 149 domain.check_integrity() 151 150 151 # prepare the visualiser 152 if visualise is True: 153 v = RealtimeVisualiser(domain) 154 v.render_quantity_height('elevation', dynamic=False) 155 v.render_quantity_height('stage', dynamic=True) 156 v.colour_height_quantity('stage', (0.0, 0.0, 0.8)) 157 v.start() 152 158 ###################### 153 159 #Evolution … … 155 161 for t in domain.evolve(yieldstep = yieldstep, finaltime = finaltime): 156 162 domain.write_time() 163 if visualise is True: 164 v.update() 165 if visualise is True: 166 v.evolveFinished() 167 157 168 158 169 print 'That took %.2f seconds' %(time.time()-t0) -
anuga_core/source/anuga/examples/run_tsh_weir.py
r3846 r4026 43 43 domain.set_name('weir') 44 44 domain.checkpoint = False #True 45 domain.visualise = True #False46 45 domain.default_order = 2 47 46 -
anuga_core/source/anuga/examples/twolevels.py
r3846 r4026 30 30 domain.default_order=2 31 31 domain.smooth = False 32 domain.visualise = True33 32 34 33 #PLAY WITH THIS [0;1]: -
anuga_core/source/anuga/examples/wind_example_variable.py
r3565 r4026 19 19 domain = Domain(points, vertices, boundary) 20 20 domain.smooth = True 21 domain.visualise = False22 21 domain.store = True 23 22 domain.default_order=2
Note: See TracChangeset
for help on using the changeset viewer.