-
Notifications
You must be signed in to change notification settings - Fork 58
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
Address test failures on master #1700
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
fbc3b54
Update references and expected test results for NECB.
lymereJ 83b7540
Fix error in `seer_to_cop_cooling` and remove all `with_fan` to be co…
lymereJ 117979e
Revert expected results changes.
lymereJ 8c21140
COP input to coils should be a "no fan" COP.
lymereJ 68bcbb2
Fix typo.
lymereJ d7fe16b
Fix typo.
lymereJ 92f52f1
Add tests.
lymereJ 42603ab
Change method names. Revert expected results.
lymereJ 842a1bf
Merge branch 'master' into failed_tests
lymereJ 38ee77d
Merge branch 'master' into failed_tests
lymereJ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -241,7 +241,7 @@ def load_hvac_map(hvac_map_file) | |
# | ||
# @param seer [Double] seasonal energy efficiency ratio (SEER) | ||
# @return [Double] Coefficient of Performance (COP) | ||
def seer_to_cop_cooling_no_fan(seer) | ||
def seer_to_cop_no_fan(seer) | ||
cop = -0.0076 * seer * seer + 0.3796 * seer | ||
|
||
return cop | ||
|
@@ -252,31 +252,31 @@ def seer_to_cop_cooling_no_fan(seer) | |
# | ||
# @param cop [Double] COP | ||
# @return [Double] Seasonal Energy Efficiency Ratio | ||
def cop_to_seer_cooling_no_fan(cop) | ||
def cop_no_fan_to_seer(cop) | ||
delta = 0.3796**2 - 4.0 * 0.0076 * cop | ||
seer = (-delta**0.5 + 0.3796) / (2.0 * 0.0076) | ||
|
||
return seer | ||
end | ||
|
||
# Convert from SEER to COP (with fan) for cooling coils | ||
# per the method specified in 90.1-2013 Appendix G | ||
# per the method specified in Thornton et al. 2011 | ||
# | ||
# @param seer [Double] seasonal energy efficiency ratio (SEER) | ||
# @return [Double] Coefficient of Performance (COP) | ||
def seer_to_cop_cooling_with_fan(seer) | ||
def seer_to_cop(seer) | ||
eer = -0.0182 * seer * seer + 1.1088 * seer | ||
cop = (eer / OpenStudio.convert(1.0, 'W', 'Btu/h').get + 0.12) / (1 - 0.12) | ||
cop = eer_to_cop(eer) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changing to straight EER to COP conversion, don't remove fan impact from metric since we don't to calculate a "cop no fan". |
||
|
||
return cop | ||
end | ||
|
||
# Convert from COP to SEER (with fan) for cooling coils | ||
# per the method specified in 90.1-2013 Appendix G | ||
# per the method specified in Thornton et al. 2011 | ||
# | ||
# @param cop [Double] Coefficient of Performance (COP) | ||
# @return [Double] seasonal energy efficiency ratio (SEER) | ||
def cop_to_seer_cooling_with_fan(cop) | ||
def cop_to_seer(cop) | ||
eer = cop_to_eer(cop) | ||
delta = 1.1088**2 - 4.0 * 0.0182 * eer | ||
seer = (1.1088 - delta**0.5) / (2.0 * 0.0182) | ||
|
@@ -304,18 +304,18 @@ def cop_heating_to_cop_heating_no_fan(coph47, capacity_w) | |
# | ||
# @param hspf [Double] heating seasonal performance factor (HSPF) | ||
# @return [Double] Coefficient of Performance (COP) | ||
def hspf_to_cop_heating_no_fan(hspf) | ||
def hspf_to_cop_no_fan(hspf) | ||
cop = -0.0296 * hspf * hspf + 0.7134 * hspf | ||
|
||
return cop | ||
end | ||
|
||
# Convert from HSPF to COP (with fan) for heat pump heating coils | ||
# @ref [References::ASHRAE9012013] Appendix G | ||
# @ref ASHRAE RP-1197 | ||
# | ||
# @param hspf [Double] heating seasonal performance factor (HSPF) | ||
# @return [Double] Coefficient of Performance (COP) | ||
def hspf_to_cop_heating_with_fan(hspf) | ||
def hspf_to_cop(hspf) | ||
cop = -0.0255 * hspf * hspf + 0.6239 * hspf | ||
|
||
return cop | ||
|
@@ -330,9 +330,9 @@ def hspf_to_cop_heating_with_fan(hspf) | |
# @return [Double] Coefficient of Performance (COP) | ||
def eer_to_cop_no_fan(eer, capacity_w = nil) | ||
if capacity_w.nil? | ||
# The PNNL Method. | ||
# From Thornton et al. 2011 | ||
# r is the ratio of supply fan power to total equipment power at the rating condition, | ||
# assumed to be 0.12 for the reference buildings per PNNL. | ||
# assumed to be 0.12 for the reference buildings per Thornton et al. 2011. | ||
r = 0.12 | ||
cop = (eer / OpenStudio.convert(1.0, 'W', 'Btu/h').get + r) / (1 - r) | ||
else | ||
|
@@ -350,11 +350,11 @@ def eer_to_cop_no_fan(eer, capacity_w = nil) | |
# | ||
# @param cop [Double] COP | ||
# @return [Double] Energy Efficiency Ratio (EER) | ||
def cop_to_eer_no_fan(cop, capacity_w = nil) | ||
def cop_no_fan_to_eer(cop, capacity_w = nil) | ||
if capacity_w.nil? | ||
# The PNNL Method. | ||
# From Thornton et al. 2011 | ||
# r is the ratio of supply fan power to total equipment power at the rating condition, | ||
# assumed to be 0.12 for the reference buildngs per PNNL. | ||
# assumed to be 0.12 for the reference buildngs per Thornton et al. 2011. | ||
r = 0.12 | ||
eer = OpenStudio.convert(1.0, 'W', 'Btu/h').get * (cop * (1 - r) - r) | ||
else | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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.
Incorrect reference.