Thermal Bridging & Derating (or TBD) is an OpenStudio Measure that first autodetects major thermal bridges (like balconies, parapets and corners) in an OpenStudio model (.osm), and then derates outside-facing, opaque surface constructions (walls, roofs and exposed floors). It interacts with the OpenStudio SDK and relies on AutomaticMagic's Topolys gem, as well as rd2's OSut gem.
This repository houses the numerous automated TBD tests developed over time, in an effort to lighten TBD as a Ruby gem. TBD and its dependencies are pulled-in automatically, before launching both TBD gem and OpenStudio measure RSpec tests.
With each new TBD feature, a decision is made whether to host new RSpec tests here or on TBD's original repository, where - as a general rule - only basic tests are hosted. Bugs or new feature requests for TBD should be submitted here, while those more closely linked to Topolys or OSut should be submitted here or here, respectively.
The instructions in this section are for those wanting to explore/tweak a cloned/forked version of these tests. We suggest following the same, original OpenStudio installation instructions described here.
Run the following (basic) tests in the root repository:
bundle update (or 'bundle install')
bundle exec rake
For more extensive testing, run the following test suites (also in the root repository):
bundle update (or 'bundle install')
bundle exec rake osm_suite:clean
bundle exec rake osm_suite:run
bundle exec rake prototype_suite:clean
bundle exec rake prototype_suite:run
Or run all test suites:
bundle update (or 'bundle install')
bundle exec rake suites_clean
bundle exec rake suites_run
Install Docker.
Pull the OpenStudio v3.6.1 Docker image:
docker pull nrel/openstudio:3.6.1
In the root repository:
docker run --name test --rm -d -t -v ${PWD}:/work -w /work nrel/openstudio:3.6.1
docker exec -t test bundle update
docker exec -t test bundle exec rake
docker kill test