Commit f216c342 authored by David Dorchies's avatar David Dorchies Committed by Grand Francois
Browse files

feat(MacroRugo): implementation of Ferguson equation

Refs #346
parent a59223a0
No related merge requests found
Showing with 5 additions and 2 deletions
+5 -2
......@@ -287,8 +287,11 @@ export class MacroRugo extends FishPass {
const reynolds = this.U0 * this.prms.Y.v / MacroRugo.nu;
return 0.3164 / 4. * Math.pow(reynolds, -0.25);
} else {
// Equation (3) (Cassan et al., 2016)
return 2 / Math.pow(5.1 * Math.log10(Y / this.prms.Ks.v) + 6, 2);
// Ferguson equation proposed in Cassan et al. (2017)
const a1 = 6.5;
const a2 = 2.5;
const ks = this.prms.Ks.v;
return 2 / Math.pow(a1 * a2 * ((Y + ks) / ks) / Math.sqrt(a1 * a1 + a2 * a2 * Math.pow((Y + ks) / ks, 5 / 3)), 2)
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment