-
Notifications
You must be signed in to change notification settings - Fork 193
EnergyPlus Version Change
Wiki ▸ EnergyPlus Version Change
-
Create new ProposedEnergy+.idd. I do this by diffing previous version idd and new version idd and copying over changes.
- Include new objects, even if you don't plan on wrapping them in model/. This is needed to be able to write an
EnergyPlusMeasure
.
- Include new objects, even if you don't plan on wrapping them in model/. This is needed to be able to write an
-
Analyze diffs in idd versions and adjust the energyplus translator as needed to write valid idf files in the new version. Changes may also be made to the OpenStudio Model classes but they must not break the existing api.
-
Version translate idf files located in openstudiocore/resources/ using the EnergyPlus version translator.
-
Run unit tests and fix things that are broken.
-
In openstudiocore/sketchup_plugin/openstudio/sketchup_plugin/lib/PluginManager.rb, update the energyplus_version method to return the latest version.
-
In CMakeLists.txt update E+ version.
-
Update src/utilities/idd/Test/IddFile_GTest.cpp version string.
-
In src/energyplus/ForwardTranslator.hpp, update
#define ENERGYPLUS_VERSION "X.Y"
. -
When field names change leave the field name unmodified in the Model API, but add a comment indicating the new name of the field in EnergyPlus. See here for example.
-
When new objects are added to EnergyPlus but not supported by OpenStudio, or new fields are added to EnergyPlus objects, a GitHub issue may optionally be opened. These issues should be prefixed "E+ 9.3.0:".
-
Run regression tests in openstudio-resources, especially model simulation tests.
The following script can be helpful to apply the E+ transition program in a non interactive script. I saved it as test.sh in the E+ products folder.
#!/bin/bash
set +e
printf "full\nyes\nno\n $1 \n" | ./Transition-V8-4-0-to-V8-5-0
mv "`echo $1 | sed 's/\.idf/\.idfnew/'`" "$1"
rm "`echo $1 | sed 's/\.idf/\.VCpErr/'`"
Run this script from the E+ build/Products folder in a developer setup. Transition exe likes the idd files right next to the exe, which is the case in a the E+ Products folder. Argument $1 should be a full path to an idf file to update.
Use find to grep for the idf files that need updating in the OS dev tree.
find /Users/kbenne/Development/OpenStudio2 -not -path "/Users/kbenne/Development/OpenStudio2/build/*" -not -path "/Users/kbenne/Development/OpenStudio2/.git/*" -name *.idf -exec ./test.sh {} \;