flopy icon indicating copy to clipboard operation
flopy copied to clipboard

feat(utils): move channel flow utilities from modflow6

Open wpbonelli opened this issue 3 years ago • 1 comments

Move open channel flow utility functions from MODFLOW 6 to new file flopy/utils/channel_utils.py. These were originally in modflow6's autotest/scripts/cross_section_functions.py.

Functions are included for

  • calculating wetted perimeter and area from channel geometry and water surface depth
  • computing discharge given channel geometry, flow depth, a roughness coefficient, and slope
  • iteratively approximating flow depth given channel geometry, discharge, a roughness coefficient, and slope

Discharge can be calculated for rectangular channels given width and height, as well as for more complex channel cross sections given a set of contiguous segments making up the channel bed.

This PR follows up on #1621 with a view to moving modeling-related utilities to flopy

wpbonelli avatar Dec 22 '22 21:12 wpbonelli

Codecov Report

Merging #1668 (1114c93) into develop (1114c93) will not change coverage. The diff coverage is n/a.

:exclamation: Current head 1114c93 differs from pull request most recent head 1afdd5c. Consider uploading reports for the commit 1afdd5c to get more accurate results

@@           Coverage Diff           @@
##           develop   #1668   +/-   ##
=======================================
  Coverage     71.4%   71.4%           
=======================================
  Files          253     253           
  Lines        55884   55884           
=======================================
  Hits         39946   39946           
  Misses       15938   15938           

codecov[bot] avatar Dec 22 '22 21:12 codecov[bot]