Skip to content

Commit 3fe7397

Browse files
committed
Fix #10387 - HeatPump:AirToWater:FuelFired:Heating was not using Outside air temperatures to evaluate curves
1 parent 8c89051 commit 3fe7397

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/EnergyPlus/PlantLoopHeatPumpEIR.cc

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2549,6 +2549,7 @@ void EIRFuelFiredHeatPump::doPhysics(EnergyPlusData &state, Real64 currentLoad)
25492549
// will not shut down the branch
25502550
auto &thisInletNode = state.dataLoopNodes->Node(this->loadSideNodes.inlet);
25512551
auto &thisOutletNode = state.dataLoopNodes->Node(this->loadSideNodes.outlet);
2552+
auto &thisSourceSideInletNode = state.dataLoopNodes->Node(this->sourceSideNodes.inlet); // OA Intake node
25522553
auto &sim_component = DataPlant::CompData::getPlantComponent(state, this->loadSidePlantLoc);
25532554
if ((this->EIRHPType == DataPlant::PlantEquipmentType::HeatPumpFuelFiredHeating && currentLoad <= 0.0)) {
25542555
if (sim_component.FlowCtrl == DataBranchAirLoopPlant::ControlType::SeriesActive) this->loadSideMassFlowRate = thisInletNode.MassFlowRate;
@@ -2720,10 +2721,10 @@ void EIRFuelFiredHeatPump::doPhysics(EnergyPlusData &state, Real64 currentLoad)
27202721
// Determine which air variable to use for GAHP:
27212722
// Source (air) side variable to use
27222723
// auto &thisloadsideinletnode = state.dataLoopNodes->Node(this->loadSideNodes.inlet);
2723-
Real64 oaTempforCurve = thisInletNode.Temp; // state.dataLoopNodes->Node(this->loadSideNodes.inlet).Temp;
2724+
Real64 oaTempforCurve = this->sourceSideInletTemp; // state.dataLoopNodes->Node(this->loadSideNodes.inlet).Temp;
27242725
if (this->oaTempCurveInputVar == OATempCurveVar::WetBulb) {
2725-
oaTempforCurve =
2726-
Psychrometrics::PsyTwbFnTdbWPb(state, thisInletNode.Temp, thisInletNode.HumRat, thisInletNode.Press, "PLFFHPEIR::doPhysics()");
2726+
oaTempforCurve = Psychrometrics::PsyTwbFnTdbWPb(
2727+
state, thisSourceSideInletNode.Temp, thisSourceSideInletNode.HumRat, thisSourceSideInletNode.Press, "PLFFHPEIR::doPhysics()");
27272728
}
27282729

27292730
// Load (water) side temperature variable
@@ -2733,10 +2734,7 @@ void EIRFuelFiredHeatPump::doPhysics(EnergyPlusData &state, Real64 currentLoad)
27332734
}
27342735

27352736
// evaluate capacity modifier curve and determine load side heat transfer
2736-
Real64 capacityModifierFuncTemp =
2737-
// CurveManager::CurveValue(state, this->capFuncTempCurveIndex, loadSideOutletSetpointTemp, this->sourceSideInletTemp);
2738-
// CurveManager::CurveValue(state, this->capFuncTempCurveIndex, loadSideOutletSetpointTemp, oaTempforCurve);
2739-
Curve::CurveValue(state, this->capFuncTempCurveIndex, waterTempforCurve, oaTempforCurve);
2737+
Real64 capacityModifierFuncTemp = Curve::CurveValue(state, this->capFuncTempCurveIndex, waterTempforCurve, oaTempforCurve);
27402738

27412739
if (capacityModifierFuncTemp < 0.0) {
27422740
if (this->capModFTErrorIndex == 0) {

0 commit comments

Comments
 (0)