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

Fix autosize bug in variable speed cooling coils. #10503

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

tanaya-mankad
Copy link
Collaborator

Pull request overview

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

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

@tanaya-mankad tanaya-mankad added the Defect Includes code to repair a defect in EnergyPlus label May 13, 2024
@tanaya-mankad tanaya-mankad self-assigned this May 13, 2024
ShowContinueError(state, format("...{} cannot be < 0.0.", cNumericFields(10)));
ShowContinueError(state, format("...entered value=[{:.2T}].", NumArray(10)));
ErrorsFound = true;
if (state.dataVariableSpeedCoils->VarSpeedCoil(DXCoilNum).EvapCondPumpElecNomPower != Constant::AutoCalculate) {
Copy link
Contributor

@rraustad rraustad May 13, 2024

Choose a reason for hiding this comment

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

The Constant::AutoSize and Constant::AutoCalculate do have the same value but they mean different things. We should probably change one of the values. The auto calculate field is defined with \autocalculatable. So this field, which is autosizable, should compare to the AutoSize variable.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK, this is correct and the idd shows autosize when it should be autocalculatable. You know an input is auto calculated when there is a rule of thumb used to size the input.

        //     Auto size high speed evap condenser pump power to Total Capacity * 0.004266 w/w (15 w/ton)
        EvapCondPumpElecNomPowerDes = varSpeedCoil.RatedCapCoolTotal * 0.004266;

LatentLoad,
OnOffAirFlowRatio);
}

Copy link
Contributor

Choose a reason for hiding this comment

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

What is the value of Evaporative Condenser Pump Rated Power Consumption after this call?

@rraustad
Copy link
Contributor

@tanaya-mankad are there other changes you expect to make? These changes look fine for the issue.

@tanaya-mankad
Copy link
Collaborator Author

Yes, this is the (greatly simplified) set of changes. Thanks.

@tanaya-mankad tanaya-mankad marked this pull request as ready for review May 15, 2024 19:03
@nealkruis nealkruis requested a review from rraustad May 17, 2024 15:00
Copy link
Contributor

@rraustad rraustad left a comment

Choose a reason for hiding this comment

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

These changes look good to me.

@Myoldmopar
Copy link
Member

@tanaya-mankad, this has a conflict in the unit test code. It's otherwise ready, so if you could resolve that, I'll give it a quick once over and get it merged in. My guess is that two different unit tests were added to the same spot in the unit test file. It's either that, or one of the namespace-ish refactors just changed a line. If you hit trouble, let me know and I can give it a shot.

@tanaya-mankad
Copy link
Collaborator Author

Hi @Myoldmopar , I'm not finding the failure in the Dashboard. Could you point me to a link?

@Myoldmopar
Copy link
Member

It's a merge conflict here on the pr, I'm not sure I can send a link to it 🙃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Defect Includes code to repair a defect in EnergyPlus
Projects
None yet
8 participants