-
Notifications
You must be signed in to change notification settings - Fork 208
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
EnergyPlus v24.2.0: add model and FT tests #5265
Conversation
Add Getters/Setters and fuelTypes test for the CHillers (they didn't have one), remove harcoding in Ctor when the IDD has a default with the same value. Implement a missing validXXXValues method for the Reformulated one
…yLTSetpointNode fails ``` Value of: ch.setHeatRecoveryLeavingTemperatureSetpointNode(hwLoop.supplyOutletNode()) Actual: false Expected: true ```
CI Results for 1fb339a:
|
@@ -49,6 +49,6 @@ TEST_F(EnergyPlusFixture, ForwardTranslator_Site) { | |||
EXPECT_EQ(0.0, idf_site.getDouble(Site_LocationFields::Longitude).get()); | |||
EXPECT_EQ(0.0, idf_site.getDouble(Site_LocationFields::TimeZone).get()); | |||
EXPECT_EQ(0.0, idf_site.getDouble(Site_LocationFields::Elevation).get()); | |||
EXPECT_EQ("Suburbs", idf_site.getString(Site_LocationFields::Terrain).get()); | |||
// EXPECT_EQ("Suburbs", idf_site.getString(Site_LocationFields::Terrain).get()); not in FT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Terrain is on the Building Objects, should test for that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment here is confusing.
But at least this is already tested here:
OpenStudio/src/energyplus/Test/Building_GTest.cpp
Lines 97 to 124 in ba1b94b
Building building = model.getUniqueModelObject<Building>(); | |
building.setName("Building"); | |
building.setNorthAxis(20); | |
building.setNominalFloortoFloorHeight(5); | |
Site site = model.getUniqueModelObject<Site>(); | |
site.setTerrain("Ocean"); | |
auto simulationControl = model.getUniqueModelObject<SimulationControl>(); | |
simulationControl.setLoadsConvergenceToleranceValue(0.2); | |
simulationControl.setTemperatureConvergenceToleranceValue(0.2); | |
simulationControl.setSolarDistribution("FullInteriorAndExteriorWithReflections"); | |
simulationControl.setMaximumNumberofWarmupDays(2); | |
ForwardTranslator forwardTranslator; | |
Workspace workspace = forwardTranslator.translateModel(model); | |
ASSERT_EQ(1u, workspace.getObjectsByType(IddObjectType::Building).size()); | |
ASSERT_EQ(1u, workspace.getObjectsByType(IddObjectType::Site_Location).size()); | |
ASSERT_EQ(1u, workspace.getObjectsByType(IddObjectType::SimulationControl).size()); | |
WorkspaceObject object = workspace.getObjectsByType(IddObjectType::Building)[0]; | |
ASSERT_TRUE(object.getString(BuildingFields::Name)); | |
EXPECT_EQ("Building", object.getString(BuildingFields::Name).get()); | |
ASSERT_TRUE(object.getDouble(BuildingFields::NorthAxis)); | |
EXPECT_EQ(20, object.getDouble(BuildingFields::NorthAxis).get()); | |
ASSERT_TRUE(object.getString(BuildingFields::Terrain)); | |
EXPECT_EQ("Ocean", object.getString(BuildingFields::Terrain).get()); |
Pull request overview
Checklist:
SizingZone
ChillerElectricEIR
ChillerElectricReformulatedEIR
Site
SizingZone
ChillerElectricEIR
ChillerElectricReformulatedEIR
Site
Pull Request Author
src/model/test
)src/energyplus/Test
)src/osversion/VersionTranslator.cpp
)Labels:
IDDChange
APIChange
Pull Request - Ready for CI
so that CI builds your PRReview Checklist
This will not be exhaustively relevant to every PR.