Skip to content

Commit

Permalink
Multiple Airloops - Implement terminal unit sizing specs
Browse files Browse the repository at this point in the history
  • Loading branch information
mjwitte committed Mar 2, 2017
1 parent 9140751 commit 5bc2139
Show file tree
Hide file tree
Showing 5 changed files with 184 additions and 66 deletions.
12 changes: 11 additions & 1 deletion src/EnergyPlus/DataSizing.hh
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,11 @@ namespace DataSizing {
Real64 ReheatLoadMult; // multiplier for load in reheat coil UA calculation
Real64 DesCoolingLoad; // design cooling load used for zone equipment [W]
Real64 DesHeatingLoad; // design heating load used for zone equipment [W]
Real64 SpecDesSensCoolingFrac; // Fraction of Design Sensible Cooling Load from DesignSpecification:AirTerminal:Sizing
Real64 SpecDesCoolSATRatio; // Cooling Design Supply Air Temperature Difference Ratio from DesignSpecification:AirTerminal:Sizing
Real64 SpecDesSensHeatingFrac; // Fraction of Design Sensible Heating Load from DesignSpecification:AirTerminal:Sizing
Real64 SpecDesHeatSATRatio; // Heating Design Supply Air Temperature Difference Ratio from DesignSpecification:AirTerminal:Sizing
Real64 SpecMinOAFrac; // Fraction of Minimum Outdoor Air Flow from DesignSpecification:AirTerminal:Sizing

// Default Constructor
TermUnitSizingData() :
Expand All @@ -728,7 +733,12 @@ namespace DataSizing {
ReheatAirFlowMult( 1.0 ),
ReheatLoadMult( 1.0 ),
DesCoolingLoad( 0.0 ),
DesHeatingLoad( 0.0 )
DesHeatingLoad( 0.0 ),
SpecDesSensCoolingFrac( 1.0 ),
SpecDesCoolSATRatio( 1.0 ),
SpecDesSensHeatingFrac( 1.0 ),
SpecDesHeatSATRatio( 1.0 ),
SpecMinOAFrac ( 1.0 )
{}

};
Expand Down
11 changes: 10 additions & 1 deletion src/EnergyPlus/DirectAirManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,19 @@ namespace DirectAirManager {
DirectAir( DirectAirNum ).AirTerminalSizingSpecIndex = 0;
if ( !lAlphaFieldBlanks( 4 )) {
DirectAir( DirectAirNum ).AirTerminalSizingSpecIndex = InputProcessor::FindItemInList( cAlphaArgs( 4 ), DataSizing::AirTerminalSizingSpec );
if (DirectAir( DirectAirNum ).AirTerminalSizingSpecIndex == 0) {
if ( DirectAir( DirectAirNum ).AirTerminalSizingSpecIndex == 0 ) {
ShowSevereError(cAlphaFieldNames( 4 ) + " = " + cAlphaArgs( 4 ) + " not found.");
ShowContinueError( "Occurs in " + cCurrentModuleObject + " = " + DirectAir( DirectAirNum ).cObjectName );
ErrorsFound = true;
} else {
// Fill TermUnitSizing with specs from DesignSpecification:AirTerminal:Sizing
auto & thisTermUnitSizingData( DataSizing::TermUnitSizing( DirectAir( DirectAirNum ).TermUnitSizingIndex ) );
auto const & thisAirTermSizingSpec( DataSizing::AirTerminalSizingSpec( DirectAir( DirectAirNum ).AirTerminalSizingSpecIndex ) );
thisTermUnitSizingData.SpecDesCoolSATRatio = thisAirTermSizingSpec.DesCoolSATRatio;
thisTermUnitSizingData.SpecDesHeatSATRatio = thisAirTermSizingSpec.DesHeatSATRatio;
thisTermUnitSizingData.SpecDesSensCoolingFrac = thisAirTermSizingSpec.DesSensCoolingFrac;
thisTermUnitSizingData.SpecDesSensHeatingFrac = thisAirTermSizingSpec.DesSensHeatingFrac;
thisTermUnitSizingData.SpecMinOAFrac = thisAirTermSizingSpec.MinOAFrac;
}
}

Expand Down
Loading

8 comments on commit 5bc2139

@nrel-bot-3
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beyond1Airloop (mjwitte) - x86_64-MacOS-10.9-clang: OK (2385 of 2471 tests passed, 510 test warnings)

  • 510 tests had: AUD diffs.
  • 437 tests had: BND diffs.
  • 10 tests had: EIO diffs.
  • 2 tests had: ESO small diffs.
  • 2 tests had: Table small diffs.
  • 2 tests had: RDD diffs.

Build Badge Test Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beyond1Airloop (mjwitte) - x86_64-Linux-Ubuntu-14.04-gcc-4.8: OK (2425 of 2511 tests passed, 514 test warnings)

  • 514 tests had: AUD diffs.
  • 440 tests had: BND diffs.
  • 10 tests had: EIO diffs.
  • 2 tests had: ESO small diffs.
  • 2 tests had: Table small diffs.
  • 2 tests had: RDD diffs.

Build Badge Test Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beyond1Airloop (mjwitte) - x86_64-Linux-Ubuntu-14.04-cppcheck-1.61: OK (0 of 0 tests passed, 0 test warnings)

Build Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beyond1Airloop (mjwitte) - x86_64-Linux-Ubuntu-14.04-gcc-4.8-UnitTestsCoverage-Debug: OK (1277 of 1277 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beyond1Airloop (mjwitte) - x86_64-Linux-Ubuntu-14.04-gcc-4.8-IntegrationCoverage-Debug: OK (1791 of 1878 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beyond1Airloop (mjwitte) - x86_64-Linux-Ubuntu-14.04-custom_check: OK (0 of 0 tests passed, 0 test warnings)

Build Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beyond1Airloop (mjwitte) - i386-Windows-7-VisualStudio-14: OK (2391 of 2477 tests passed, 513 test warnings)

  • 513 tests had: AUD diffs.
  • 439 tests had: BND diffs.
  • 10 tests had: EIO diffs.
  • 2 tests had: ESO small diffs.
  • 2 tests had: Table small diffs.
  • 2 tests had: RDD diffs.

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beyond1Airloop (mjwitte) - Win64-Windows-7-VisualStudio-14: OK (2391 of 2477 tests passed, 0 test warnings)

Build Badge Test Badge

Please sign in to comment.