Changeset 8318 for trunk/anuga_work/development/gareth/balanced_basic
- Timestamp:
- Jan 22, 2012, 12:35:13 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/gareth/balanced_basic/runup.py
r8307 r8318 43 43 def stagefun(x,y): 44 44 #stg=-0.2*(x<0.5) -0.1*(x>=0.5) 45 stg=-0. 2# Stage45 stg=-0.19 # Stage 46 46 #topo=topography(x,y) #Bed 47 47 return stg #*(stg>topo) + topo*(stg<=topo) … … 59 59 Br=anuga.Reflective_boundary(domain) # Solid reflective wall 60 60 Bt=anuga.Transmissive_boundary(domain) # Continue all values of boundary -- not used in this example 61 Bd=anuga.Dirichlet_boundary([-0. 2,0.,0.]) # Constant boundary values -- not used in this example61 Bd=anuga.Dirichlet_boundary([-0.19,0.,0.]) # Constant boundary values -- not used in this example 62 62 Bw=anuga.Time_boundary(domain=domain, 63 63 f=lambda t: [(0.0*sin(t*2*pi)-0.1)*exp(-t)-0.1,0.0,0.0]) # Time varying boundary -- get rid of the 0.0 to do a runup. … … 77 77 #numpy.set_printoptions(threshold=numpy.nan, linewidth=numpy.nan) 78 78 79 for t in domain.evolve(yieldstep=0.2,finaltime= 30.0):79 for t in domain.evolve(yieldstep=0.2,finaltime=10.0): 80 80 print domain.timestepping_statistics() 81 81
Note: See TracChangeset
for help on using the changeset viewer.