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

ZoneHVAC:PackagedTerminalAirConditioner transition to UnitarySystem #9052

Closed
wants to merge 39 commits into from

Conversation

rraustad
Copy link
Contributor

Pull request overview

  • Fixes DO NOT MERGE
  • DESCRIBE PURPOSE OF THIS PULL REQUEST

NOTE: ENHANCEMENTS MUST FOLLOW A SUBMISSION PROCESS INCLUDING A FEATURE PROPOSAL AND DESIGN DOCUMENT PRIOR TO SUBMITTING CODE

Pull Request Author

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)
  • Label the PR with at least one of: Defect, Refactoring, NewFeature, Performance, and/or DoNoPublish
  • Pull requests that impact EnergyPlus code must also include unit tests to cover enhancement or defect repair
  • Author should provide a "walkthrough" of relevant code changes using a GitHub code review comment process
  • If any diffs are expected, author must demonstrate they are justified using plots and descriptions
  • If changes fix a defect, the fix should be demonstrated in plots and descriptions
  • If any defect files are updated to a more recent version, upload new versions here or on DevSupport
  • If IDD requires transition, transition source, rules, ExpandObjects, and IDFs must be updated, and add IDDChange label
  • If structural output changes, add to output rules file and add OutputChange label
  • If adding/removing any LaTeX docs or figures, update that document's CMakeLists file dependencies

Reviewer

This will not be exhaustively relevant to every PR.

  • Perform a Code Review on GitHub
  • If branch is behind develop, merge develop and build locally to check for side effects of the merge
  • If defect, verify by running develop branch and reproducing defect, then running PR and reproducing fix
  • If feature, test running new feature, try creative ways to break it
  • CI status: all green or justified
  • Check that performance is not impacted (CI Linux results include performance check)
  • Run Unit Test(s) locally
  • Check any new function arguments for performance impacts
  • Verify IDF naming conventions and styles, memos and notes and defaults
  • If new idf included, locally check the err file and other outputs

@rraustad rraustad added the NewFeature Includes code to add a new feature to EnergyPlus label Sep 10, 2021
@rraustad rraustad added this to the EnergyPlus 2022.1 milestone Sep 10, 2021
@rraustad rraustad changed the title Pt unit to unitary system ZoneHVAC:PackagedTerminalAirConditioner transition to UnitarySystem Sep 10, 2021
@rraustad rraustad added the DoNotPublish Includes changes that shouldn't be reported in the changelog label Sep 10, 2021
@rraustad rraustad added Refactoring Includes code changes that don't change the functionality of the program, just perform refactoring and removed NewFeature Includes code to add a new feature to EnergyPlus labels Sep 11, 2021
int m_ZoneUnitaryNum; // 1-based index of this parent type for zone equipment processing
int m_PTACNum; // 1-based index of this parent type for zone equipment processing
int m_PTHPNum; // 1-based index of this parent type for zone equipment processing
int m_PTWSHPNum; // 1-based index of this parent type for zone equipment processing
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These 4 (m_ZoneUnitaryNum through m_PTWSHPNum) are for SysAvailManagers. This was my first attempt at storing the relative index to each Eq type. e.g., 12 UnitarySystems of different types but only 3 PTACs, with PTAC index 1, 2 and 3. This concept should be able to be stored in a single variable for all Eq types, ZoneEqCompNum or something like that.

@rraustad
Copy link
Contributor Author

image

@rraustad
Copy link
Contributor Author

@mjwitte I am not sure what a change in the audit diffs represent.
First diff file = ASHRAE901_HotelSmall_STD2019_Denver

- sizeCompSizeTableEntry=        1600
- numCompSizeTableEntry=         852
+ sizeCompSizeTableEntry=         800
+ numCompSizeTableEntry=         744

@rraustad
Copy link
Contributor Author

The "corrupted double-linked list" compiler warning turned out to be an Array1D index issue (0 not good), identified by @Myoldmopar.

@mjwitte
Copy link
Contributor

mjwitte commented Sep 27, 2021

I am not sure what a change in the audit diffs represent.
First diff file = ASHRAE901_HotelSmall_STD2019_Denver

- sizeCompSizeTableEntry=        1600
- numCompSizeTableEntry=         852
+ sizeCompSizeTableEntry=         800
+ numCompSizeTableEntry=         744

numCompSizeTableEntry counts how many entries there are in the Component Sizing Summary table output. It's incremented in AddCompSizeTableEntry which gets called by reportSizeOutput. So, the old PTAC must be reporting some additional sizing outputs that unitary does not?

@nrel-bot-3
Copy link

@rraustad @lgentile it has been 28 days since this pull request was last updated.

1 similar comment
@nrel-bot
Copy link

@rraustad @lgentile it has been 28 days since this pull request was last updated.

@nrel-bot-2
Copy link

@rraustad @lgentile it has been 28 days since this pull request was last updated.

@nrel-bot-3
Copy link

@rraustad @lgentile it has been 28 days since this pull request was last updated.

@mjwitte mjwitte added IDDChange Code changes impact the IDD file (cannot be merged after IO freeze) and removed DoNotPublish Includes changes that shouldn't be reported in the changelog labels Feb 9, 2022
@mjwitte
Copy link
Contributor

mjwitte commented Feb 16, 2022

Closing this for now, but keeping the branch for reference, because the new branch in #9273 had lots of conflicts.

@mjwitte mjwitte closed this Feb 16, 2022
@mjwitte mjwitte removed this from the EnergyPlus 22.1 IOFreeze milestone Feb 16, 2022
@rraustad rraustad deleted the PTUnit-to-UnitarySystem branch August 4, 2022 23:17
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) Refactoring Includes code changes that don't change the functionality of the program, just perform refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants