- Timestamp:
- Jun 14, 2012, 12:31:32 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/gareth/tests/runup_sinusoid/runup_sinusoid.py
r8359 r8446 65 65 Bt=anuga.Transmissive_boundary(domain) # Continue all values of boundary -- not used in this example 66 66 Bd=anuga.Dirichlet_boundary([-0.1*scale_me,0.,0.]) # Constant boundary values -- not used in this example 67 def waveform(t): 68 return (0.0*sin(t*2*pi)-0.1)*exp(-t)-0.1 69 Bt2=anuga.Transmissive_n_momentum_zero_t_momentum_set_stage_boundary(domain,waveform) 67 70 #Bw=anuga.Time_boundary(domain=domain, 68 71 # 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. … … 82 85 yy = domain.quantities['ymomentum'].centroid_values 83 86 dd = domain.quantities['stage'].centroid_values - domain.quantities['elevation'].centroid_values 84 dd = (dd)*(dd>1.0e-0 3)+1.0e-0687 dd = (dd)*(dd>1.0e-06)+1.0e-03 85 88 vv = ( (xx/dd)**2 + (yy/dd)**2 )**0.5 86 89 vv = vv*(dd>1.0e-03)
Note: See TracChangeset
for help on using the changeset viewer.