Changeset 8318


Ignore:
Timestamp:
Jan 22, 2012, 12:35:13 PM (12 years ago)
Author:
steve
Message:

A few small changes to anuga for the week

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/shallow_water/forcing.py

    r8301 r8318  
    496496
    497497    def __parallel_safe(self):
    498 
     498        """
     499        These forcing terms only work on individual processors, the polygon
     500        had better not stride over multiple sub meshes
     501        """
    499502        return True
    500503
  • trunk/anuga_work/development/gareth/balanced_basic/runup.py

    r8307 r8318  
    4343def stagefun(x,y):
    4444    #stg=-0.2*(x<0.5) -0.1*(x>=0.5)
    45     stg=-0.2 # Stage
     45    stg=-0.19 # Stage
    4646    #topo=topography(x,y) #Bed
    4747    return stg #*(stg>topo) + topo*(stg<=topo)
     
    5959Br=anuga.Reflective_boundary(domain)            # Solid reflective wall
    6060Bt=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 example
     61Bd=anuga.Dirichlet_boundary([-0.19,0.,0.])       # Constant boundary values -- not used in this example
    6262Bw=anuga.Time_boundary(domain=domain,
    6363        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.
     
    7777#numpy.set_printoptions(threshold=numpy.nan, linewidth=numpy.nan)
    7878
    79 for t in domain.evolve(yieldstep=0.2,finaltime=30.0):
     79for t in domain.evolve(yieldstep=0.2,finaltime=10.0):
    8080    print domain.timestepping_statistics()
    8181
  • trunk/anuga_work/shallow_water_balanced_steve/run_sw_merimbula.py

    r8301 r8318  
    2525#------------------------
    2626       
    27 from swb_domain import Domain
    28 #from anuga import Domain
     27#from swb_domain import Domain
     28
     29# Gareth's well balance code
     30#from balanced_basic import Domain
     31
     32from anuga import Domain
    2933from anuga import Reflective_boundary
    3034from anuga import Dirichlet_boundary
Note: See TracChangeset for help on using the changeset viewer.