Changeset 6647
 Timestamp:
 Mar 27, 2009, 3:32:36 PM (15 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

anuga_core/source/anuga/shallow_water/shallow_water_domain.py
r6644 r6647 781 781 782 782 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 783 808 #=============== End of class Shallow Water Domain =============================== 784 809 … … 1559 1584 1560 1585 return wet_friction 1561 1562 1563 1564 1565 1566 1567 1586 1568 1587
Note: See TracChangeset
for help on using the changeset viewer.