Ignore:
Timestamp:
Jun 14, 2012, 12:31:32 AM (13 years ago)
Author:
davies
Message:

bal_dev: Updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_work/development/gareth/tests/runup_sinusoid/runup_sinusoid.py

    r8359 r8446  
    6565Bt=anuga.Transmissive_boundary(domain)          # Continue all values of boundary -- not used in this example
    6666Bd=anuga.Dirichlet_boundary([-0.1*scale_me,0.,0.])       # Constant boundary values -- not used in this example
     67def waveform(t):
     68    return (0.0*sin(t*2*pi)-0.1)*exp(-t)-0.1
     69Bt2=anuga.Transmissive_n_momentum_zero_t_momentum_set_stage_boundary(domain,waveform)
    6770#Bw=anuga.Time_boundary(domain=domain,
    6871#       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.
     
    8285    yy = domain.quantities['ymomentum'].centroid_values
    8386    dd = domain.quantities['stage'].centroid_values - domain.quantities['elevation'].centroid_values
    84     dd = (dd)*(dd>1.0e-03)+1.0e-06
     87    dd = (dd)*(dd>1.0e-06)+1.0e-03
    8588    vv = ( (xx/dd)**2 + (yy/dd)**2 )**0.5
    8689    vv = vv*(dd>1.0e-03)
Note: See TracChangeset for help on using the changeset viewer.