Changeset 3700 for anuga_core/source/anuga/examples/runup_convergence.py
- Timestamp:
- Oct 5, 2006, 3:42:07 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/examples/runup_convergence.py
r3693 r3700 138 138 w0 = domain.get_maximum_inundation_elevation() 139 139 x0, y0 = domain.get_maximum_inundation_location() 140 print 'Coastline elevation = %.2f at (%.2f, %.2f)' %(w0, x0, y0) 140 print 141 print 'Coastline elevation = %.2f at (x,y)=(%.2f, %.2f)' %(w0, x0, y0) 141 142 142 143 # Sanity check 143 144 w_i = domain.get_quantity('stage').get_values(interpolation_points=[[x0,y0]]) 144 print 'Interpolated elevation at ( %.2f, %.2f) is %.2f' %(x0, y0, w_i)145 print 'Interpolated elevation at (x,y)=(%.2f, %.2f) is %.2f' %(x0, y0, w_i) 145 146 146 147 … … 155 156 w = domain.get_maximum_inundation_elevation() 156 157 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 158 160 159 161 if w > w_max: … … 163 165 164 166 167 print '**********************************************' 165 168 print 'Max coastline elevation = %.2f at (%.2f, %.2f)' %(w_max, x_max, y_max) 166 169 print 'Run up distance = %.2f' %sqrt( (x_max-x0)**2 + (y_max-y0)**2 ) 167 170 print '**********************************************' 168 171 169 172 … … 172 175 #--------------------------------------------------------------- 173 176 174 # Generate time series of "gauge" situated at right hand boundary177 # Generate time series of one "gauge" situated at right hand boundary 175 178 from anuga.abstract_2d_finite_volumes.util import sww2timeseries 176 179 production_dirs = {'.': 'test'}
Note: See TracChangeset
for help on using the changeset viewer.