Conversation
This was referenced Mar 22, 2021
834c09b to
a7bbe35
Compare
jmarrec
commented
Mar 22, 2021
Comment on lines
+1041
to
+1048
| # TODO: To be added in the next official release after: 3.1.0 | ||
| # def test_vrf_airloophvac_osm | ||
| # result = sim_test('vrf_airloophvac.osm') | ||
| # end | ||
|
|
||
| def test_vrf_airloophvac_rb | ||
| result = sim_test('vrf_airloophvac.rb') | ||
| end |
Comment on lines
+62
to
+95
| zones.each_with_index do |z, i| | ||
| if i == 0 | ||
| # First zone, we place this VRF Terminal on the main branch of the AirLoopHVAC | ||
| # The default Ctor has a fan, which we actually need here | ||
| vrf_terminal = OpenStudio::Model::ZoneHVACTerminalUnitVariableRefrigerantFlow.new(model) | ||
| vrf_terminal.addToNode(airLoop.supplyOutletNode) | ||
| vrf_terminal.setControllingZoneorThermostatLocation(z) | ||
| name_vrf_terminal(vrf_terminal, 'VRF Terminal on Main Branch') | ||
| vrf_terminal.setSupplyAirFanPlacement('DrawThrough') | ||
| vrf.addTerminal(vrf_terminal) | ||
|
|
||
| # And we add an ATU Uncontroller for this zone | ||
| atu = OpenStudio::Model::AirTerminalSingleDuctConstantVolumeNoReheat.new(model, model.alwaysOnDiscreteSchedule) | ||
| airLoop.addBranchForZone(z, atu) | ||
| else | ||
| # We add an ATU, for outside air | ||
| atu = OpenStudio::Model::AirTerminalSingleDuctConstantVolumeNoReheat.new(model, model.alwaysOnDiscreteSchedule) | ||
| airLoop.addBranchForZone(z, atu) | ||
|
|
||
| # And a regular (zonehvac) VRF terminal | ||
| vrf_terminal = OpenStudio::Model::ZoneHVACTerminalUnitVariableRefrigerantFlow.new(model) | ||
| vrf_terminal.addToThermalZone(z) | ||
| vrf_terminal.setSupplyAirFanPlacement('BlowThrough') | ||
| name_vrf_terminal(vrf_terminal, 'Regular VRF Terminal') | ||
| vrf.addTerminal(vrf_terminal) | ||
| end | ||
| end | ||
|
|
||
| # Now we also create a VRF Terminal to place onto the OutdoorAirSystem, on the OA branch (for preheat/precool) | ||
| oa_vrf_terminal = OpenStudio::Model::ZoneHVACTerminalUnitVariableRefrigerantFlow.new(model) | ||
| oa_vrf_terminal.addToNode(outdoorAirSystem.outboardOANode.get) | ||
| name_vrf_terminal(oa_vrf_terminal, 'VRF Terminal on OA System') | ||
| oa_vrf_terminal.setSupplyAirFanPlacement('DrawThrough') | ||
| vrf.addTerminal(oa_vrf_terminal) |
Contributor
Author
There was a problem hiding this comment.
Test several configurations
…PM:MixedAir for the VRF TU on OA
a7bbe35 to
fe9aa5a
Compare
…not translated) cf 1a5c1d5d8494471ddbeaa89bdf5a15428904fc1d
jmarrec
added a commit
that referenced
this pull request
May 18, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request overview
New test for the ability to connect a
ZoneHVAC:TerminalUnit:VariableRefrigerantFlowto anAirLoopHVACLink to relevant GitHub Issue(s) if appropriate: NatLabRockies/OpenStudio#4253
Link to the Linux.deb installer to use for CI Testing. If not set, it will default to latest official release.
[OpenStudio Installer]: http://openstudio-ci-builds.s3-website-us-west-2.amazonaws.com/incremental/develop/4253/OpenStudio-3.1.1-alpha%2B1a5c1d5d84-Ubuntu-18.04.deb
Related issue in eplusout.err: NatLabRockies/EnergyPlus#8640
This Pull Request is concerning:
NewTest: a new test for a new model API class,TestFix: a fix for an existing test. The GitHub issue should be referenced in the PR descriptionNewTestForExisting: a new test for an already-existing model API classOther: Something else, like maintenance of the repo, or just committing test results with a new OpenStudio version.Depending on your answer, please fill out the required section below, and delete the three others.
Leave the review checklist in place.
Case 3: New test for an already-existing model API class
This PR adds a new test for a new capabillity of ZoneHVACTerminalUnitVariableRefrigerantFlow
cf PR NatLabRockies/OpenStudio#4253
Work Checklist
The following has been checked to ensure compliance with the guidelines:
Test has been run backwards (see Instructions for Running Docker) for all OpenStudio versions: N/A: it passes only with a new feature branch
Tests pass either:
with official OpenStudio release (include version):
AddedOSMhas been added to this PRout.oswhave been committedwith current develop (incude SHA): Fix #3905 - Allow ZoneHVAC:TerminalUnit:VariableRefrigerantFlow to connect to AirLoopHVAC OpenStudio#4253
PendingOSMhas been added to this PRmodel_tests.rbhas a TODO.out.oswhave been committed as they need to be run with an official OpenStudio versionRuby test is stable in the last OpenStudio version: when run multiple times on the same machine, it produces the same total site kBTU.
model.getThermalZones.sort_by{|z| z.name.to_s}.each do ...so I am sure I put the same ZoneHVAC systems to the same zones regardless of their order)process_results.py(seepython process_results.py --helpfor usage). see https://github.com/NREL/OpenStudio-resources/pull/137/checks?check_run_id=2168085314Object has been added to
autosize_hvac.rbto ensure the autosizedXXX values methods do work: N/AReview Checklist
# TODOadded tomodel_tests.rbout.oswhave been committedautosize_hvacas appropriateNewTest,TestFix,NewTestForExisting,OtherNewTest: addPendingOSMorAddedOSM