Changeset 8166
- Timestamp:
- Mar 25, 2011, 9:13:31 AM (14 years ago)
- Location:
- trunk/anuga_core/source/anuga/operators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/operators/kinematic_viscosity_operator.py
r8164 r8166 58 58 59 59 self.dt = 0.0 #Need to set to domain.timestep 60 self.dt_apply = 1.060 self.dt_apply = 0.0 61 61 62 62 self.boundary_len = len(self.domain.boundary) -
trunk/anuga_core/source/anuga/operators/run_dam_break.py
r8164 r8166 59 59 domain.set_use_kinematic_viscosity(True) 60 60 61 61 domain.set_beta(1.7) 62 62 #------------------------------------------------------------------------------ 63 63 # Setup initial conditions 64 64 #------------------------------------------------------------------------------ 65 domain.set_quantity('elevation',0.0)66 domain.set_quantity('friction', 0.0)67 68 65 h0 = 10.0 69 66 h1 = 0.0 67 68 def elevation(x,y): 69 70 return where(x<=95000.0, 0.0, h0) 70 71 71 72 def height(x,y): … … 73 74 return where(x<=50000.0, h0, h1) 74 75 75 76 domain.set_quantity('stage', height) 76 domain.set_quantity('elevation',elevation) 77 domain.set_quantity('friction', 0.0) 78 domain.add_quantity('stage', height) 77 79 #----------------------------------------------------------------------------- 78 80 # Setup boundary conditions … … 85 87 86 88 # Associate boundary tags with boundary objects 87 domain.set_boundary({'left': Br, 'right': B r, 'top': Br, 'bottom': Br})89 domain.set_boundary({'left': Br, 'right': Bt, 'top': Br, 'bottom': Br}) 88 90 89 91
Note: See TracChangeset
for help on using the changeset viewer.