Changeset 9292 for trunk/anuga_work
- Timestamp:
- Aug 12, 2014, 12:10:51 PM (11 years ago)
- Location:
- trunk/anuga_work/development/gareth/tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/gareth/tests/dam_break/dam_break.py
r9007 r9292 14 14 from numpy import zeros, float 15 15 from time import localtime, strftime, gmtime 16 from bal_and import *16 #from bal_and import * 17 17 #from anuga_tsunami import * 18 18 … … 42 42 points, vertices, boundary = anuga.rectangular_cross(int(L/dx), int(W/dy), L, W, (0.0, -W/2)) 43 43 44 #domain = anuga.Domain(points, vertices, boundary)45 domain = Domain(points, vertices, boundary)44 domain = anuga.Domain(points, vertices, boundary) 45 #domain = Domain(points, vertices, boundary) 46 46 47 47 domain.set_name(output_file) … … 56 56 print domain.get_timestepping_method() 57 57 58 domain.set_flow_algorithm('DE0') 59 #domain.set_local_extrapolation_and_flux_updating(nlevels=8) 58 60 #domain.use_edge_limiter = True 59 61 #domain.use_edge_limiter = False -
trunk/anuga_work/development/gareth/tests/dam_break/plotme.py
r9038 r9292 4 4 """ 5 5 from anuga.utilities import plot_utils as util 6 from bal_and import plot_utils as util27 6 from matplotlib import pyplot as pyplot 8 7 9 p_st = util.get_output('dam_break_201 20305_124724/dam_break.sww')8 p_st = util.get_output('dam_break_20140811_130209/dam_break.sww') 10 9 p2_st=util.get_centroids(p_st) 11 10 12 11 13 p_dev = util 2.get_output('dam_break_20131204_145613/dam_break.sww', 0.001)14 p2_dev=util 2.get_centroids(p_dev, velocity_extrapolation=True)12 p_dev = util.get_output('dam_break_20140811_130049/dam_break.sww', 0.001) 13 p2_dev=util.get_centroids(p_dev, velocity_extrapolation=True) 15 14 16 15 pyplot.clf() -
trunk/anuga_work/development/gareth/tests/runup_sinusoid/runup_sinusoid.py
r9260 r9292 20 20 domain.set_name('runup_sinusoid_v2') # Output to file runup.sww 21 21 #domain.set_store_centroids(True) 22 domain.set_flow_algorithm('DE 1')22 domain.set_flow_algorithm('DE0') 23 23 domain.set_quantities_to_be_stored({'stage': 2, 'xmomentum': 2, 24 24 'ymomentum': 2, 'elevation': 2}) … … 42 42 bumpiness=50. # Higher = shorter wavelength oscillations in topography 43 43 tstep=0.2 44 lasttime= 90.44 lasttime=30. 45 45 46 46 #domain.minimum_allowed_height=domain.minimum_allowed_height*scale_me # Seems needed to make the algorithms behave … … 110 110 print 'Their difference is:', vol-flux_integral 111 111 #print 'Volume less flux int', sum(dd_raw*domain.areas) - domain.boundary_flux_integral 112 112 print 'Update_next_flux range:' 113 print domain.update_extrapolation.min(), domain.update_extrapolation.max() 114 print 'Flux_update_frequency range:' 115 print domain.flux_update_frequency.min(), domain.flux_update_frequency.max() 113 116 114 117 vel_final_inds=(vv>1.0e-01).nonzero()
Note: See TracChangeset
for help on using the changeset viewer.