Skip to content

Commit

Permalink
Add OutTempAtCoolPeak and OutHumRatAtCoolPeak (#6079)
Browse files Browse the repository at this point in the history
  • Loading branch information
rraustad committed Aug 25, 2017
1 parent 4042ca1 commit 08075a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/EnergyPlus/ZoneEquipmentManager.cc
Expand Up @@ -2780,11 +2780,13 @@ namespace ZoneEquipmentManager {
ShowFatalError( "Please send your input file to the EnergyPlus support/development team for further investigation." );
} else {
FinalZoneSizing( CtrlZoneNum ).ZoneTempAtCoolPeak = *std::min_element( ZoneSizing( DDNumF, CtrlZoneNum ).DesCoolSetPtSeq.begin(), ZoneSizing( DDNumF, CtrlZoneNum ).DesCoolSetPtSeq.end() );
FinalZoneSizing( CtrlZoneNum ).OutTempAtCoolPeak = *std::min_element( ZoneSizing( DDNumF, CtrlZoneNum ).CoolOutTempSeq.begin(), ZoneSizing( DDNumF, CtrlZoneNum ).CoolOutTempSeq.end() );
}
FinalZoneSizing( CtrlZoneNum ).ZoneHumRatAtCoolPeak = ZoneSizing( DDNumF, CtrlZoneNum ).CoolZoneHumRatSeq( TimeStepAtPeakF );
FinalZoneSizing( CtrlZoneNum ).OutHumRatAtCoolPeak = ZoneSizing( DDNumF, CtrlZoneNum ).CoolOutHumRatSeq( TimeStepAtPeakF );
if ( FinalZoneSizing( CtrlZoneNum ).ZoneHumRatAtCoolPeak > 0.0 ) {
FinalZoneSizing( CtrlZoneNum ).ZoneHumRatAtCoolPeak = min( FinalZoneSizing( CtrlZoneNum ).ZoneHumRatAtCoolPeak, PsyWFnTdpPb( FinalZoneSizing( CtrlZoneNum ).ZoneTempAtCoolPeak, StdBaroPress, RoutineName ) );

// should use max here for cooling and min for heating ?
FinalZoneSizing( CtrlZoneNum ).ZoneHumRatAtCoolPeak = max( FinalZoneSizing( CtrlZoneNum ).ZoneHumRatAtCoolPeak, PsyWFnTdpPb( FinalZoneSizing( CtrlZoneNum ).ZoneTempAtCoolPeak, StdBaroPress, RoutineName ) );
} else {
FinalZoneSizing( CtrlZoneNum ).ZoneHumRatAtCoolPeak = ZoneSizing( DDNumF, CtrlZoneNum ).CoolDesHumRat;
}
Expand Down

0 comments on commit 08075a5

Please sign in to comment.