Changeset 9357


Ignore:
Timestamp:
Oct 29, 2014, 9:49:45 AM (11 years ago)
Author:
davies
Message:

Adding towradgi results.tex + a validation test bugfix

Location:
trunk/anuga_core
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/structures/inlet.py

    r9009 r9357  
    254254        """
    255255
     256        assert volume >= 0.0
     257
    256258        areas = self.get_areas()
    257259        stages = self.get_stages()
     
    266268        summed_volume = num.zeros_like(areas)       
    267269        summed_volume[1:] = num.cumsum(summed_areas[:-1]*num.diff(stages[stages_order]))
    268 
    269 
    270         assert volume >= 0.0
    271 
    272270
    273271        index = num.nonzero(summed_volume<=volume)[0][-1]
  • trunk/anuga_core/validation_tests/analytical_exact/deep_wave/run_wave.py

    r9352 r9357  
    121121#------------------------------------------------------------------------------
    122122
    123 for t in domain.evolve(yieldstep = 1e1, finaltime = 2e4):
     123for t in domain.evolve(yieldstep = 10, finaltime = 2e4):
    124124    domain.write_time()
    125125    if interactive_visualisation:
  • trunk/anuga_core/validation_tests/analytical_exact/subcritical_over_bump/produce_results.py

    r9230 r9357  
    44args = anuga.get_args()
    55
    6 produce_report('numerical_supercritical.py', args=args)
     6produce_report('numerical_subcritical.py', args=args)
    77
    88
  • trunk/anuga_core/validation_tests/case_studies/towradgi/Compare_results_with_fieldObs.py

    r9265 r9357  
    55"""
    66import scipy
     7import matplotlib
     8matplotlib.use('Agg')
    79from matplotlib import pyplot as pyplot
    810from anuga.utilities import plot_utils as util
     11import gdal
    912
    1013
     
    6164    print 'Making tifs'
    6265    util.Make_Geotif(swwdir+swwname,
    63                       ['depth','velocity','depthIntegratedVelocity','elevation'],'max',
     66                      ['depth','velocity','depthIntegratedVelocity','elevation', 'friction'],'max',
    6467                      CellSize=CellSize,EPSG_CODE=32756,output_dir=tif_outdir)
    6568    print 'Made tifs'
     
    7073# Plot depth raster with discrepency between model and data
    7174depthFile=tif_outdir+'/Towradgi_historic_flood_depth_max.tif'
    72 myDepth=scipy.misc.imread(depthFile)
     75#myDepth=scipy.misc.imread(depthFile)
     76raster = gdal.Open(depthFile)
     77myDepth = scipy.array(raster.ReadAsArray())
     78
     79
    7380X=scipy.arange(p.xllcorner, p.xllcorner+myDepth.shape[1]*CellSize, CellSize)
    7481Y=scipy.arange(p.yllcorner, p.yllcorner+myDepth.shape[0]*CellSize, CellSize)
Note: See TracChangeset for help on using the changeset viewer.