Changeset 3257
- Timestamp:
- Jun 29, 2006, 1:21:32 PM (18 years ago)
- Location:
- documentation/user_manual/examples
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/user_manual/examples/runup.py
r3255 r3257 37 37 38 38 def topography(x,y): 39 return -x/ 2# linear bed slope39 return -x/3 # linear bed slope 40 40 #return x*(-(2.0-x)*.5) # curved bed slope 41 41 … … 54 54 Bd = Dirichlet_boundary([-0.5,0.,0.]) # Constant boundary values 55 55 Bw = Time_boundary(domain=domain, # Time dependent boundary 56 f=lambda t: [( 0.2*sin(t*2*pi)-0.3), 0.0, 0.0])56 f=lambda t: [(1.*sin(t*2*pi)-0.3), 0.0, 0.0]) 57 57 58 58 # Associate boundary tags with boundary objects -
documentation/user_manual/examples/runuptest.py
r3256 r3257 22 22 #------------------------------------------------------------------------------ 23 23 24 waveheight = 2000.024 waveheight = 1800.0 25 25 depth_east_edge = -4000. 26 timeend = 1000.0 26 27 west = 0. 27 28 east = 80000. … … 81 82 82 83 stagestep = [] 83 for t in domain.evolve(yieldstep = 10, finaltime = 1000.0):84 for t in domain.evolve(yieldstep = 10, finaltime = timeend): 84 85 domain.write_time() 85 86
Note: See TracChangeset
for help on using the changeset viewer.