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

Update to EnergyPlus v23.2.0 official #4989

Merged
merged 3 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,11 @@ set(ENERGYPLUS_VERSION_MINOR 2)
set(ENERGYPLUS_VERSION_PATCH 0)
set(ENERGYPLUS_VERSION "${ENERGYPLUS_VERSION_MAJOR}.${ENERGYPLUS_VERSION_MINOR}.${ENERGYPLUS_VERSION_PATCH}")
# Build SHA is not required to have a value, but if it does OpenStudio will require this build.
set(ENERGYPLUS_BUILD_SHA "c854ba6bfe")
set(ENERGYPLUS_BUILD_SHA "7636e6b3e9")

# ENERGYPLUS_RELEASE_NAME is used to locate the E+ download
# from the github releases
set(ENERGYPLUS_RELEASE_NAME "v23.2.0-IOFreeze")
set(ENERGYPLUS_RELEASE_NAME "v23.2.0")

set(ENERGYPLUS_REPO "NREL")

Expand Down Expand Up @@ -625,25 +625,25 @@ endif()
if(UNIX)
if(APPLE)
if (ARCH MATCHES "arm64")
set(ENERGYPLUS_EXPECTED_HASH e9b7bb608d59c9d56086ce5d11675b79)
set(ENERGYPLUS_EXPECTED_HASH 918a4544793aafc32df5910c83f05f1a)
set(ENERGYPLUS_PLATFORM "Darwin-macOS12.1-arm64")
else()
set(ENERGYPLUS_EXPECTED_HASH 7d0529d830c44435ac8fef55046f3f50)
set(ENERGYPLUS_EXPECTED_HASH b8c1ee3fe45318a4575078de07cc5656)
set(ENERGYPLUS_PLATFORM "Darwin-macOS10.15-x86_64")
endif()
elseif(LSB_RELEASE_ID_SHORT MATCHES "CentOS")
# TODO: There aren't any redhat releases anymore, see PR #3145 too
set(ENERGYPLUS_EXPECTED_HASH d86b59f08e6f47ac9110a4ddf8e6cdcd)
set(ENERGYPLUS_EXPECTED_HASH 0edcf8a13c7f0e05b65e1559cb7624cd)
set(ENERGYPLUS_PLATFORM "Linux-CentOS7.9.2009-x86_64")
else()
if(LSB_RELEASE_VERSION_SHORT MATCHES "22.04")
if (ARCH MATCHES "arm64")
set(ENERGYPLUS_EXPECTED_HASH 1a440609a037316d10e590028e22baca)
set(ENERGYPLUS_EXPECTED_HASH 363c537aff1f9c664192451139a85964)
else()
set(ENERGYPLUS_EXPECTED_HASH 42983212f5c43dde01345671e228fa8c)
set(ENERGYPLUS_EXPECTED_HASH 773dc61ddb6f3dc633ac4df0bdaa3337)
endif()
elseif(LSB_RELEASE_VERSION_SHORT MATCHES "20.04")
set(ENERGYPLUS_EXPECTED_HASH 9d9ea4c05c96a7def4384cffd056e4d6)
set(ENERGYPLUS_EXPECTED_HASH b8644c02e287e3ffee89023e98ac5a13)
else() # 18.04
message(FATAL_ERROR "EnergyPlus no longer provides packages for Ubuntu 18.04")
endif()
Expand Down Expand Up @@ -679,11 +679,11 @@ elseif(WIN32)
if(CMAKE_SIZEOF_VOID_P EQUAL 8) # 64 bit
set(ENERGYPLUS_PATH "EnergyPlus-${ENERGYPLUS_VERSION}-${ENERGYPLUS_BUILD_SHA}-Windows-x86_64")
set(ENERGYPLUS_ARCH 64)
set(ENERGYPLUS_EXPECTED_HASH b70fcf8685fbc461cb245c60986ef024)
set(ENERGYPLUS_EXPECTED_HASH 7fbc694629ba6abbe400854661ebe1ae)
else()
set(ENERGYPLUS_PATH "EnergyPlus-${ENERGYPLUS_VERSION}-${ENERGYPLUS_BUILD_SHA}-Windows-i386")
set(ENERGYPLUS_ARCH 32)
set(ENERGYPLUS_EXPECTED_HASH b7ed694efe0dc4e946420f7b9421393d)
set(ENERGYPLUS_EXPECTED_HASH TODO_TDB_TODO) # TODO: not posted on the release page yet
endif()
if(EXISTS "${PROJECT_BINARY_DIR}/${ENERGYPLUS_PATH}.zip")
file(MD5 "${PROJECT_BINARY_DIR}/${ENERGYPLUS_PATH}.zip" ENERGYPLUS_HASH)
Expand Down
4 changes: 2 additions & 2 deletions resources/energyplus/ProposedEnergy+.idd
Original file line number Diff line number Diff line change
Expand Up @@ -13845,14 +13845,14 @@ ZoneEarthtube:Parameters,
\maximum 10
\default 3
N3, \field Earth Tube Dimensionless Boundary Above
\note When set to 1.0, the upper boundary is one earth tube radius below ground.
\note When set to 1.0, the total thickness of the solution space above the earth tube node is equal to the maximum vertical dimension above the earth tube.
\type real
\units dimensionless
\minimum 0.25
\maximum 1.0
\default 1.0
N4, \field Earth Tube Dimensionless Boundary Below
\note When set to 1.0, the lower boundary is one earth tube radius below the earth tube.
\note When set to 1.0, the total thickness of the solution space below the earth tube node is equal to the maximum vertical dimension above the earth tube.
\type real
\units dimensionless
\minimum 0.25
Expand Down
1 change: 1 addition & 0 deletions resources/utilities/SqlFile/1ZoneEvapCooler-V23-2-0.idf
Original file line number Diff line number Diff line change
Expand Up @@ -640,3 +640,4 @@

Output:SQLite,
SimpleAndTabular; !- Option Type

Binary file modified resources/utilities/SqlFile/1ZoneEvapCooler-V23-2-0.sql
Binary file not shown.
4 changes: 2 additions & 2 deletions resources/utilities/SqlFile/update_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fi;

# All versions you want to run
# declare -a all_versions=("8.5.0" "8.6.0" "8.7.0" "8.8.0" "8.9.0" "9.0.1" "9.1.0" "9.2.0" "9.3.0", "9.4.0", "9.5.0", "9.6.0", "22.1.0", "22.2.0", "23.1.0", "23.2.0")
declare -a all_versions=("23.2.0-IOFreeze")
declare -a all_versions=("23.2.0")

# DO NOT RERUN IF SQL ALREADY THERE
rerun_if_already_there=false
Expand Down Expand Up @@ -52,7 +52,7 @@ for ep_version in "${all_versions[@]}"; do
fi;

# If not already installed, get it from GitHub
ep_exe=$(find /usr/local/EnergyPlus-$ep_version_dash -name "energyplus")
ep_exe=$(find /usr/local/EnergyPlus-$ep_version_dash -maxdepth 1 -name "energyplus")
if [ -z "$ep_exe" ]; then

# Prefer using the tar.gz (doesn't require install via sh, which needs sudo generally speaking, and more importantly needs manual input)
Expand Down
13 changes: 4 additions & 9 deletions src/utilities/sql/Test/SqlFile_GTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,10 @@ TEST_F(SqlFileFixture, FuelTypes) {
EXPECT_NEAR(409.97, *(sqlFile3.districtCoolingTotalEndUses()), 2);
EXPECT_NEAR(378.43, *(sqlFile3.districtHeatingWaterExteriorEquipment()), 2);
EXPECT_NEAR(378.43, *(sqlFile3.districtHeatingWaterTotalEndUses()), 2);
if (energyPlusBuildSHA() == "c854ba6bfe") {
GTEST_SKIP() << "\nFIXME: Skip the checks for DistrictHeatingSteam pending new E+ package after https://github.com/NREL/EnergyPlus/pull/10212\n";
} else {
EXPECT_TRUE(false) << "Please come remove the special check now that a new E+ package is out";
EXPECT_NEAR(346.90, *(sqlFile3.districtHeatingSteamExteriorEquipment()), 2);
EXPECT_NEAR(346.90, *(sqlFile3.districtHeatingSteamTotalEndUses()), 2);
EXPECT_NEAR(725.33, *(sqlFile3.districtHeatingExteriorEquipment()), 2);
EXPECT_NEAR(725.33, *(sqlFile3.districtHeatingTotalEndUses()), 2);
}
EXPECT_NEAR(346.90, *(sqlFile3.districtHeatingSteamExteriorEquipment()), 2);
EXPECT_NEAR(346.90, *(sqlFile3.districtHeatingSteamTotalEndUses()), 2);
EXPECT_NEAR(725.33, *(sqlFile3.districtHeatingExteriorEquipment()), 2);
EXPECT_NEAR(725.33, *(sqlFile3.districtHeatingTotalEndUses()), 2);
}

TEST_F(SqlFileFixture, EnvPeriods) {
Expand Down