- Timestamp:
- Jun 14, 2012, 12:31:32 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/gareth/tests/wave/run_wave.py
r8396 r8446 81 81 Br = anuga.Reflective_boundary(domain) # Solid reflective wall 82 82 Bt = anuga.Transmissive_boundary(domain) # Continue all values on boundary 83 Bz = swb2_boundary_conditions.zero_mass_flux_zero_momentum_boundary(domain) # Strong reflections84 Bz1 = swb2_boundary_conditions.zero_mass_flux_zero_t_transmissive_n_momentum_boundary(domain) # Strong reflections85 Bz2 = swb2_boundary_conditions.zero_mass_flux_zero_n_transmissive_t_momentum_boundary(domain) # Strong reflections83 #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 86 86 Bs = anuga.Transmissive_stage_zero_momentum_boundary(domain) # Strong reflections 87 87 Bd = anuga.Dirichlet_boundary([1,0.,0.]) # Constant boundary values … … 100 100 return -amplitude*sin((1./wave_length)*t*2*pi) 101 101 102 def waveform2(t): 103 return 0. 104 102 105 Bw2 = anuga.shallow_water.boundaries.Transmissive_n_momentum_zero_t_momentum_set_stage_boundary(domain, waveform) 106 Bf_in = swb2_boundary_conditions.Characteristic_boundary(domain, waveform) 103 107 #Bw3 = swb2_boundary_conditions.Transmissive_momentum_nudge_stage_boundary(domain, waveform) 108 Bf=swb2_boundary_conditions.Characteristic_boundary(domain,waveform2) 104 109 105 110 106 111 107 112 # Associate boundary tags with boundary objects 108 domain.set_boundary({'left': Bw2, 'right': B t, 'top': Br, 'bottom': Br})113 domain.set_boundary({'left': Bw2, 'right': Bf, 'top': Br, 'bottom': Br}) 109 114 110 115
Note: See TracChangeset
for help on using the changeset viewer.