Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
cassiopee
jalhyd
Commits
1c07939c
Commit
1c07939c
authored
Nov 20, 2019
by
Mathias Chouet
🍝
Browse files
MacrorugoCompound: add total flow (technical guide) Q_GuideTech to extraResults
parent
debc4bee
Changes
1
Show whitespace changes
Inline
Side-by-side
src/macrorugo/macrorugo_compound.ts
View file @
1c07939c
...
...
@@ -52,6 +52,7 @@ export class MacrorugoCompound extends MacroRugo implements Observer {
public
Equation
(
sVarCalc
:
string
):
Result
{
let
QT
:
number
=
0
;
let
QGTT
:
number
=
0
;
let
B
:
number
=
0
;
for
(
const
child
of
this
.
children
)
{
child
.
Calc
(
sVarCalc
);
...
...
@@ -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
// ne précise pas la longueur
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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment