feat(ecs): consommation auxiliaires de distribution ECS - cas immeuble - #179
Open
elliot-redfroggy wants to merge 1 commit into
Conversation
…immeuble Implement ECS distribution auxiliary consumption calculation for immeuble DPEs. Three cases based on enum_bouclage_reseau_ecs_id: - CAS 1 (non boucle): conso_auxiliaire = 0 - CAS 2 (boucle): 9-step calculation per month per installation - CAS 3 (tracage): 0.14 x BECS_annuel x surface_ratio [Wh] Modified files: - src/11_besoin_ecs.js: add monthly BECS breakdown (besoin_ecs_par_mois) - src/engine.js: pass monthly BECS to calc_ecs - src/11_ecs.js: add calc_auxiliaire_distribution_ecs_immeuble function and store conso_auxiliaire_distribution_ecs in donnee_intermediaire - src/conso.js: read conso_auxiliaire_distribution_ecs from ECS installations (replaces hardcoded 0) Verified results: - 2592E0278308W: 2 boucle installations -> total ~400.53 kWh - 2231E1326114Q: 1 tracage installation -> ~2504.61 kWh Closes Open3CL#157
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problème
La consommation des auxiliaires de distribution ECS n'était pas implémentée pour le cas de l'immeuble. La valeur était hardcodée à 0 dans
conso.js.Solution
Implémentation du calcul installation par installation selon
enum_bouclage_reseau_ecs_id:CAS 1 — réseau non bouclé (id=1)
conso_auxiliaire_distribution_ecs = 0CAS 2 — réseau bouclé (id=2)
Calcul en 9 étapes par mois :
Qdwj_i = 0.24 × BECS_Immeuble_j × (Sh_inst / Sh_immeuble)[kWh]qdwj_i = Qdwj_i / (5.815 × 5 × Njj)[m³/h]Lb = 1.2 × (1.1 × Sh_inst/Niv + 4 × Niv)[m]DeltaPb = 0.2 × Lb + 10[kPa]Phyd,j = DeltaPb × 1000 × qdwj / 3600[W]Effcirb,j = 0.035 × Phyd^0.45Pcirb,j = max(Phyd / Effcirb, 20)[W]Qcirb,j = (5 × Pcirb + 19 × 20) × Njj[Wh]conso_annuelle = Σ Qcirb,j / 1000[kWh]CAS 3 — traçage (id=3)
conso = 0.14 × BECS_annuel × ratio_surface / 1000[kWh]Fichiers modifiés
src/11_besoin_ecs.js: ajoutbesoin_ecs_par_mois(valeurs mensuelles)src/engine.js: transmission des BECS mensuels àcalc_ecssrc/11_ecs.js: nouvelle fonctioncalc_auxiliaire_distribution_ecs_immeublesrc/conso.js: lecture deconso_auxiliaire_distribution_ecsdepuis les installationsRésultats vérifiés
Closes #157