Changeset 9652


Ignore:
Timestamp:
Feb 10, 2015, 5:44:21 PM (9 years ago)
Author:
davies
Message:

Verbose comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/anuga/structures/structure_operator.py

    r9634 r9652  
    230230        #    old_inflow_depth*inflow_area -
    231231        #    timestep*Q*(new_inflow_depth/old_inflow_depth)
    232         # Note the last term in () is a wet-dry improvement trick
     232        # The last term in () is a wet-dry improvement trick
     233        # Note inflow_area is the area of all triangles in the inflow
     234        # region -- so this is a volumetric balance equation
    233235        #
    234236        factor = 1.0/(1.0 + dt_Q_on_d/self.inflow.get_area())
     
    243245        else:
    244246            # For the momentum balance, note that Q also advects the momentum,
    245             # which has an average value of new_inflow_mom (or old_inflow_mom). For
    246             # consistency we keep using the (new_inflow_depth/old_inflow_depth)
    247             # factor for discharge:
     247            # The volumetric momentum flux should be Q*momentum, where
     248            # momentum has an average value of new_inflow_mom (or
     249            # old_inflow_mom). For consistency we keep using the
     250            # (new_inflow_depth/old_inflow_depth) factor for discharge:
    248251            #
    249252            #     new_inflow_xmom*inflow_area =
    250253            #     old_inflow_xmom*inflow_area -
    251             #     timestep*Q*(new_inflow_depth/old_inflow_depth)*new_inflow_xmom
     254            #     [timestep*Q*(new_inflow_depth/old_inflow_depth)]*new_inflow_xmom
    252255            # and:
    253256            #     new_inflow_ymom*inflow_area =
    254257            #     old_inflow_ymom*inflow_area -
    255             #     timestep*Q*(new_inflow_depth/old_inflow_depth)*new_inflow_ymom
     258            #     [timestep*Q*(new_inflow_depth/old_inflow_depth)]*new_inflow_ymom
    256259            #
    257260            # The choice of new_inflow_mom in the final term at the end might be
Note: See TracChangeset for help on using the changeset viewer.