Skip to content

Conversation

@jmarrec
Copy link
Collaborator

@jmarrec jmarrec commented Apr 29, 2025

Pull request overview

Pull Request Author

  • Model API Changes / Additions
  • Any new or modified fields have been implemented in the EnergyPlus ForwardTranslator (and ReverseTranslator as appropriate)
  • Model API methods are tested (in src/model/test)
  • EnergyPlus ForwardTranslator Tests (in src/energyplus/Test)

Labels:

  • If change to an IDD file, add the label IDDChange
  • If breaking existing API, add the label APIChange
  • If deemed ready, add label Pull Request - Ready for CI so that CI builds your PR

Review Checklist

This will not be exhaustively relevant to every PR.

  • Perform a Code Review on GitHub
  • Code Style, strip trailing whitespace, etc.
  • All related changes have been implemented: model changes, model tests, FT changes, FT tests, VersionTranslation, OS App
  • Labeling is ok
  • 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

jmarrec added 6 commits April 29, 2025 17:55
…the DSOAs

Without a DesignDay, the translateSizingZone is never called, and in turn the Controller:MechanicalVentilation does NOT receive the DSOAs
This has been the case since the first ever commit of OS SDK on github, but it is wrong IMHO.
@jmarrec jmarrec added component - IDF Translation Pull Request - Ready for CI This pull request if finalized and is ready for continuous integration verification prior to merge. labels Apr 29, 2025
@jmarrec jmarrec added this to the OpenStudio SDK 3.10.0 milestone Apr 29, 2025
@jmarrec jmarrec requested a review from shorowit April 29, 2025 16:27
@jmarrec jmarrec self-assigned this Apr 29, 2025
Comment on lines +233 to +234
/// return all spaces that have a design specification outdoor air assigned
std::vector<Space> spacesWithDesignSpecificationOutdoorAir() const;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

New helper

Comment on lines +69 to +70
// Convenience method to check whether it links to zones that have DesignSpecificationOutdoorAir(s) assigned
bool hasZonesWithDesignSpecificationOutdoorAir() const;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

New helper

Comment on lines 37 to +42
boost::optional<IdfObject> ForwardTranslator::translateControllerMechanicalVentilation(ControllerMechanicalVentilation& modelObject) {

// NOTE: don't translate it if it has no DSOA
if (!modelObject.hasZonesWithDesignSpecificationOutdoorAir()) {
return boost::none;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Don't translate if no DSOA found.

@ci-commercialbuildings
Copy link
Collaborator

ci-commercialbuildings commented Apr 29, 2025

CI Results for ab9f0eb:

@shorowit
Copy link
Contributor

Happy to test this when an Ubuntu or Windows build is available...


// TODO: Without a DesignDay, the translateSizingZone is never called, and in turn the Controller:MechanicalVentilation does NOT receive the DSOAs
// This has been the case since the first ever commit of OS SDK on github, but it is wrong IMHO.
DesignDay d(m);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you're trying to keep the PR focused on the task, which I appreciate. But, should there be a separate PR to move the assignment of DSOA objects from ForwardTranslateSizingZone.cpp to ForwardTranslateControllerMechanicalVentilation.cpp? Are you thinking it is too risky and there will be unintended consequences?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As I said in the OP:

This is a mininal fix extracted from #5384

I handle that there...

The issue is that E+ crashes when a ControllerMV uses a DSOA:SpaceList:

@kbenne kbenne merged commit 7040ce4 into develop Apr 30, 2025
2 of 6 checks passed
@jmarrec jmarrec deleted the 4219-part1 branch May 5, 2025 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component - IDF Translation Pull Request - Ready for CI This pull request if finalized and is ready for continuous integration verification prior to merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Controller:MechanicalVentilation is always translated and adds all thermalZones even those voluntarily without DSOA

5 participants