Skip to content

Fix #35 recovery problems with D1 notes (item 25a) - #40

Open
kflemin wants to merge 1 commit into
l200-baseline-hvacfrom
recovery-notes-25a
Open

kflemin wants to merge 1 commit into
l200-baseline-hvacfrom
recovery-notes-25a

Conversation

@kflemin

@kflemin kflemin commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Background

#35 added ComStock exhaust air recovery to the L200 baseline. Reviewing it against the measures and the mapping doc turned up several problems. Some build the wrong model silently; others give misleading fallback reasons. #39 added non-blocking notes (D1), which make most of them fixable. This PR implements fix-plan item 25a, recommendations R1–R8, accepted 2026-12-05. The #37 pairing problems (25b) are a separate PR.

What this PR does

Model changes

  • Drops the ERV effectiveness step. modify_existing_heat_recovery with comstock_erv sets full-flow effectiveness but leaves the part-flow table inconsistent. In an EnergyPlus run of a school baseline, effectiveness reached 1.22 sensible and 1.45 latent, with no warning. An audited ERV now keeps ComStock's own climate-zone choice: an ERV in humid zones, an HRV elsewhere. This needs an upstream fix in buildingsync-measures-gem.
  • Adds a latent-0 step for audited HRVs (HRV_STEP), so humid-zone ComStock exchangers and 90.1 code exchangers have no latent recovery. A new spec runs the real measure on a 90.1 exchanger and on a ComStock exchanger.
  • Restaurants: ComStock is not applicable to restaurant building types. Before, an ERV failed the run and an HRV was silently dropped. Now the recovery is a WARN note and the plan stays topology. The building type now flows from boss.rb through the planner to the selector.

Selector changes

  • Economizer-only deliveries folded into a central delivery get a WARN :policy note. With approximations off they block, and the message says how to fix the file.
  • Recovery reports the real problem: unsupported Integration first, then link checks, then Integration inference, with a reason when it can't be inferred.
  • Stand-alone or own-path HRV/ERV records own their delivery. An ERV on a DOAS or ventilation-only unit gets its own reason instead of a false shared-link conflict.
  • One rule for control properties: DemandControlVentilation, VentilationControlMethods and VentilationZoneControl block only on stand-alone DOAS and Ventilation Only (doc rows 60–61). On recovery they are named in the note. MakeupAirSourceID still blocks, with its own reason. With --no-allow_approximations, recovery reports row 83.

Notes: the recovery note says what ComStock and 90.1 decide at run time. Per-zone hosts in building types with kitchen and dining zones get a note that those zones have no audited recovery; a drift spec checks that building-type list against openstudio-standards.

How to test

bundle exec rspec spec/tests/unit
bundle exec rspec spec/tests/integration/write_and_run_osws_spec.rb -e 'ComStock recovery'
  • Unit: 267 examples, 0 failures.
  • ERV integration simulation: passes. It now checks one exchanger per loop, latent 0 in 3C, and part-flow sensible effectiveness at most 1.
  • Every spec/files/v2.7.0 fixture was planned before and after: no file changes topology/fallback status.
    • The ERV fixture loses modify_existing_heat_recovery.
    • Example_ASHRAE_L2_Report, NYC and San Francisco gain an economizer note.
    • NYC and San Francisco no longer list DCV as a fallback reason; they still fall back for other reasons.

Relevant tickets

🤖 Generated with Claude Code

Implements the accepted fix-plan recommendations R1-R8 for the exhaust
air recovery path added in #35.

- R1: an economizer-only delivery folded into its central delivery now
  gets its own Result: a WARN :policy note, or a blocking result with
  fix-it advice when approximations are off. Folding still applies in
  every file; NYC and San Francisco show the same pattern.
- R2: drop the comstock_erv effectiveness step. It leaves the 75%-flow
  table inconsistent, so EnergyPlus extrapolates effectiveness above 1
  (up to 1.22 sensible, 1.45 latent in a school run). An audited ERV now
  keeps ComStock's climate-zone HRV/ERV choice. An audited HRV gets a
  latent-0 modify_existing_heat_recovery step, the one setting that stays
  physical. The recovery note says which, by type.
- R3: the recovery note says what 90.1 and ComStock decide at run time
  (code exchangers, kitchen- and dining-only loops). The integration spec
  checks exchanger count and part-flow sensible effectiveness.
- R4: _select_recovery reports the real problem first: explicit
  unsupported Integration (including Stand-alone), then link checks, then
  Integration inference with a reason when it can't be inferred.
- R5: a stand-alone HRV/ERV, or one on its own NoHeating/NoCooling air
  path, owns its delivery (kept apart from ventilation_links, after
  economizer folding). An ERV on a DOAS or ventilation-only unit gets its
  own not_mappable reason, not a false shared-link conflict.
- R6: one rule for DemandControlVentilation, VentilationControlMethods
  and VentilationZoneControl. They block only on stand-alone DOAS and
  Ventilation Only (doc rows 60-61); on recovery they are named in the
  note. MakeupAirSourceID still blocks, with its own reason. Property
  checks run after the approximation gate, so strict mode reports row 83.
- R7: the building type is passed boss.rb -> planner -> selector.
  Restaurant recovery, which ComStock skips, becomes a WARN note on a
  topology plan instead of a failing run. Per-zone hosts in building
  types with kitchen and dining zones get a note that those zones have no
  audited recovery. A drift spec checks the list against
  openstudio-standards.
- R8: comment on ComStock's extra sizing run.

No spec fixture changes plan status. The ERV fixture loses the
modify_existing_heat_recovery step. Example_ASHRAE_L2_Report, NYC and San
Francisco gain an economizer note. NYC and San Francisco no longer list
DCV as a fallback reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant