Commit 1c07939c authored by Mathias Chouet's avatar Mathias Chouet 🍝
Browse files

MacrorugoCompound: add total flow (technical guide) Q_GuideTech to extraResults

parent debc4bee
...@@ -52,6 +52,7 @@ export class MacrorugoCompound extends MacroRugo implements Observer { ...@@ -52,6 +52,7 @@ export class MacrorugoCompound extends MacroRugo implements Observer {
public Equation(sVarCalc: string): Result { public Equation(sVarCalc: string): Result {
let QT: number = 0; let QT: number = 0;
let QGTT: number = 0;
let B: number = 0; let B: number = 0;
for (const child of this.children) { for (const child of this.children) {
child.Calc(sVarCalc); child.Calc(sVarCalc);
...@@ -61,8 +62,12 @@ export class MacrorugoCompound extends MacroRugo implements Observer { ...@@ -61,8 +62,12 @@ export class MacrorugoCompound extends MacroRugo implements Observer {
// la cote de fond aval n'a pas de sens dans la MR-Complexe car on // la cote de fond aval n'a pas de sens dans la MR-Complexe car on
// ne précise pas la longueur // ne précise pas la longueur
delete child.result.values.ZF2; delete child.result.values.ZF2;
// débit total selon le guide technique
QGTT += child.result.values.Q_GuideTech;
} }
return new Result(QT); const res = new Result(QT);
res.resultElement.values.Q_GuideTech = QGTT;
return res;
} }
public addChild(child: MacroRugo, after?: number) { public addChild(child: MacroRugo, after?: number) {
......
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