Changeset 8166


Ignore:
Timestamp:
Mar 25, 2011, 9:13:31 AM (14 years ago)
Author:
steve
Message:

committing some small changes to kinematic viscosity

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  
    5858
    5959        self.dt = 0.0 #Need to set to domain.timestep
    60         self.dt_apply = 1.0
     60        self.dt_apply = 0.0
    6161
    6262        self.boundary_len = len(self.domain.boundary)
  • trunk/anuga_core/source/anuga/operators/run_dam_break.py

    r8164 r8166  
    5959domain.set_use_kinematic_viscosity(True)
    6060
    61 
     61domain.set_beta(1.7)
    6262#------------------------------------------------------------------------------
    6363# Setup initial conditions
    6464#------------------------------------------------------------------------------
    65 domain.set_quantity('elevation',0.0)
    66 domain.set_quantity('friction', 0.0)
    67 
    6865h0 = 10.0
    6966h1 = 0.0
     67
     68def elevation(x,y):
     69
     70    return where(x<=95000.0, 0.0, h0)
    7071
    7172def height(x,y):
     
    7374    return where(x<=50000.0, h0, h1)
    7475
    75 
    76 domain.set_quantity('stage', height)
     76domain.set_quantity('elevation',elevation)
     77domain.set_quantity('friction', 0.0)
     78domain.add_quantity('stage', height)
    7779#-----------------------------------------------------------------------------
    7880# Setup boundary conditions
     
    8587
    8688# Associate boundary tags with boundary objects
    87 domain.set_boundary({'left': Br, 'right': Br, 'top': Br, 'bottom': Br})
     89domain.set_boundary({'left': Br, 'right': Bt, 'top': Br, 'bottom': Br})
    8890
    8991
Note: See TracChangeset for help on using the changeset viewer.