Skip to content

Instantly share code, notes, and snippets.

@amoodie
Created April 2, 2018 02:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amoodie/e5cf8d94aea6502210c519304fe6bf9c to your computer and use it in GitHub Desktop.
Save amoodie/e5cf8d94aea6502210c519304fe6bf9c to your computer and use it in GitHub Desktop.
Generalized Darcy-Weisbach normal flow depth as single-line Matlab function
% function for normal flow depth following from Ganti et a., 2014 supplementary material
HnfunDW = (@(Q, B, Cf, S0, g) ((Q./B).^(2/3).*(Cf./(g.*S0)).^(1/3))); % generalized Darcy Weisbach, from Ganti et al., 2014 supp info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment