Fix availability schedules for Coil:Cooling:WaterToAirHeatPump:EquationFit (and Heating) - #11782
Fix availability schedules for Coil:Cooling:WaterToAirHeatPump:EquationFit (and Heating)#11782joseph-robertson wants to merge 6 commits into
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The unitary-system schedule propagation lacks regression coverage.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Ensures water-to-air heat pump coils honor their availability schedules.
Changes:
- Gates initialization and calculations on schedule availability.
- Propagates coil schedules into unitary-system control.
- Adds direct cooling and heating schedule-off tests.
File summaries
| File | Description |
|---|---|
src/EnergyPlus/WaterToAirHeatPumpSimple.cc |
Enforces availability schedules. |
src/EnergyPlus/UnitarySystem.cc |
Uses underlying coil schedules. |
tst/EnergyPlus/unit/WaterToAirHeatPumpSimple.unit.cc |
Tests unavailable coil behavior. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 1
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| state->dataWaterToAirHeatPumpSimple->SimpleWatertoAirHP(HPNum).availSched = Sched::GetScheduleAlwaysOff(*state); | ||
| InitSimpleWatertoAirHP(*state, HPNum, SensLoad, LatentLoad, fanOp, OnOffAirFlowRatio, FirstHVACIteration, PartLoadRatio); | ||
| CalcHPCoolingSimple(*state, HPNum, fanOp, SensLoad, LatentLoad, compressorOp, PartLoadRatio, OnOffAirFlowRatio); | ||
| UpdateSimpleWatertoAirHP(*state, HPNum); |
| auto const &thisHeatCoil = state.dataVariableSpeedCoils->VarSpeedCoil(this->m_HeatingCoilIndex); | ||
| this->m_NumOfSpeedHeating = thisHeatCoil.NumOfSpeeds; | ||
| this->m_heatingCoilAvailSched = Sched::GetScheduleAlwaysOn(state); | ||
| this->m_heatingCoilAvailSched = thisHeatCoil.availSched; |
There was a problem hiding this comment.
@rraustad These updates (and all similar down below) are legitimate and necessary changes?
There was a problem hiding this comment.
@joseph-robertson These changes look correct to me. i.e., do not use the assumed AlwaysOn schedule within UnitarySystem and instead use the coils availSched which will handle a blank field.
Pull request overview
Description of the purpose of this PR
Pull Request Author
Reviewer