Changeset 8358


Ignore:
Timestamp:
Mar 13, 2012, 3:46:10 PM (13 years ago)
Author:
davies
Message:

Minor changes

Location:
trunk/anuga_work/development/gareth
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_work/development/gareth/experimental/balanced_dev/swb2_domain_ext.c

    r8355 r8358  
    6767    // Apply limiting of speeds according to the ANUGA manual
    6868    if (*h < epsilon) {
     69      //*h = max(0.0,*h);  // Could have been negative
    6970      *h = 0.0;  // Could have been negative
    7071      u = 0.0;
  • trunk/anuga_work/development/gareth/tests/runup_sinusoid/runup_sinusoid.py

    r8353 r8358  
    2929# Define topography
    3030#------------------
    31 
     31scale_me=1.0
    3232def topography(x,y):
    33         return -x/2.0 +0.05*numpy.sin((x+y)*50.0) 
     33        return (-x/2.0 +0.05*numpy.sin((x+y)*50.0))*scale_me
    3434
    3535def stagefun(x,y):
    36     stge=-0.2 #-0.1*(x>0.5) -0.2*(x<=0.5)
     36    stge=-0.2*scale_me #-0.1*(x>0.5) -0.2*(x<=0.5)
    3737    #topo=topography(x,y)
    3838    return stge#*(stge>topo) + (topo)*(stge<=topo)
     
    6060Br=anuga.Reflective_boundary(domain)            # Solid reflective wall
    6161Bt=anuga.Transmissive_boundary(domain)          # Continue all values of boundary -- not used in this example
    62 Bd=anuga.Dirichlet_boundary([-0.1,0.,0.])       # Constant boundary values -- not used in this example
    63 Bw=anuga.Time_boundary(domain=domain,
    64         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.
     62Bd=anuga.Dirichlet_boundary([-0.1*scale_me,0.,0.])       # Constant boundary values -- not used in this example
     63#Bw=anuga.Time_boundary(domain=domain,
     64#       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.
    6565
    6666#----------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.