Changeset 8103


Ignore:
Timestamp:
Dec 17, 2010, 2:05:11 PM (9 years ago)
Author:
steve
Message:

Modified a few files

Location:
trunk/anuga_validation/validation_tests
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_validation/validation_tests/parabolic_basin.py

    r8102 r8103  
    2626#-------------------------------
    2727# Domain
    28 n = 200
    29 m = 200
     28n = 50
     29m = 50
    3030lenx = 8000.0
    3131leny = 8000.0
     
    4242domain.set_default_order(2)
    4343domain.set_timestepping_method(2)
    44 domain.set_beta(0.7)
     44domain.set_beta(1.5)
    4545domain.set_CFL(0.6)
    4646
     
    5151domain.store = False
    5252domain.format = 'sww'
    53 domain.set_name('yoon_mesh_second_order_cross')
     53domain.set_name('par')
    5454print 'Number of triangles = ', len(domain)
    5555
     
    143143Ymomentum = domain.quantities['ymomentum']
    144144
     145interactive_visualisation = True
     146#===============================================================================
     147if interactive_visualisation:
     148    from anuga.visualiser import RealtimeVisualiser
     149    vis = RealtimeVisualiser(domain)
     150    vis.render_quantity_height("stage", zScale =1000, dynamic=True)
     151    vis.colour_height_quantity('stage', (1.0, 0.5, 0.5))
     152    vis.start()
     153#===============================================================================
     154
    145155for t in domain.evolve(yieldstep = 20.0, finaltime = 17700.0 ):
    146156    domain.write_time()
     
    159169    time_array.append(t)
    160170    stage_array.append(stage)
     171
     172    if interactive_visualisation:
     173        vis.update()
    161174
    162175file.close()
     
    178191
    179192
     193if interactive_visualisation:
     194    vis.evolveFinished()
  • trunk/anuga_validation/validation_tests/periodic_wave.py

    r8102 r8103  
    3030#start_screen_catcher(output_dir+sep)
    3131
    32 interactive_visualisation = False
     32interactive_visualisation = True
    3333
    3434#------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.