Skip to content

Commit

Permalink
fix(feat-111): Use pveil in kW to get rendement_generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérôme GAVIGNET authored and jzck committed Oct 10, 2024
1 parent 703f20e commit e42c03b
Show file tree
Hide file tree
Showing 4 changed files with 3,067 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/13.2_generateur_combustion_ch.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,14 @@ export function calc_generateur_combustion_ch(di, de, du, em_ch, GV, ca_id, zc_i
);
const type_energie = requestInput(de, du, 'type_energie');
const k = K[type_energie];
const rg_pcs = Pmfou / (Pmcons + (0.45 * di.qp0) / 1000 + di.pveil);
const rg_pcs_dep = Pmfou_dep / (Pmcons_dep + (0.45 * di.qp0) / 1000 + di.pveil);

// Pveil and QP0 are in kW
const Pveil = di.pveil / 1000;
const QP0 = di.pveil / 1000;

const rg_pcs = Pmfou / (Pmcons + 0.45 * QP0 + Pveil);
const rg_pcs_dep = Pmfou_dep / (Pmcons_dep + 0.45 * QP0 + Pveil);

const rg_pci = rg_pcs * k;
const rg_pci_dep = rg_pcs_dep * k;
di.rendement_generation = rg_pci;
Expand Down
5 changes: 4 additions & 1 deletion test/corpus.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,8 @@
"2463E2639384I",
"2375E2453987C",
"2375E2236932V",
"2375E0491259O"
"2375E0491259O",
"2418E2787827Y",
"2469E2904071V",
"2415E2886950G"
]
Loading

0 comments on commit e42c03b

Please sign in to comment.