Model/domain/sap10_calculator/docs
Khalim Conn-Kowlessar 8e86de2257 S0380.182: community-heating CHP+boilers CO2/PE credit (§12b/13b) — closes CH2/CH4 CO2+PE
SAP 10.2 worksheet block 12b (CO2) / 13b (PE) for community heating
"CHP and boilers" (SAP code 302). Per unit of network heat fuel
H = (307)+(310) the effective generation factor is:

  chp×100/(362)×f_fuel − chp×(361)/(362)×f_disp + (1−chp)×100/(367)×f_fuel

  (363)/(463) CHP fuel      = chp_frac × 100/heat_eff × f_fuel
  (364)/(464) less credit   = −chp_frac × elec_eff/heat_eff × f_disp
  (368)/(468) boiler fuel   = (1−chp_frac) × 100/boiler_eff × f_fuel

f_fuel = Table 12 heat-network fuel factor (the CHP unit and the back-up
boilers burn the same community fuel — verified vs CH2 gas / CH4 oil /
CH6 coal worksheets (363)/(368)); f_disp = Table 12f (PDF p.196) credit
for the CHP-generated electricity. RdSAP 10 §C (p.58) defaults: heat eff
50% (362), electrical eff 25% (361), boiler eff 80% (367); CHP heat frac
0.35 per-cert via community_heating_chp_fraction.

New `_heat_network_code_302_effective_factor` + Table 12f flexible
constants (0.420 CO2 / 2.369 PE) + RdSAP §C efficiency constants, wired
into all four factor helpers (main + HW, CO2 + PE) ahead of the existing
single-fuel / 1-over-heat-source-eff path. The worksheet (368)/(468)
boiler emissions DISPLAY rounded/mis-aligned in the PDF, but the
(373)/(473)/(386)/(486) totals reconcile only with the boiler at the
full Table 12 factor — verified EXACT.

Two spec citations applied:
- Table 12f flexible-operation default for RdSAP community CHP is an
  Elmhurst engine choice (Table 12f notes make "standard" the default);
  mirrored per [[feedback-software-no-special-handling]] and documented
  in SAP_CALCULATOR.md §8.3.
- Table 12 heat-network oil/biodiesel CO2 (codes 53/56) corrected
  0.298 → 0.335 per Table 12 (p.189) "assumes 'gas oil'"; the code-302
  oil cascade (CH4) was the first to exercise it. PE 1.180 was already
  correct. No other variant uses these codes (no regression).

Closures (CO2 + PE only — the CHP credit does not touch cost/SAP):
  CH2 (CHP/Gas)  CO2 −1411.49→+0.0000, PE +1331.23→+0.0000  EXACT
  CH4 (CHP/Oil)  CO2 −4378.24→−0.0000, PE  +319.81→−0.0000  EXACT
  CH6 (CHP/Coal) CO2/PE re-pinned (+2411.54 / +5023.48) — its worksheet
                 lodges a manual DLF=1.0 the Summary doesn't carry, so
                 cascade DLF=1.45 over-scales H; same root as the CH6
                 SAP −7.49 / cost +£172 (separate DLF front).

CH2/CH4 are now CO2+PE-exact but still carry the heat-network cost/SAP
residual (+0.5277 SAP / −£12.16 cost, exposed by S0380.175 — cost-side,
untouched here). CH3 unchanged (code 304 community-HP COP front).

Corpus state: 37 variants EXACT on all four metrics (incl. CH1);
remaining residuals are CH2/CH4 cost+SAP, CH3 CO2+PE (HP COP), CH6
all-metric (DLF quirk). 2223 pass + 1 skip + 0 fail (tolerances 1e-4 all
metrics per S0380.181); pyright net-zero 43→43.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-02 18:23:17 +00:00
..
specs docs: handover for Table 3a no-keep-hot continuation + SAP 10 spec PDFs 2026-05-28 08:29:12 +00:00
BRIEF_APPENDIX_H_EN_15316_RESEARCH.md Slice S0380.74: Appendix H (H7) U3.3 monthly-integrated convention closes 1.81× over-count 2026-05-29 18:02:35 +00:00
HANDOVER_38_CERT_COHORT_EXPANSION.md docs: handover — Summary + API cohort expansion to 38 additional certs 2026-05-27 22:22:13 +00:00
HANDOVER_API_PATH_CLOSURE.md docs: handover after S0380.31..S0380.38 — cohort-2 Summary path COMPLETE, thread 4 next 2026-05-28 16:34:36 +00:00
HANDOVER_CERT_0380_HW_CASCADE.md docs: handover — cert 0380 HW cascade (slices 102a-e shipped, MIT residual deferred to next session) 2026-05-27 12:42:44 +00:00
HANDOVER_CERT_0380_MIT_CASCADE.md docs: handover refresh — cohort closed to spec-precision floor 2026-05-27 17:03:09 +00:00
HANDOVER_CERT_0380_SUMMARY_PATH.md docs: handover — start cert 0380 Summary → EPC → calculator path 2026-05-27 17:23:10 +00:00
HANDOVER_CERT_000565_COST_CASCADE.md docs: handover + next-agent prompt for S0380.64..69 2026-05-29 10:32:32 +00:00
HANDOVER_CERT_9501_AND_HEATPUMPS.md docs: update handover — cert 0380 API path Δ -18.37 → +2.92 SAP 2026-05-26 22:46:30 +00:00
HANDOVER_COHORT_2_PRECISION_FLOOR.md docs: handover for cohort-2 closure + precision-floor next steps 2026-05-28 10:33:17 +00:00
HANDOVER_GOLDEN_COVERAGE.md docs: extend handover with Elmhurst-only path + 000565 extended test case 2026-05-28 21:03:23 +00:00
HANDOVER_GOLDEN_RESIDUALS.md docs: handover after S0380.39..S0380.43 — cohort-2 API path 38/38 closed 2026-05-28 17:22:55 +00:00
HANDOVER_NEXT.md refactor: move docs/sap-spec/ contents into domain/sap10_calculator/ 2026-05-26 13:17:18 +00:00
HANDOVER_POST_4_CERT_EMPIRICAL.md Slice S0380.74: Appendix H (H7) U3.3 monthly-integrated convention closes 1.81× over-count 2026-05-29 18:02:35 +00:00
HANDOVER_POST_S0380_69.md docs: handover + next-agent prompt for S0380.64..69 2026-05-29 10:32:32 +00:00
HANDOVER_POST_S0380_73_APPENDIX_H_BLOCKED.md docs: handover + research brief + next-agent prompt for cert 000565 Appendix H 2026-05-29 16:18:31 +00:00
HANDOVER_POST_S0380_76.md docs: handover + next-agent prompt post S0380.74..76 2026-05-29 20:51:02 +00:00
HANDOVER_POST_S0380_80.md docs: handover + next-agent prompt post S0380.77..80 (cert 000565 §4 HW EXACT) 2026-05-29 22:18:41 +00:00
HANDOVER_POST_S0380_84.md docs: handover + next-agent prompt post S0380.81..84 (Table 32 default + Table 12a Grid 2 CO2 + RR fold-in) 2026-05-29 23:33:18 +00:00
HANDOVER_POST_S0380_90.md docs: handover + next-agent prompt post S0380.85..90 (BP main-wall closure + SH-channel discovery + strict-raise series) 2026-05-30 09:52:35 +00:00
HANDOVER_POST_S0380_95.md docs: handover + next-agent prompt post S0380.91..95 (party-wall + AP4/MEV + §5.14 floor + RIR insulation + Detailed-RR residual) 2026-05-30 14:26:49 +00:00
HANDOVER_POST_S0380_103.md docs: handover + next-agent prompt post S0380.96..103 (RIR Unknown + §9 floor + MEV PCDB arc + HP-on-E7 cost split) 2026-05-30 16:13:33 +00:00
HANDOVER_POST_S0380_109.md docs: handover + next-agent prompt post S0380.105..109 (MEV trifecta + window routing + Connected gable + §5.7/5.8 brick formula) 2026-05-30 18:16:16 +00:00
HANDOVER_POST_S0380_114.md docs: handover + next-agent prompt post S0380.110..114 (cert 000565 SAP exact at 1e-4) 2026-05-30 19:53:45 +00:00
HANDOVER_POST_S0380_124.md docs: handover + next-agent prompt post S0380.115..124 2026-05-30 22:15:22 +00:00
HANDOVER_POST_S0380_130.md docs: handover + next-agent prompt post S0380.125..130 2026-05-31 09:05:24 +00:00
HANDOVER_POST_S0380_137.md docs: handover + next-agent prompt post S0380.131..137 2026-05-31 17:12:10 +00:00
HANDOVER_POST_S0380_140.md docs: handover update — +2.5 SAP cluster is heterogeneous, not a shared cascade gap 2026-05-31 19:20:43 +00:00
HANDOVER_POST_S0380_143.md docs: handover post S0380.141..143 (pcdb 1 closure via §9.4.11 + §4 cylinder gates + RdSAP 10 Table 29 inaccessible-cylinder insulation defaults) 2026-05-31 21:06:11 +00:00
HANDOVER_POST_S0380_145.md docs: handover post S0380.141..145 2026-05-31 21:55:53 +00:00
HANDOVER_POST_S0380_147.md docs: handover post S0380.146..147 2026-06-01 08:26:04 +00:00
HANDOVER_POST_S0380_149.md docs: handover post S0380.146..149 2026-06-01 09:18:38 +00:00
HANDOVER_POST_S0380_152.md docs: handover post S0380.150..152 2026-06-01 13:03:55 +00:00
HANDOVER_POST_S0380_155.md docs: handover post S0380.153..155 2026-06-01 16:01:52 +00:00
HANDOVER_POST_S0380_159.md docs: handover post S0380.156..159 2026-06-01 22:30:59 +00:00
HANDOVER_POST_S0380_163.md docs: handover post S0380.160..163 2026-06-02 08:51:21 +00:00
HANDOVER_POST_S0380_164.md docs: handover post S0380.164 2026-06-02 09:27:54 +00:00
HANDOVER_POST_S0380_169.md docs: handover post S0380.164..169 2026-06-02 10:25:24 +00:00
HANDOVER_POST_S0380_173.md docs: handover post S0380.170..173 2026-06-02 12:13:34 +00:00
HANDOVER_POST_S0380_176.md docs: handover post S0380.174..176 2026-06-02 13:42:42 +00:00
HANDOVER_POST_S0380_179.md docs: handover post S0380.177..179 + CI/test-move infra 2026-06-02 17:21:50 +00:00
HANDOVER_PRECISION_FLOOR_CLOSED.md docs: handover after S0380.26-30 precision-floor closure 2026-05-28 12:55:45 +00:00
HANDOVER_PV_BETA_SPLIT.md docs: PV β-split phase COMPLETE handover (6/6 slices) 2026-05-28 19:28:34 +00:00
HANDOVER_TABLE_3A_NO_KEEP_HOT.md docs: handover for Table 3a no-keep-hot continuation + SAP 10 spec PDFs 2026-05-28 08:29:12 +00:00
NEXT_AGENT_PROMPT.md docs: refresh NEXT_AGENT_PROMPT for PV β-split slices 4-6 2026-05-28 18:47:08 +00:00
NEXT_AGENT_PROMPT_POST_S0380_69.md docs: handover + next-agent prompt for S0380.64..69 2026-05-29 10:32:32 +00:00
NEXT_AGENT_PROMPT_POST_S0380_73.md docs: handover + research brief + next-agent prompt for cert 000565 Appendix H 2026-05-29 16:18:31 +00:00
NEXT_AGENT_PROMPT_POST_S0380_76.md docs: handover + next-agent prompt post S0380.74..76 2026-05-29 20:51:02 +00:00
NEXT_AGENT_PROMPT_POST_S0380_80.md docs: handover + next-agent prompt post S0380.77..80 (cert 000565 §4 HW EXACT) 2026-05-29 22:18:41 +00:00
NEXT_AGENT_PROMPT_POST_S0380_84.md docs: handover + next-agent prompt post S0380.81..84 (Table 32 default + Table 12a Grid 2 CO2 + RR fold-in) 2026-05-29 23:33:18 +00:00
NEXT_AGENT_PROMPT_POST_S0380_90.md docs: handover + next-agent prompt post S0380.85..90 (BP main-wall closure + SH-channel discovery + strict-raise series) 2026-05-30 09:52:35 +00:00
NEXT_AGENT_PROMPT_POST_S0380_95.md docs: handover + next-agent prompt post S0380.91..95 (party-wall + AP4/MEV + §5.14 floor + RIR insulation + Detailed-RR residual) 2026-05-30 14:26:49 +00:00
NEXT_AGENT_PROMPT_POST_S0380_103.md docs: handover + next-agent prompt post S0380.96..103 (RIR Unknown + §9 floor + MEV PCDB arc + HP-on-E7 cost split) 2026-05-30 16:13:33 +00:00
NEXT_AGENT_PROMPT_POST_S0380_109.md docs: handover + next-agent prompt post S0380.105..109 (MEV trifecta + window routing + Connected gable + §5.7/5.8 brick formula) 2026-05-30 18:16:16 +00:00
NEXT_AGENT_PROMPT_POST_S0380_114.md docs: handover + next-agent prompt post S0380.110..114 (cert 000565 SAP exact at 1e-4) 2026-05-30 19:53:45 +00:00
NEXT_AGENT_PROMPT_POST_S0380_124.md docs: handover + next-agent prompt post S0380.115..124 2026-05-30 22:15:22 +00:00
NEXT_AGENT_PROMPT_POST_S0380_130.md docs: handover + next-agent prompt post S0380.125..130 2026-05-31 09:05:24 +00:00
NEXT_AGENT_PROMPT_POST_S0380_137.md docs: handover + next-agent prompt post S0380.131..137 2026-05-31 17:12:10 +00:00
SAP_CALCULATOR.md S0380.182: community-heating CHP+boilers CO2/PE credit (§12b/13b) — closes CH2/CH4 CO2+PE 2026-06-02 18:23:17 +00:00