Changeset 4722
- Timestamp:
- Sep 11, 2007, 9:39:35 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/convergence_study/convergence_structured.py
r4721 r4722 35 35 #points, vertices, boundary = rectangular_cross(1000, 100, 20, 3) # Basic mesh 36 36 domain = Domain(points, vertices, boundary) 37 37 domain.set_timestepping_method('rk2') 38 domain.set_default_order(2) 38 39 ## # unstructured mesh 39 40 ## poly_domain = [[0,-W],[0,W],[L,W],[L,-W]] … … 49 50 ## # Create domain 50 51 ## domain = Domain(meshname, use_cache=True, verbose = True) 51 domain.set_name('myexample 3')52 domain.set_name('myexample6') 52 53 domain.set_datadir('.') # Use current directory for output 53 54 … … 68 69 Bd = Dirichlet_boundary([1,0.,0.]) # Constant boundary values 69 70 amplitude = 1 71 #Bw = Transmissive_Momentum_Set_Stage_boundary(domain=domain, 70 72 Bw = Time_boundary(domain=domain, # Time dependent boundary 71 73 ## Sine wave … … 81 83 domain.set_boundary({'left': Bw, 'right': Bt, 'top': Br, 'bottom': Br}) 82 84 83 vis = RealtimeVisualiser(domain) 84 vis.render_quantity_height("elevation", dynamic=False) 85 vis.render_quantity_height("stage", dynamic=True) 86 vis.colour_height_quantity('stage', (0.0, 0.0, 0.8)) 87 vis.start() 85 #from anuga.visualiser import RealtimeVisualiser 86 #vis = RealtimeVisualiser(domain) 87 #vis.render_quantity_height("elevation", dynamic=False) 88 #vis.render_quantity_height("stage", dynamic=True) 89 #vis.colour_height_quantity('stage', (0.0, 0.0, 0.8)) 90 #vis.start() 88 91 89 92 #------------------------------------------------------------------------------ … … 93 96 for t in domain.evolve(yieldstep = 20.0, finaltime = 40*60.): 94 97 domain.write_time() 95 vis.update()98 #vis.update() 96 99 97 vis.evolveFinished()98 vis.join()100 #vis.evolveFinished() 101 #vis.join()
Note: See TracChangeset
for help on using the changeset viewer.