Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to AvailabilityManager:NightCycle to run just until the zone temperature recovers #6151 #6179

Merged
merged 11 commits into from
Jul 31, 2017

Conversation

Nigusse
Copy link
Contributor

@Nigusse Nigusse commented Jun 15, 2017

Issue #6151

Pull request overview

This issue adds option to AvailabilityManager:NightCycle to run just until the zone temperature recovers with two more Cycling Run Time Control Types. This feature enhances existing capability. This is not a defect and diffs is not expected. But audit and table files diffs are expected due to new input field addition. About 87 idfs were transitioned manually. A transition rule md file and unit tests have been added.

Work Checklist

Add to this list or remove from it as applicable. This is a simple templated set of guidelines.

  • Title of PR should be user-synopsis style (clearly understandable in a standalone changelog context)
  • At least one of the following appropriate labels must be added to this PR to be consumed into the changelog:
  • NewFeature: This pull request includes code to add a new feature to EnergyPlus
  • IDD changes:
    • Verify naming conventions and styles, memos and notes and defaults
    • Open windows IDF Editor with modified IDD to check for errors
    • If transition, add transition source
    • If transition, update idfs

@Nigusse
Copy link
Contributor Author

Nigusse commented Jun 17, 2017

This issue (new feature) is ready for review. The CI machine shows 14 idfs failure due to diffs. These diffs are audit and Table big diffs that are caused by new field addition in "AvailabilityManager:NightCycle" object. Some of these example files has multiple NightCycle objects. These diffs are expected.

@Nigusse Nigusse requested a review from mjwitte June 17, 2017 20:11
@nrel-bot-3
Copy link

@Nigusse @lgentile it has been 15 days since this pull request was last updated.

@nrel-bot-3
Copy link

@Nigusse @lgentile it has been 14 days since this pull request was last updated.

@mjwitte mjwitte added IDDChange Code changes impact the IDD file (cannot be merged after IO freeze) NewFeature Includes code to add a new feature to EnergyPlus labels Jul 18, 2017
@Myoldmopar Myoldmopar modified the milestone: EnergyPlus 8.8.0 Jul 29, 2017
Copy link
Member

@Myoldmopar Myoldmopar left a comment

Choose a reason for hiding this comment

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

I'm good with this going in. I'm pushing up the transition changes that I've tested, and some other minor cleanup. The code is good, unit test is good, if no one has anything further I'll merge this in the next few minutes.

\type object-list
\object-list ZoneAndZoneListNames


Copy link
Member

Choose a reason for hiding this comment

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

Random double space I'll clean up

@@ -74242,25 +74242,32 @@ AvailabilityManager:NightCycle,
N1 , \field Thermostat Tolerance
\default 1.0
\units deltaC
A5 , \field Cycling Run Time Control Type
Copy link
Member

Choose a reason for hiding this comment

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

I added the transition rule for this and tested it. ✔️

@@ -740,17 +744,33 @@ namespace SystemAvailabilityManager {
ErrorsFound = true;
}}

// Cycling Run Time Control Type
if ( !lAlphaFieldBlanks( 5 ) ) {
{ auto const SELECT_CASE_var( MakeUPPERCase( cAlphaArgs( 5 ) ) );
Copy link
Member

Choose a reason for hiding this comment

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

In the future, try to avoid propagating the SELECT_CASE_var code. It was really just used when the Fortran code was changed over but lingered. Nbd for here, just don't add any others in the future. 👍

SystemAvailabilityManager::CalcNCycSysAvailMgr( SysAvailNum, PriAirSysNum, AvailStatus );
// Check that the system is no action mode, zone air temp is within T tolerance limits of 0.05, 25.04 < 25.0 + 0.05
EXPECT_EQ( DataHVACGlobals::NoAction, SystemAvailabilityManager::NCycSysAvailMgrData( 1 ).AvailStatus );
}
Copy link
Member

Choose a reason for hiding this comment

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

No newline at end; I"ll add it.

@Myoldmopar Myoldmopar self-assigned this Jul 31, 2017
@Myoldmopar Myoldmopar merged commit 9772581 into develop Jul 31, 2017
@Myoldmopar Myoldmopar deleted the 146627003_Issue#6151 branch July 31, 2017 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IDDChange Code changes impact the IDD file (cannot be merged after IO freeze) NewFeature Includes code to add a new feature to EnergyPlus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants