Changeset 6647


Ignore:
Timestamp:
Mar 27, 2009, 3:32:36 PM (14 years ago)
Author:
ted
Message:

Started function for volumetric test

File:
1 edited

Legend:

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

    r6644 r6647  
    781781       
    782782
     783                def compute_volumetric_balance(self):
     784                        """Compute volumetric balance at current timestep.
     785                       
     786                        Quantities computed are:
     787                                Total inflow across boundary
     788                                Total outflow across boundary
     789                                Total inflow through forcing terms
     790                                Total outflow through forcing terms
     791                                Current total volume in domain
     792                                                               
     793                       
     794                        """
     795               
     796                        # Run through boundary array and compute for each segment
     797                        # the normal momentum ((uh, vh) dot normal) times segment length.
     798                        # Based on sign accumulate this into total_boundary_inflow and total_boundary_outflow.
     799                        # The go through explicit forcing update and record the rate of change for stage and
     800                        # record into total_forcing_inflow and total_forcing_outflow. Finally compute integral
     801                        # of depth to obtain total volume of domain.
     802                       
     803                       
     804                       
     805                        pass
     806               
     807               
    783808#=============== End of class Shallow Water Domain ===============================
    784809
     
    15591584   
    15601585    return wet_friction
    1561 
    1562 
    1563 
    1564 
    1565 
    1566 
    15671586
    15681587
Note: See TracChangeset for help on using the changeset viewer.