Changeset 3508 for inundation/examples
- Timestamp:
- Aug 17, 2006, 6:30:41 PM (19 years ago)
- Location:
- inundation/examples
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified inundation/examples/runup_convergence.py ¶
r3506 r3508 31 31 slope = -0.02 # 1:50 Slope 32 32 highest_point = 3 # Highest elevation (m) 33 sea_level = - 2# Mean sea level34 wave_height = 3# Solitary wave height H33 sea_level = -1 # Mean sea level 34 amplitude = 2 # Solitary wave height H 35 35 simulation_name = 'runup_convergence' 36 36 … … 96 96 97 97 def waveform(t): 98 return wave_height/cosh(t-5)**298 return sea_level + amplitude/cosh(t-5)**2 99 99 100 100 Bw = Time_boundary(domain=domain, # Time dependent boundary … … 172 172 # Print 173 173 174 print 'wave height [m]: ', wave_height174 print 'wave height [m]: ', amplitude 175 175 runup_height = topography(runup_point, (north+south)/2.) 176 176 print 'run up height [m]: ', runup_height … … 184 184 185 185 # Store 186 filename = 'maxrunup'+str( wave_height)+'.csv'186 filename = 'maxrunup'+str(amplitude)+'.csv' 187 187 fid = open(filename,'w') 188 188 s = 'Depth at eastern boundary,Waveheight,Runup distance,Runup height\n' 189 189 fid.write(s) 190 190 191 s = '%.2f,%.2f,%.2f\n' %( wave_height, runup_distance, runup_height)191 s = '%.2f,%.2f,%.2f\n' %(amplitude, runup_distance, runup_height) 192 192 fid.write(s) 193 193
Note: See TracChangeset
for help on using the changeset viewer.