Skip to content

Commit

Permalink
Merge pull request #10610 from NREL/rep_fan_W
Browse files Browse the repository at this point in the history
Include fan power in EIO file
  • Loading branch information
Myoldmopar committed Aug 12, 2024
2 parents eb6665f + 5e325e4 commit 923c94e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/EnergyPlus/Fans.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1557,6 +1557,7 @@ void FanComponent::set_size(EnergyPlusData &state)
OutputReportPredefined::PreDefTableEntry(state, state.dataOutRptPredefined->pdchFanDeltaP, Name, deltaPress);
OutputReportPredefined::PreDefTableEntry(state, state.dataOutRptPredefined->pdchFanVolFlow, Name, _volFlow);
Real64 _ratedPower = _volFlow * deltaPress / totalEff; // total fan power
BaseSizer::reportSizerOutput(state, HVAC::fanTypeNames[(int)type], Name, "Design Electric Power Consumption [W]", _ratedPower);
if (type != HVAC::FanType::ComponentModel) {
designPointFEI = FanSystem::report_fei(state, _volFlow, _ratedPower, deltaPress);
}
Expand Down
5 changes: 5 additions & 0 deletions tst/EnergyPlus/unit/Fans.unit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ TEST_F(EnergyPlusFixture, Fans_FanSizing)
EXPECT_DOUBLE_EQ(1.00635, fan1->maxAirFlowRate);
state->dataSize->DataNonZoneNonAirloopValue = 0.0;
EXPECT_NEAR(1.0352, fan1->designPointFEI, 0.0001);

std::string eiooutput = std::string("! <Component Sizing Information>, Component Type, Component Name, Input Field Description, Value\n"
" Component Sizing Information, Fan:OnOff, Test Fan, Design Size Maximum Flow Rate [m3/s], 1.00635\n"
" Component Sizing Information, Fan:OnOff, Test Fan, Design Electric Power Consumption [W], 1257.93750\n");
EXPECT_TRUE(compare_eio_stream(eiooutput, true));
}

TEST_F(EnergyPlusFixture, Fans_ConstantVolume_EMSPressureRiseResetTest)
Expand Down

0 comments on commit 923c94e

Please sign in to comment.