Changeset 3642


Ignore:
Timestamp:
Sep 21, 2006, 11:30:59 AM (18 years ago)
Author:
ole
Message:

Renamed minimum_sww_depth to minimum_storable_height

Files:
7 edited

Legend:

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

    r3541 r3642  
    14001400\end{methoddesc}
    14011401
    1402 \begin{methoddesc} {set\_minimum_sww_depth}{time=0.0}
     1402\begin{methoddesc} {set\_minimum_storable_height}{time=0.0}
    14031403    Module: \module{pyvolution.domain}
    14041404
    14051405    Sets the minimum depth that will be recognised when writing
    1406         to an sww file. This is useful for removing thin water layers
    1407         that seems to be caused by friction creep.
     1406    to an sww file. This is useful for removing thin water layers
     1407    that seems to be caused by friction creep.
    14081408\end{methoddesc}
    14091409
     
    16481648
    16491649\begin{classdesc}{Reflective\_boundary}{Boundary}
    1650 Module: \module{pyvolution.shallow\_water}
     1650Module: \module{shallow\_water}
    16511651
    16521652Reflective boundary returns same conserved quantities as those present in
  • anuga_core/source/anuga/config.py

    r3632 r3642  
    106106
    107107#Specific to shallow water W.E.
    108 minimum_allowed_height = 1.0e-3 #Water depth below which it is considered to be 0
     108minimum_allowed_height = 1.0e-3 #Water depth below which it is considered to be 0 in the model
    109109maximum_allowed_speed = 100.0 #Maximal particle speed of water
    110110
    111 minimum_sww_depth = 0.0
     111minimum_storable_height = 0.001 #Water depth below which it is *stored* as 0
  • anuga_core/source/anuga/shallow_water/data_manager.py

    r3563 r3642  
    6767from anuga.coordinate_transforms.geo_reference import Geo_reference
    6868from anuga.geospatial_data.geospatial_data import Geospatial_data
    69 from anuga.config import minimum_sww_depth
     69from anuga.config import minimum_storable_height as default_minimum_storable_height
    7070
    7171def make_filename(s):
     
    252252        Data_format.__init__(self, domain, 'sww', mode)
    253253
    254         if hasattr(domain, 'minimum_sww_depth'):
    255             self.minimum_sww_depth =  domain.minimum_sww_depth
     254        if hasattr(domain, 'minimum_storable_height'):
     255            self.minimum_storable_height =  domain.minimum_storable_height
    256256        else:
    257             self.minimum_sww_depth = minimum_sww_depth
     257            self.minimum_storable_height = default_minimum_storable_height
    258258
    259259        # NetCDF file definition
     
    380380        from os import stat
    381381
    382         minimum_sww_depth = 0.001
    383         #minimum_sww_depth = 0.0  #FIXME pass in or read from domain
    384382        from Numeric import choose
    385383
     
    482480                    #print z[:]
    483481                    #print A-z[:]
    484                     A = choose( A-z[:] >= self.minimum_sww_depth,
    485                                 (z[:], A))
     482                    A = choose(A-z[:] >= self.minimum_storable_height,
     483                               (z[:], A))
    486484                    stage[i,:] = A.astype(self.precision)
    487485                elif name == 'xmomentum':
  • anuga_core/source/anuga/shallow_water/shallow_water_domain.py

    r3583 r3642  
    8585
    8686from anuga.utilities.numerical_tools import gradient, mean
    87 from anuga.config import minimum_sww_depth
     87from anuga.config import minimum_storable_height
    8888
    8989
     
    148148        self.format = 'sww'
    149149        self.set_store_vertices_uniquely(False)
    150         self.minimum_sww_depth = minimum_sww_depth
     150        self.minimum_storable_height = minimum_storable_height
    151151        self.quantities_to_be_stored = ['stage','xmomentum','ymomentum']
    152152
     
    165165
    166166
    167     def set_minimum_sww_depth(self, minimum_sww_depth):
     167    def set_minimum_storable_height(self, minimum_storable_height):
    168168        """
    169169        Set the minimum depth that will be recognised when writing
     
    173173        The minimum allowed sww depth is in meters.
    174174        """
    175         self.minimum_sww_depth = minimum_sww_depth
     175        self.minimum_storable_height = minimum_storable_height
    176176
    177177
  • anuga_core/source/anuga/shallow_water/test_data_manager.py

    r3563 r3642  
    459459
    460460
    461     def test_sww_minimum_sww_depth(self):
     461    def test_sww_minimum_storable_height(self):
    462462        """Test that sww information can be written correctly
    463463        multiple timesteps using a different reduction operator (min)
     
    472472        self.domain.smooth = True
    473473        self.domain.reduction = min
    474         self.domain.minimum_sww_depth = 100
     474        self.domain.minimum_storable_height = 100
    475475
    476476        sww = get_dataobject(self.domain)
     
    49864986#-------------------------------------------------------------
    49874987if __name__ == "__main__":
    4988     #suite = unittest.makeSuite(Test_Data_Manager,'test_sww_minimum_sww_depth')
     4988    #suite = unittest.makeSuite(Test_Data_Manager,'test_sww_minimum_storable_height')
    49894989    suite = unittest.makeSuite(Test_Data_Manager,'test')
    49904990    runner = unittest.TextTestRunner()
  • anuga_work/development/dam_2006/run_dam.py

    r3610 r3642  
    7171    domain.set_datadir(project.outputtimedir)
    7272    domain.set_quantities_to_be_stored(['stage', 'xmomentum', 'ymomentum'])
    73     domain.set_minimum_sww_depth(0.01)
     73    domain.set_minimum_storable_height(0.01)
    7474    domain.set_store_vertices_uniquely(True)  # for writting to sww
    7575
  • anuga_work/production/hobart_2006/run_hobart.py

    r3638 r3642  
    146146domain.set_datadir(project.outputtimedir)
    147147domain.set_quantities_to_be_stored(['stage', 'xmomentum', 'ymomentum'])
    148 domain.set_minimum_sww_depth(0.01)
     148domain.set_minimum_storable_height(0.01)
    149149domain.set_store_vertices_uniquely(True)  # for writting to sww
    150150
Note: See TracChangeset for help on using the changeset viewer.