@open3cl/engine 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/14_generateur_ecs.js +1 -0
- package/15_conso_aux.js +6 -2
- package/3.4_pont_thermique.js +0 -16
- package/9_chauffage.js +1 -0
- package/package.json +1 -1
package/14_generateur_ecs.js
CHANGED
|
@@ -204,6 +204,7 @@ export default function calc_gen_ecs(dpe, gen_ecs, ecs_di, ecs_de, GV, ca_id, zc
|
|
|
204
204
|
|
|
205
205
|
// Ratio de virtualisation à prendre en compte sur le rendement (17.2.1 Génération d’un DPE à l’appartement)
|
|
206
206
|
de.ratio_virtualisation = ecs_de.ratio_virtualisation || 1;
|
|
207
|
+
de.cle_repartition_ecs = ecs_de.cle_repartition_ecs || 1;
|
|
207
208
|
|
|
208
209
|
const besoin_ecs = ecs_di.besoin_ecs;
|
|
209
210
|
const besoin_ecs_dep = ecs_di.besoin_ecs_depensier;
|
package/15_conso_aux.js
CHANGED
|
@@ -43,6 +43,10 @@ export function conso_aux_gen(di, de, type, besoin, besoin_dep, Sh) {
|
|
|
43
43
|
|
|
44
44
|
const Paux_g_ch = g + (h * (pe / 1000)) / (de.ratio_virtualisation || 1);
|
|
45
45
|
|
|
46
|
+
// Pour les installations collectives, la conso des auxiliaires est calculée à partir du besoin de l'appartement
|
|
47
|
+
let besoinAppart = besoin * (de[`cle_repartition_${type}`] || 1);
|
|
48
|
+
let besoinAppartDep = besoin_dep * (de[`cle_repartition_${type}`] || 1);
|
|
49
|
+
|
|
46
50
|
let ratio = 1;
|
|
47
51
|
|
|
48
52
|
// Pour le chauffage, le besoin de chauffage est proratisé à la surface chauffée
|
|
@@ -52,9 +56,9 @@ export function conso_aux_gen(di, de, type, besoin, besoin_dep, Sh) {
|
|
|
52
56
|
}
|
|
53
57
|
|
|
54
58
|
di[`conso_auxiliaire_generation_${type}`] =
|
|
55
|
-
((de.ratio_virtualisation || 1) * (Paux_g_ch *
|
|
59
|
+
((de.ratio_virtualisation || 1) * (Paux_g_ch * besoinAppart * ratio)) / pe || 0;
|
|
56
60
|
di[`conso_auxiliaire_generation_${type}_depensier`] =
|
|
57
|
-
(Paux_g_ch *
|
|
61
|
+
(Paux_g_ch * besoinAppartDep * ratio) / di.pn || 0;
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
/**
|
package/3.4_pont_thermique.js
CHANGED
|
@@ -364,22 +364,6 @@ function tv_k(pt_di, di, de, du, pc_id, logement) {
|
|
|
364
364
|
'bool'
|
|
365
365
|
);
|
|
366
366
|
|
|
367
|
-
if (bug_for_bug_compat) {
|
|
368
|
-
// Certains logiciels n'utilisent le boolean presence_retour_isolation de la même manière
|
|
369
|
-
// 0 = oui pour certains, 1 = oui pour d'autres
|
|
370
|
-
const tvPontThermique = tv('pont_thermique', {
|
|
371
|
-
tv_pont_thermique_id: de.tv_pont_thermique_id
|
|
372
|
-
});
|
|
373
|
-
|
|
374
|
-
if (
|
|
375
|
-
tvPontThermique &&
|
|
376
|
-
parseInt(matcher.presence_retour_isolation) !==
|
|
377
|
-
parseInt(tvPontThermique.presence_retour_isolation)
|
|
378
|
-
) {
|
|
379
|
-
matcher.presence_retour_isolation = parseInt(tvPontThermique.presence_retour_isolation);
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
|
|
383
367
|
matcher.largeur_dormant = requestInput(mde, mdu, 'largeur_dormant', 'float');
|
|
384
368
|
}
|
|
385
369
|
}
|
package/9_chauffage.js
CHANGED
|
@@ -54,6 +54,7 @@ export default function calc_chauffage(
|
|
|
54
54
|
const genChDi = gen.donnee_intermediaire || {};
|
|
55
55
|
|
|
56
56
|
genChDe.ratio_virtualisation = de.ratio_virtualisation || 1;
|
|
57
|
+
genChDe.cle_repartition_ch = de.cle_repartition_ch || 1;
|
|
57
58
|
genChDe.surface_chauffee = de.surface_chauffee || Sh;
|
|
58
59
|
genChDe.nombre_niveau_installation_ch = de.nombre_niveau_installation_ch || 1;
|
|
59
60
|
genChDe.fch = Fch || 0.5;
|