Changeset 6648
 Timestamp:
 Mar 27, 2009, 3:38:19 PM (16 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

anuga_core/source/anuga/shallow_water/shallow_water_domain.py
r6647 r6648 781 781 782 782 783 784 783 def compute_volumetric_balance(self): 784 """Compute volumetric balance at current timestep. 785 785 786 787 788 789 790 791 792 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 793 794 794 """ 795 795 796 797 798 799 800 801 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 802 803 803 804 804 805 805 pass 806 806 807 807
Note: See TracChangeset
for help on using the changeset viewer.