Ignore:
Timestamp:
May 12, 2013, 8:11:11 PM (12 years ago)
Author:
davies
Message:

Updates to balanced_dev

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_work/development/gareth/tests/runup/runup.py

    r8772 r8865  
    3434#------------------
    3535
     36scale_me=100.0
     37
    3638def 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 perturbation
     39        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
    3840
    3941def stagefun(x,y):
    40     stg=-0.2*(x<0.5) -0.1*(x>=0.5)
    41     #stg=-0.2 # Stage
     42    #stg=(-0.2*(x<0.5) -0.1*(x>=0.5))*scale_me
     43    stg=-0.2*scale_me # Stage
    4244    #topo=topography(x,y) #Bed
    4345    return stg #*(stg>topo) + topo*(stg<=topo)
     
    5557Br=anuga.Reflective_boundary(domain)            # Solid reflective wall
    5658Bt=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 example
     59Bd=anuga.Dirichlet_boundary([-0.2*scale_me,0.,0.])       # Constant boundary values -- not used in this example
    5860#Bw=anuga.Time_boundary(domain=domain,
    5961#       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.