@@ -2549,6 +2549,7 @@ void EIRFuelFiredHeatPump::doPhysics(EnergyPlusData &state, Real64 currentLoad)
2549
2549
// will not shut down the branch
2550
2550
auto &thisInletNode = state.dataLoopNodes ->Node (this ->loadSideNodes .inlet );
2551
2551
auto &thisOutletNode = state.dataLoopNodes ->Node (this ->loadSideNodes .outlet );
2552
+ auto &thisSourceSideInletNode = state.dataLoopNodes ->Node (this ->sourceSideNodes .inlet ); // OA Intake node
2552
2553
auto &sim_component = DataPlant::CompData::getPlantComponent (state, this ->loadSidePlantLoc );
2553
2554
if ((this ->EIRHPType == DataPlant::PlantEquipmentType::HeatPumpFuelFiredHeating && currentLoad <= 0.0 )) {
2554
2555
if (sim_component.FlowCtrl == DataBranchAirLoopPlant::ControlType::SeriesActive) this ->loadSideMassFlowRate = thisInletNode.MassFlowRate ;
@@ -2720,10 +2721,10 @@ void EIRFuelFiredHeatPump::doPhysics(EnergyPlusData &state, Real64 currentLoad)
2720
2721
// Determine which air variable to use for GAHP:
2721
2722
// Source (air) side variable to use
2722
2723
// 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;
2724
2725
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()" );
2727
2728
}
2728
2729
2729
2730
// Load (water) side temperature variable
@@ -2733,10 +2734,7 @@ void EIRFuelFiredHeatPump::doPhysics(EnergyPlusData &state, Real64 currentLoad)
2733
2734
}
2734
2735
2735
2736
// 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);
2740
2738
2741
2739
if (capacityModifierFuncTemp < 0.0 ) {
2742
2740
if (this ->capModFTErrorIndex == 0 ) {
0 commit comments