- Timestamp:
- Nov 21, 2007, 9:40:40 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/convergence_study/convergence_structured.py
r4722 r4838 23 23 # Setup computational domain 24 24 #------------------------------------------------------------------------------ 25 dx = 200.25 dx = 100. 26 26 dy = dx 27 27 L = 100000. 28 W = 3000.28 W = dx 29 29 30 30 # structured mesh … … 35 35 #points, vertices, boundary = rectangular_cross(1000, 100, 20, 3) # Basic mesh 36 36 domain = Domain(points, vertices, boundary) 37 domain.set_timestepping_method('rk2') 38 domain.set_default_order(2) 37 38 39 39 ## # unstructured mesh 40 40 ## poly_domain = [[0,-W],[0,W],[L,W],[L,-W]] … … 50 50 ## # Create domain 51 51 ## domain = Domain(meshname, use_cache=True, verbose = True) 52 domain.set_name('myexample6') 52 53 domain.set_timestepping_method('euler') 54 domain.set_default_order(2) 55 domain.set_name('myexample9') 53 56 domain.set_datadir('.') # Use current directory for output 57 58 domain.beta_w = 100.0 59 domain.beta_w_dry = 0.2 60 domain.beta_uh = 100.0 61 domain.beta_uh_dry = 0.2 62 domain.beta_vh = 100.0 63 domain.beta_vh_dry = 0.2 64 domain.beta_h = 100.0 54 65 55 66 #------------------------------------------------------------------------------ … … 83 94 domain.set_boundary({'left': Bw, 'right': Bt, 'top': Br, 'bottom': Br}) 84 95 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() 96 ## from anuga.visualiser import RealtimeVisualiser 97 ## vis = RealtimeVisualiser(domain) 98 ## vis.render_quantity_height("elevation", dynamic=False) 99 ## vis.render_quantity_height("stage", dynamic=True, zScale=100.0) 100 ## #vis.colour_height_quantity('stage', (0.0, 0.0, 0.8)) 101 ## vis.colour_height_quantity('stage', (lambda q:q['stage'], -1, 1)) 102 ## vis.start() 91 103 92 104 #------------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.