Changeset 4722


Ignore:
Timestamp:
Sep 11, 2007, 9:39:35 AM (17 years ago)
Author:
steve
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/convergence_study/convergence_structured.py

    r4721 r4722  
    3535#points, vertices, boundary = rectangular_cross(1000, 100, 20, 3) # Basic mesh
    3636domain = Domain(points, vertices, boundary)
    37 
     37domain.set_timestepping_method('rk2')
     38domain.set_default_order(2)
    3839## # unstructured mesh
    3940## poly_domain = [[0,-W],[0,W],[L,W],[L,-W]]
     
    4950## # Create domain
    5051## domain = Domain(meshname, use_cache=True, verbose = True)
    51 domain.set_name('myexample3')               
     52domain.set_name('myexample6')               
    5253domain.set_datadir('.')                     # Use current directory for output
    5354
     
    6869Bd = Dirichlet_boundary([1,0.,0.]) # Constant boundary values
    6970amplitude = 1
     71#Bw = Transmissive_Momentum_Set_Stage_boundary(domain=domain,
    7072Bw = Time_boundary(domain=domain,     # Time dependent boundary 
    7173## Sine wave
     
    8183domain.set_boundary({'left': Bw, 'right': Bt, 'top': Br, 'bottom': Br})
    8284
    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()
    8891
    8992#------------------------------------------------------------------------------
     
    9396for t in domain.evolve(yieldstep = 20.0, finaltime = 40*60.):
    9497    domain.write_time()
    95     vis.update()
     98    #vis.update()
    9699   
    97 vis.evolveFinished()
    98 vis.join()
     100#vis.evolveFinished()
     101#vis.join()
Note: See TracChangeset for help on using the changeset viewer.