Changeset 4258


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

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

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/documentation/user_manual/anuga_user_manual.tex

    r4209 r4258  
    17261726    \code{config.py}.
    17271727\end{methoddesc}
     1728
     1729
     1730\begin{methoddesc} {set\_minimum_allowed_height}{}
     1731    Module: \module{shallow\_water.shallow\_water\_domain}
     1732
     1733    Set the minimum depth (in meters) that will be recognised in
     1734    the numerical scheme (including limiters and flux computations)
     1735   
     1736    Default value is $10^{-3}$ m, but by setting this to a greater value,
     1737    e.g.\ for large scale simulations, the computation time can be
     1738    significantly reduced.
     1739\end{methoddesc}
     1740
    17281741
    17291742\begin{methoddesc} {set\_minimum_storable_height}{}
  • 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
  • anuga_work/development/dam_test_from_brad_2007/dam_sample.py

    r4250 r4258  
    2828domain = Domain(points, vertices, boundary)   # Create domain
    2929domain.set_name('dam_sample')                 # Output name
    30 domain.set_store_vertices_uniquely(True)      # Look at the 'real' triangles
    31 domain.beta_h = 0
     30#domain.set_store_vertices_uniquely(True)      # Look at the 'real' triangles
     31domain.beta_h = 0.0
    3232domain.limit2007 = 1
     33domain.set_minimum_allowed_height(0.01)
    3334
    3435#------------------------------------------------------------------------------
     
    9293#------------------------------------------------------------------------------
    9394for t in domain.evolve(yieldstep = 0.2, finaltime = 20):
    94     domain.write_time(track_speeds=True)
     95    domain.write_time(track_speeds=False)
    9596
Note: See TracChangeset for help on using the changeset viewer.