Changeset 4715


Ignore:
Timestamp:
Sep 10, 2007, 5:17:33 PM (17 years ago)
Author:
ole
Message:

Work on Will's convergence problem

Location:
anuga_validation/convergence_study
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/convergence_study/animatesww2d_alt.py

    r4709 r4715  
    124124    close('all')
    125125
    126 swwfile = join(getenv('INUNDATIONHOME'),'data','validation','convergence_study','5000','myexample2.sww')
    127 animatesww2d(swwfile)
     126if __name__ == '__main__':
     127    import sys
     128    swwfile = sys.argv[1]
     129   
     130    animatesww2d(swwfile)
     131   
     132#swwfile = join(getenv('INUNDATIONHOME'),'data','validation','convergence_study','5000','myexample2.sww')
     133#animatesww2d(swwfile)
    128134
    129135# once png files have been created, they can then be dragged into
  • anuga_validation/convergence_study/convergence.py

    r4709 r4715  
    4444                         boundary_tags={'left': [0], 'top': [1],
    4545                                        'right': [2], 'bottom': [3]},
    46                          maximum_triangle_area = 1000,
     46                         maximum_triangle_area = 100000,
    4747                         filename=meshname)
    4848
     
    5050domain = Domain(meshname, use_cache=True, verbose = True)
    5151domain.set_name('myexample2')               
     52domain.set_default_order(2) # Use second order spatial scheme
    5253domain.set_datadir('.')                     # Use current directory for output
    5354
     
    5657#------------------------------------------------------------------------------
    5758#domain.set_quantity('elevation', topography) # Use function for elevation
    58 domain.set_quantity('elevation',-100)
     59domain.set_quantity('elevation', -100)
    5960domain.set_quantity('friction', 0.00)
    6061domain.set_quantity('stage', 0.0)           
Note: See TracChangeset for help on using the changeset viewer.