Skip to content

Comments

Fix #4648 #4654 - SurfaceProperty:GroundSurfaces and SurfaceProperty:IncidentSolarMultiplier#4676

Merged
jmarrec merged 22 commits intov22.2.0-IOFreezefrom
4648_4654_SurfaceProperties
Sep 15, 2022
Merged

Fix #4648 #4654 - SurfaceProperty:GroundSurfaces and SurfaceProperty:IncidentSolarMultiplier#4676
jmarrec merged 22 commits intov22.2.0-IOFreezefrom
4648_4654_SurfaceProperties

Conversation

@jmarrec
Copy link
Collaborator

@jmarrec jmarrec commented Sep 12, 2022

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)
  • If a new object or method, added a test in NREL/OpenStudio-resources: Add Link
  • If needed, added VersionTranslation rules for the objects (src/osversion/VersionTranslator.cpp)
  • Verified that C# bindings built fine on Windows, partial classes used as needed, etc.
  • All new and existing tests passes

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 jmarrec self-assigned this Sep 12, 2022
jmarrec added a commit to NatLabRockies/OpenStudio-resources that referenced this pull request Sep 12, 2022
@jmarrec jmarrec mentioned this pull request Sep 12, 2022
17 tasks
@joseph-robertson joseph-robertson added the Pull Request - Ready for CI This pull request if finalized and is ready for continuous integration verification prior to merge. label Sep 12, 2022
@ci-commercialbuildings
Copy link
Collaborator

ci-commercialbuildings commented Sep 12, 2022

@shorowit
Copy link
Contributor

I tested the IncidentSolarMultiplier object w/ a schedule and it worked as expected.

{"SurfacePropertyGroundSurfaces", "Ground Surface Temperature Schedule", "groundSurfaceTemperatureSchedule", true, "Temperature",
OptionalDouble(), OptionalDouble()},
{"SurfacePropertyGroundSurfaces", "Ground Surface Reflectance Schedule", "groundSurfaceReflectanceSchedule", true, "", 0.0, 1.0},
{"SurfacePropertyIncidentSolarMultiplier", "Incident Solar Multiplier", "incidentSolarMultiplierSchedule", true, "", 0.0, 1.0},
Copy link
Collaborator

Choose a reason for hiding this comment

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

"Incident Solar Multiplier Schedule"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's a mixed bad in schedule. Sometimes you have schedule, sometimes you don't, and it doesn't matter as long as the Class.cpp file matches the ScheduleTypeRegistry. That being said generateclass.rb omits the 'Schedule' part. The GroundSurfaces one I did manually... I'll remove the 'Schedule'.

https://github.com/NREL/OpenStudio/blob/ec3644bf845a7bbd0f00983620535fe7a344c23d/developer/ruby/SubProjectClassGenerators/ModelClassGenerator.rb#L192-L202

https://github.com/NREL/OpenStudio/blob/ec3644bf845a7bbd0f00983620535fe7a344c23d/developer/ruby/SubProjectClassGenerators/ModelClassGenerator.rb#L1668-L1680

{"SurfacePropertySurroundingSurfaces", "Sky Temperature", "skyTemperatureSchedule", true, "Temperature", OptionalDouble(), OptionalDouble()},
{"SurfacePropertySurroundingSurfaces", "Ground Temperature", "groundTemperatureSchedule", true, "Temperature", OptionalDouble(),
OptionalDouble()},
{"SurfacePropertySurroundingSurfaces", "Surrounding Surface Temperature Schedule", "surroundingSurfaceTemperatureSchedule", true, "Temperature",
Copy link
Collaborator

Choose a reason for hiding this comment

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

This one was just missing from before? Nice catch.

std::vector<std::string> validAirInletConnectionTypes(definition.validAirInletConnectionTypeValues());
EXPECT_NE(std::find(validAirInletConnectionTypes.begin(), validAirInletConnectionTypes.end(), "AdjustedSupply"), validAirInletConnectionTypes.end());
EXPECT_NE(std::find(validAirInletConnectionTypes.begin(), validAirInletConnectionTypes.end(), "AdjustedSupply"),
validAirInletConnectionTypes.end());
Copy link
Collaborator

Choose a reason for hiding this comment

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

Unrelated leftover formatting.

@jmarrec jmarrec merged commit 02e9bdb into v22.2.0-IOFreeze Sep 15, 2022
@jmarrec jmarrec deleted the 4648_4654_SurfaceProperties branch September 15, 2022 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component - Model Enhancement Request IDDChange 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.

4 participants