Ignore:
Timestamp:
Feb 14, 2007, 3:03:11 PM (17 years ago)
Author:
ole
Message:

Added set_minimum_allowed_height and updated user manual.
Played with Brad's dam break example.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/shallow_water_domain.py

    r4254 r4258  
    146146                                number_of_full_triangles=number_of_full_triangles)
    147147
    148         self.minimum_allowed_height = minimum_allowed_height
    149         self.H0 = minimum_allowed_height  # Minimal height for flux computation       
     148        #self.minimum_allowed_height = minimum_allowed_height
     149        #self.H0 = minimum_allowed_height
     150        self.set_minimum_allowed_height(minimum_allowed_height)
     151       
    150152        self.maximum_allowed_speed = maximum_allowed_speed
    151153        self.g = g
     
    214216        """
    215217        self.minimum_storable_height = minimum_storable_height
     218
     219
     220    def set_minimum_allowed_height(self, minimum_allowed_height):
     221        """
     222        Set the minimum depth that will be recognised in the numerical
     223        scheme
     224
     225        The minimum allowed depth is in meters.
     226
     227        The parameter H0 (Minimal height for flux computation)
     228        is also set by this function
     229        """
     230       
     231        self.minimum_allowed_height = minimum_allowed_height
     232        self.H0 = minimum_allowed_height   
    216233       
    217234
Note: See TracChangeset for help on using the changeset viewer.