Ignore:
Timestamp:
Oct 5, 2006, 3:42:07 PM (18 years ago)
Author:
ole
Message:

Improved runup script for Rosh

Location:
anuga_core/source/anuga
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/util.py

    r3649 r3700  
    810810
    811811    import pylab as p1
    812     import mpl3d.mplot3d as p3
     812    if surface is True:
     813        import mpl3d.mplot3d as p3
    813814
    814815    if report == True:   
  • anuga_core/source/anuga/examples/runup_convergence.py

    r3693 r3700  
    138138w0 = domain.get_maximum_inundation_elevation()
    139139x0, y0 = domain.get_maximum_inundation_location()
    140 print 'Coastline elevation = %.2f at (%.2f, %.2f)' %(w0, x0, y0)
     140print
     141print 'Coastline elevation = %.2f at (x,y)=(%.2f, %.2f)' %(w0, x0, y0)
    141142
    142143# Sanity check
    143144w_i = domain.get_quantity('stage').get_values(interpolation_points=[[x0,y0]])
    144 print 'Interpolated elevation at (%.2f, %.2f) is %.2f' %(x0, y0, w_i)
     145print 'Interpolated elevation at (x,y)=(%.2f, %.2f) is %.2f' %(x0, y0, w_i)
    145146
    146147
     
    155156    w = domain.get_maximum_inundation_elevation()
    156157    x, y = domain.get_maximum_inundation_location()
    157     print '  Coastline elevation = %.2f at (x,y)=(%.2f, %.2f)' %(w, x, y)   
     158    print '  Coastline elevation = %.2f at (x,y)=(%.2f, %.2f)' %(w, x, y)
     159    print   
    158160
    159161    if w > w_max:
     
    163165
    164166
     167print '**********************************************'
    165168print 'Max coastline elevation = %.2f at (%.2f, %.2f)' %(w_max, x_max, y_max)
    166169print 'Run up distance = %.2f' %sqrt( (x_max-x0)**2 + (y_max-y0)**2 )
    167 
     170print '**********************************************'
    168171
    169172
     
    172175#---------------------------------------------------------------
    173176
    174 # Generate time series of "gauge" situated at right hand boundary
     177# Generate time series of one "gauge" situated at right hand boundary
    175178from anuga.abstract_2d_finite_volumes.util import sww2timeseries
    176179production_dirs = {'.': 'test'}
Note: See TracChangeset for help on using the changeset viewer.