Ignore:
Timestamp:
Sep 13, 2011, 1:44:23 PM (14 years ago)
Author:
steve
Message:

Committing Sudi's changes

File:
1 edited

Legend:

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

    r8156 r8212  
    88# Import necessary modules
    99#------------------------------------------------------------------------------
    10 
    1110import sys
    1211import anuga
    13 
    1412from math import cos
    1513from numpy import zeros, float
     
    2725output_file = 'dam_break'
    2826
    29 anuga.copy_code_files(output_dir,__file__)
     27#anuga.copy_code_files(output_dir,__file__)
    3028#start_screen_catcher(output_dir+'_')
    3129
     
    7270domain.set_quantity('friction', 0.0)
    7371
    74 h0 = 10.0
     72h0 = 10000.0
    7573h1 = 1.0
    7674
     
    8381            z[i] = h1
    8482    return z
     83domain.set_quantity('stage', height)
    8584
    86 
    87 
    88 
    89 
    90 
    91 domain.set_quantity('stage', height)
    9285#-----------------------------------------------------------------------------
    9386# Setup boundary conditions
     
    9891Bd = anuga.Dirichlet_boundary([1,0.,0.]) # Constant boundary values
    9992
    100 
    10193# Associate boundary tags with boundary objects
    10294domain.set_boundary({'left': Bt, 'right': Bt, 'top': Br, 'bottom': Br})
     
    10496
    10597#===============================================================================
    106 from anuga.visualiser import RealtimeVisualiser
    107 vis = RealtimeVisualiser(domain)
    108 vis.render_quantity_height("stage", zScale =h0*500, dynamic=True)
    109 vis.colour_height_quantity('stage', (0.0, 0.5, 1.0))
    110 vis.start()
     98##from anuga.visualiser import RealtimeVisualiser
     99##vis = RealtimeVisualiser(domain)
     100##vis.render_quantity_height("stage", zScale =h0*500, dynamic=True)
     101##vis.colour_height_quantity('stage', (0.0, 0.5, 1.0))
     102##vis.start()
    111103#===============================================================================
    112104
     
    115107# Evolve system through time
    116108#------------------------------------------------------------------------------
    117 
    118 for t in domain.evolve(yieldstep = 100.0, finaltime = 60*60.):
     109for t in domain.evolve(yieldstep = 1.0, finaltime = 10*10.):
    119110    #print domain.timestepping_statistics(track_speeds=True)
    120111    print domain.timestepping_statistics()
    121     vis.update()
     112    #vis.update()
    122113
    123114
    124115#test against know data
    125116   
    126 vis.evolveFinished()
     117#vis.evolveFinished()
    127118
Note: See TracChangeset for help on using the changeset viewer.