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/wave/run_wave.py

    r8396 r8446  
    8181Br = anuga.Reflective_boundary(domain)      # Solid reflective wall
    8282Bt = anuga.Transmissive_boundary(domain)    # Continue all values on boundary
    83 Bz = swb2_boundary_conditions.zero_mass_flux_zero_momentum_boundary(domain) # Strong reflections
    84 Bz1 = swb2_boundary_conditions.zero_mass_flux_zero_t_transmissive_n_momentum_boundary(domain) # Strong reflections
    85 Bz2 = swb2_boundary_conditions.zero_mass_flux_zero_n_transmissive_t_momentum_boundary(domain) # Strong reflections
     83#Bz = swb2_boundary_conditions.zero_mass_flux_zero_momentum_boundary(domain) # Strong reflections
     84#Bz1 = swb2_boundary_conditions.zero_mass_flux_zero_t_transmissive_n_momentum_boundary(domain) # Strong reflections
     85#Bz2 = swb2_boundary_conditions.zero_mass_flux_zero_n_transmissive_t_momentum_boundary(domain) # Strong reflections
    8686Bs = anuga.Transmissive_stage_zero_momentum_boundary(domain) # Strong reflections
    8787Bd = anuga.Dirichlet_boundary([1,0.,0.]) # Constant boundary values
     
    100100    return -amplitude*sin((1./wave_length)*t*2*pi)
    101101
     102def waveform2(t):
     103    return 0.
     104
    102105Bw2 = anuga.shallow_water.boundaries.Transmissive_n_momentum_zero_t_momentum_set_stage_boundary(domain, waveform)
     106Bf_in = swb2_boundary_conditions.Characteristic_boundary(domain, waveform)
    103107#Bw3 = swb2_boundary_conditions.Transmissive_momentum_nudge_stage_boundary(domain, waveform)
     108Bf=swb2_boundary_conditions.Characteristic_boundary(domain,waveform2)
    104109                   
    105110
    106111
    107112# Associate boundary tags with boundary objects
    108 domain.set_boundary({'left': Bw2, 'right': Bt, 'top': Br, 'bottom': Br})
     113domain.set_boundary({'left': Bw2, 'right': Bf, 'top': Br, 'bottom': Br})
    109114
    110115
Note: See TracChangeset for help on using the changeset viewer.