Changeset 9652
- Timestamp:
- Feb 10, 2015, 5:44:21 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/anuga/structures/structure_operator.py
r9634 r9652 230 230 # old_inflow_depth*inflow_area - 231 231 # 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 233 235 # 234 236 factor = 1.0/(1.0 + dt_Q_on_d/self.inflow.get_area()) … … 243 245 else: 244 246 # 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: 248 251 # 249 252 # new_inflow_xmom*inflow_area = 250 253 # old_inflow_xmom*inflow_area - 251 # timestep*Q*(new_inflow_depth/old_inflow_depth)*new_inflow_xmom254 # [timestep*Q*(new_inflow_depth/old_inflow_depth)]*new_inflow_xmom 252 255 # and: 253 256 # new_inflow_ymom*inflow_area = 254 257 # old_inflow_ymom*inflow_area - 255 # timestep*Q*(new_inflow_depth/old_inflow_depth)*new_inflow_ymom258 # [timestep*Q*(new_inflow_depth/old_inflow_depth)]*new_inflow_ymom 256 259 # 257 260 # 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.