Ignore:
Timestamp:
Aug 12, 2014, 12:10:51 PM (11 years ago)
Author:
davies
Message:

Adding local extrapolation and flux updating

Location:
trunk/anuga_work/development/gareth/tests/dam_break
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_work/development/gareth/tests/dam_break/dam_break.py

    r9007 r9292  
    1414from numpy import zeros, float
    1515from time import localtime, strftime, gmtime
    16 from bal_and import *
     16#from bal_and import *
    1717#from anuga_tsunami import *
    1818
     
    4242points, vertices, boundary = anuga.rectangular_cross(int(L/dx), int(W/dy), L, W, (0.0, -W/2))
    4343
    44 #domain = anuga.Domain(points, vertices, boundary)
    45 domain = Domain(points, vertices, boundary)
     44domain = anuga.Domain(points, vertices, boundary)
     45#domain = Domain(points, vertices, boundary)
    4646
    4747domain.set_name(output_file)               
     
    5656print domain.get_timestepping_method()
    5757
     58domain.set_flow_algorithm('DE0')
     59#domain.set_local_extrapolation_and_flux_updating(nlevels=8)
    5860#domain.use_edge_limiter = True
    5961#domain.use_edge_limiter = False
  • trunk/anuga_work/development/gareth/tests/dam_break/plotme.py

    r9038 r9292  
    44"""
    55from anuga.utilities import plot_utils as util
    6 from bal_and import plot_utils as util2
    76from matplotlib import pyplot as pyplot
    87
    9 p_st = util.get_output('dam_break_20120305_124724/dam_break.sww')
     8p_st = util.get_output('dam_break_20140811_130209/dam_break.sww')
    109p2_st=util.get_centroids(p_st)
    1110
    1211
    13 p_dev = util2.get_output('dam_break_20131204_145613/dam_break.sww', 0.001)
    14 p2_dev=util2.get_centroids(p_dev, velocity_extrapolation=True)
     12p_dev = util.get_output('dam_break_20140811_130049/dam_break.sww', 0.001)
     13p2_dev=util.get_centroids(p_dev, velocity_extrapolation=True)
    1514
    1615pyplot.clf()
Note: See TracChangeset for help on using the changeset viewer.