Commit b655be2b authored by Dorchies David's avatar Dorchies David
Browse files

feat(MacroRugo): parametrisation of f_h*

 Refs #295
parent 58ae2024
......@@ -39,6 +39,7 @@ export class MacroRugo extends FishPass {
private _cache: { [key: string]: number };
public paramFhStar: [number, number, number] = [1, 0.8, 1.5];
constructor(prms: MacrorugoParams, dbg: boolean = false) {
super(prms, dbg);
this._cache = {};
......@@ -318,7 +319,7 @@ export class MacroRugo extends FishPass {
*/
private get Cd(): number {
if (this._cache.Cd === undefined) {
this._cache.Cd = Math.min(6, this.Cx * (1 + 0.8 / Math.pow(this.prms.Y.v / this.prms.PBD.v, 1.5)));
this._cache.Cd = Math.min(6, this.Cx * (this.paramFhStar[0] + this.paramFhStar[1] / Math.pow(this.prms.Y.v / this.prms.PBD.v, this.paramFhStar[2])));
}
return this._cache.Cd;
}
......
Markdown is supported
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