- Timestamp:
- Jan 21, 2005, 2:41:01 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/analytical solutions/Analytical solution_wave_runup.py
r550 r774 115 115 return [stage, uh, vh] 116 116 117 def boundary_ level(t):117 def boundary_stage(t): 118 118 x = -200 119 119 return stage_setup(x,t) … … 137 137 138 138 #Set the water depth 139 def level(x,y):139 def stage(x,y): 140 140 z = x_slope(x,y) 141 141 n = x.shape[0] … … 149 149 return w 150 150 151 domain.set_quantity(' level', level)151 domain.set_quantity('stage', stage) 152 152 153 153 … … 155 155 #Set up boundary conditions 156 156 Br = Reflective_boundary(domain) 157 Bw = Time_boundary(domain, boundary_ level)157 Bw = Time_boundary(domain, boundary_stage) 158 158 domain.set_boundary({'left': Bw, 'external': Br}) 159 159 … … 165 165 for t in domain.evolve(yieldstep = 1., finaltime = 100): 166 166 domain.write_time() 167 print boundary_ level(domain.time)167 print boundary_stage(domain.time) 168 168 169 169 print 'That took %.2f seconds' %(time.time()-t0)
Note: See TracChangeset
for help on using the changeset viewer.