Changeset 8358
- Timestamp:
- Mar 13, 2012, 3:46:10 PM (13 years ago)
- 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 67 67 // Apply limiting of speeds according to the ANUGA manual 68 68 if (*h < epsilon) { 69 //*h = max(0.0,*h); // Could have been negative 69 70 *h = 0.0; // Could have been negative 70 71 u = 0.0; -
trunk/anuga_work/development/gareth/tests/runup_sinusoid/runup_sinusoid.py
r8353 r8358 29 29 # Define topography 30 30 #------------------ 31 31 scale_me=1.0 32 32 def 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 34 34 35 35 def 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) 37 37 #topo=topography(x,y) 38 38 return stge#*(stge>topo) + (topo)*(stge<=topo) … … 60 60 Br=anuga.Reflective_boundary(domain) # Solid reflective wall 61 61 Bt=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 example63 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.62 Bd=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. 65 65 66 66 #----------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.