- Timestamp:
- Aug 31, 2012, 8:38:25 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/gareth/experimental/balanced_dev/runup.py
r8353 r8547 15 15 16 16 from math import sin, pi, exp 17 from balanced_dev import * 18 #from anuga_tsunami import * 17 19 #from anuga.shallow_water_balanced2.swb2_domain import Domain as Domain 18 20 #from anuga.shallow_water.shallow_water_domain import Domain as Domain … … 23 25 #from swb_domain import * 24 26 #path.append('/home/gareth/storage/anuga_clean/anuga_jan12/trunk/anuga_work/development/gareth/balanced_basic') 25 from balanced_basic.swb2_domain import *27 #from balanced_basic.swb2_domain import * 26 28 #--------- 27 29 #Setup computational domain … … 60 62 Bt=anuga.Transmissive_boundary(domain) # Continue all values of boundary -- not used in this example 61 63 Bd=anuga.Dirichlet_boundary([-0.2,0.,0.]) # Constant boundary values -- not used in this example 62 Bw=anuga.Time_boundary(domain=domain, 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. 64 Bw=anuga.Time_boundary(domain=domain, function=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. 64 65 65 66 #----------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.