Commit 7f14b29c authored by Dorchies David's avatar Dorchies David
Browse files

#28 Ajout du calcul du type de jet

Showing with 31 additions and 1 deletion
+31 -1
......@@ -33,6 +33,18 @@ export enum StructureFlowRegime {
NULL,
}
/**
* Type de jet : Sans objet (orifice), plongeant, de surface
*/
export enum StructureJetType {
/** Sans objet (orifice) */
SO,
/** Plongeant */
PLONGEANT,
/** De surface */
SURFACE,
}
/**
* classe de calcul sur la conduite distributrice
*/
......@@ -212,4 +224,22 @@ export abstract class Structure extends Nub {
return StructureFlowRegime.SUBMERGED;
}
}
/**
* Give the Jet Type for weir flow
* Cf. Baudoin J.M., Burgun V., Chanseau M., Larinier M., Ovidio M., SremskiW., Steinbach P. et Voegtle B., 2014.
* Evaluer le franchissement des obstacles par les poissons. Principes et méthodes. Onema. 200 pages
*/
protected getJetType(): StructureJetType {
if (this.getFlowMode() === StructureFlowMode.WEIR) {
if (Math.abs(this.prms.h1.v - this.prms.h2.v) < 0.5 * this.prms.h1.v) {
return StructureJetType.SURFACE;
} else {
return StructureJetType.PLONGEANT;
}
} else {
return StructureJetType.SO;
}
}
}
import { Nub } from "../nub";
import { ParamsEquation } from "../param/params-equation";
import { ParamDefinition } from "../param/param-definition";
import { ParamDomainValue } from "../param/param-domain";
import { ParamsEquation } from "../param/params-equation";
/**
* Common parameters of hydraulic structure equations
......
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