Skip to content

Commit

Permalink
fix the issue of calling function SetupZoneInternalGain
Browse files Browse the repository at this point in the history
refine output description
  • Loading branch information
LipingWang committed Sep 12, 2024
1 parent 2830ccc commit ea62070
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2452,7 +2452,7 @@ \subsubsection{Outputs}\label{outputs-indoorlivingwall}

\paragraph{Indoor Living Wall Sensible Heat Gain Rate {[}W{]}}\label{indoor-living-wall-sensible-heat-gain-rate-w}

This output is the sensible heat gain rate from indoor living walls in W and determined by surface heat balance. Positive sign represents heat loss from plants or heat gain to indoor space; negative sign represents heat gain to plants or heat loss from indoor space.
This output is the sensible heat gain rate from indoor living walls in W and determined by surface heat balance. Positive sign represents heat gain of living walls or heat loss of indoor spaces; negative sign represents heat loss of living walls or heat gain of indoor spaces.

\paragraph{Indoor Living Wall Latent Heat Gain Rate {[}W{]}}\label{indoor-living-wall-latent-heat-gain-rate-w}

Expand Down
13 changes: 8 additions & 5 deletions src/EnergyPlus/IndoorGreen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ namespace IndoorGreen {
ig.ZonePtr,
ig.Name,
DataHeatBalance::IntGainType::IndoorGreen,
&ig.SensibleRate,
&ig.SensibleRateLED,
nullptr,
nullptr,
&ig.LatentRate,
nullptr,
Expand All @@ -381,7 +382,7 @@ namespace IndoorGreen {
state,
"Indoor Living Wall Sensible Heat Gain Rate",
Constant::Units::W,
state.dataHeatBalSurf->SurfQConvInRep(ig.SurfPtr), // positive sign: heat loss from plants; negative sign: heat gain to plants
ig.SensibleRate,
OutputProcessor::TimeStepType::Zone,
OutputProcessor::StoreType::Average,
ig.Name);
Expand Down Expand Up @@ -430,7 +431,7 @@ namespace IndoorGreen {
SetupOutputVariable(state,
"Indoor Living Wall LED Sensible Heat Gain Rate",
Constant::Units::W,
ig.SensibleRate,
ig.SensibleRateLED,
OutputProcessor::TimeStepType::Zone,
OutputProcessor::StoreType::Average,
ig.Name);
Expand Down Expand Up @@ -464,6 +465,7 @@ namespace IndoorGreen {
// Set the reporting variables to zero at each timestep.
for (auto &ig : state.dataIndoorGreen->indoorGreens) {
ig.SensibleRate = 0.0;
ig.SensibleRateLED = 0.0;
ig.LatentRate = 0.0;
ig.ZCO2 = 400;
ig.ZPPFD = 0;
Expand Down Expand Up @@ -581,9 +583,10 @@ namespace IndoorGreen {
ZoneNewHum = ZoneSatHum;
}
HMid = Psychrometrics::PsyHFnTdbW(ZoneNewTemp, ZonePreHum);
ig.SensibleRate = (1 - ig.LEDRadFraction) * ig.LEDActualEleP; // convective heat gain from LED lights when LED is on; heat convection from
ig.SensibleRateLED = (1 - ig.LEDRadFraction) * ig.LEDActualEleP; // convective heat gain from LED lights when LED is on; heat convection from
// plants was considered and counted from plant surface heat balance.
ig.LatentRate = ZoneAirVol * rhoair * (HCons - HMid) / Timestep; // unit W
ig.SensibleRate = state.dataHeatBalSurf->SurfQConvInRep(ig.SurfPtr) / Timestep;
ig.LatentRate = ZoneAirVol *rhoair *(HCons - HMid) / Timestep; // unit W
state.dataHeatBalSurf->SurfQAdditionalHeatSourceInside(ig.SurfPtr) =
-1.0 * ig.LambdaET +
ig.LEDRadFraction * 0.9 * ig.LEDActualEleP /
Expand Down

0 comments on commit ea62070

Please sign in to comment.