Changeset 8865 for trunk/anuga_work/development/gareth/tests/runup/runup.py
- Timestamp:
- May 12, 2013, 8:11:11 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/gareth/tests/runup/runup.py
r8772 r8865 34 34 #------------------ 35 35 36 scale_me=100.0 37 36 38 def topography(x,y): 37 return -x/2 #+0.05*numpy.sin((x+y)*50.0) #+0.1*(numpy.random.rand(len(x)) -0.5) # Linear bed slope + small random perturbation39 return -x/2*scale_me #+0.05*numpy.sin((x+y)*50.0) #+0.1*(numpy.random.rand(len(x)) -0.5) # Linear bed slope + small random perturbation 38 40 39 41 def stagefun(x,y): 40 stg=-0.2*(x<0.5) -0.1*(x>=0.5)41 #stg=-0.2# Stage42 #stg=(-0.2*(x<0.5) -0.1*(x>=0.5))*scale_me 43 stg=-0.2*scale_me # Stage 42 44 #topo=topography(x,y) #Bed 43 45 return stg #*(stg>topo) + topo*(stg<=topo) … … 55 57 Br=anuga.Reflective_boundary(domain) # Solid reflective wall 56 58 Bt=anuga.Transmissive_boundary(domain) # Continue all values of boundary -- not used in this example 57 Bd=anuga.Dirichlet_boundary([-0.2 ,0.,0.]) # Constant boundary values -- not used in this example59 Bd=anuga.Dirichlet_boundary([-0.2*scale_me,0.,0.]) # Constant boundary values -- not used in this example 58 60 #Bw=anuga.Time_boundary(domain=domain, 59 61 # 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.
Note: See TracChangeset
for help on using the changeset viewer.