Changeset 8318
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/shallow_water/forcing.py
r8301 r8318 496 496 497 497 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 """ 499 502 return True 500 503 -
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 -
trunk/anuga_work/shallow_water_balanced_steve/run_sw_merimbula.py
r8301 r8318 25 25 #------------------------ 26 26 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 32 from anuga import Domain 29 33 from anuga import Reflective_boundary 30 34 from anuga import Dirichlet_boundary
Note: See TracChangeset
for help on using the changeset viewer.