Skip to content

Conversation

@RKStrand
Copy link
Contributor

Pull request overview

Description of the purpose of this PR

A user discovered that when selecting scheduled clothing values that the reported value for the Fanger model was always zero. There were various missing assignments that caused this to be the case for several thermal comfort models, always when the clothing value was schedule driven only. This did not affect the results because internally the calculation variables were updated properly. It only affected the report value. This issue has been corrected and now the clothing value is reported properly. A unit test created for this fix verifies this. The variable in question was actually not even listed in the Input Output Reference even though the code clearly made this a valid report variable. The documentation was updated to include this variable as an option. In addition, while working on this defect, it was discovered that two input fields for the People object were not documented in the Input Output Reference. This was also corrected. Finally, an IDF in the test suite was modified to request the report variable that was corrected since no IDF files in the test suite requested it.

Pull Request Author

  • 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

  • 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

RKStrand added 2 commits July 11, 2025 11:43
The current clothing value was not being reported properly for situations when the user had clothing insulation scheduled.  This was an issue for several for several models.  This corrects the problem and the output value is properly assigned rather than always zero.
The Pierce model also did not have any code to set the clothing value reporting variable.  This corrects this.  Also a unit test verifying the fix was added.  Finally, this variable was officially added to the IO Ref and two missing input fields were documented as well.
@RKStrand RKStrand added this to the EnergyPlus 25.2 IO Freeze milestone Jul 11, 2025
@RKStrand RKStrand requested review from Myoldmopar and mjwitte July 11, 2025 21:22
@RKStrand RKStrand self-assigned this Jul 11, 2025
@RKStrand RKStrand added the Defect Includes code to repair a defect in EnergyPlus label Jul 11, 2025
@RKStrand RKStrand requested a review from rraustad July 11, 2025 21:23
@github-actions
Copy link

⚠️ Regressions detected on macos-14 for commit 825e894

Regression Summary
  • Audit: 1
  • MTD: 1

Appears that the two fields that had "missing" desriptions were not missing but rather misplaced.  Moved the information to the correct place and added some degree symbols that were missing throughout this section.
@github-actions
Copy link

⚠️ Regressions detected on macos-14 for commit 2a68e0a

Regression Summary
  • Audit: 1
  • MTD: 1

Copy link
Contributor

@mjwitte mjwitte left a comment

Choose a reason for hiding this comment

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

@RKStrand OK, tested this, works as advertised. I merged in develop and added the new output to the rvi file. Will wait for CI before merging.

@github-actions
Copy link

⚠️ Regressions detected on macos-14 for commit a5b750e

Regression Summary
  • Audit: 1
  • MTD: 1

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 a little surprised with the move in the docs. Is the placement correct? It might be and I'm just missing something. Anyway, the functional changes are great so if you can confirm the doc comment, we can get this merged.

is defined as the longest duration (number of hours), starting from the
beginning time of the risk period (e.g., the start time of a power outage), to
not above a certain temperature threshold (specified in this field). If not
specified, 86F (or 30C) will be used as the default temperature threshold.
Copy link
Member

Choose a reason for hiding this comment

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

These were moved/removed? I didn't expect that from the PR text. Could just be a groggy start for me though :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, they were moved because the order did not match the IDD before. In the current IDD, these are placed at the end (N7, N8) of the object syntax. I moved them to match the IDD.

is defined as the longest duration (number of hours), starting from the
beginning time of the risk period (e.g., the start time of a power outage) to
not above a certain temperature threshold (specified in this field). If not
specified, 86$^\circ$F (or 30$^\circ$C) will be used as the default temperature threshold.
Copy link
Member

Choose a reason for hiding this comment

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

So these were moved down here? It kinda feels a bit odd given the paragraph text above saying the IDF text follows.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My bad. I moved that paragraph and made another commit. Should be better now.

switch (people.clothingType) {
case DataHeatBalance::ClothingType::InsulationSchedule: {
state.dataThermalComforts->CloUnit = people.clothingSched->getCurrentVal();
comfort.ClothingValue = state.dataThermalComforts->CloUnit;
Copy link
Member

Choose a reason for hiding this comment

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

Got it, so every scheduled block you need to update it.

Docs fix--when sections moved, a paragraph that leads into the next section was not accounted for.
@RKStrand RKStrand requested a review from Myoldmopar August 13, 2025 14:14
@github-actions
Copy link

⚠️ Regressions detected on macos-14 for commit 043088a

Regression Summary
  • Audit: 1
  • MTD: 1

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.

Thanks for addressing my comments, @RKStrand. I'm doing a quick build locally. Looks like there is an unused variable, which is now properly causing a build error. So I'll fix that, push, and let CI give me one sanity check.

@github-actions
Copy link

github-actions bot commented Sep 4, 2025

⚠️ Regressions detected on macos-14 for commit f2507d7

Regression Summary
  • Audit: 1
  • MTD: 1

@Myoldmopar
Copy link
Member

Happy again with my unused variable fixed. Merging this. Thanks @RKStrand

@Myoldmopar Myoldmopar merged commit a354330 into develop Sep 4, 2025
9 checks passed
@Myoldmopar Myoldmopar deleted the 11120CloInsulationReportingIssue branch September 4, 2025 12:59
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

Development

Successfully merging this pull request may close these issues.

Clothing Insulation Value Reporting Problem

6 participants