Skip to content

Commit

Permalink
Merge pull request jzck#265 from RedFroggy/264RpintRatioVirtualisation
Browse files Browse the repository at this point in the history
fix(fix-264): Use ratio_virtualisation to calculate Rpint when generators are virtual
  • Loading branch information
jgavignet authored Nov 28, 2024
2 parents d800967 + 9373890 commit d99174e
Show file tree
Hide file tree
Showing 3 changed files with 1,028 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/13.2_generateur_combustion.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export function tv_generateur_combustion(di, de, du, type, GV, tbase, methodeSai
di.rpn = excel_to_js_exec(row.rpn, di.pn / (de.ratio_virtualisation || 1), E, F) / 100;
}
if (type === 'ch' && row.rpint) {
di.rpint = excel_to_js_exec(row.rpint, di.pn, E, F) / 100;
di.rpint = excel_to_js_exec(row.rpint, di.pn / (de.ratio_virtualisation || 1), E, F) / 100;
}
}

Expand Down
3 changes: 2 additions & 1 deletion test/corpus.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,6 @@
"2262E0020943Y",
"2364E0984413P",
"2213E1322779R",
"2464E1550878T"
"2464E1550878T",
"2492E0831922R"
]
Loading

0 comments on commit d99174e

Please sign in to comment.