Skip to content

Commit

Permalink
feat(building_segment): Support custom mech-room temp
Browse files Browse the repository at this point in the history
- BldgSegment component supports custom mech-room temp
- update versions
  • Loading branch information
ed-p-may committed Mar 16, 2023
1 parent 2e55393 commit 108fde3
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
Binary file modified hbph_installer.gh
Binary file not shown.
11 changes: 10 additions & 1 deletion honeybee_grasshopper_ph/src/HBPH - Bldg Segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
-
Use this before passing the honeybee-rooms on to the 'HB Model' component.
-
EM October 6, 2022
EM March 16, 2023
Args:
segment_name_: Name for the building-segment
Expand Down Expand Up @@ -69,6 +69,12 @@
winter_set_temp_: default = 20C [68F]
summer_set_temp_: default = 25C [77F]
mech_room_temp_: default = 20C [68F] Supply in cases where the HRV/ERV is located
'outside' the normal conditioned space. For instance on the roof, or in a semi-
heated outdoor space such as a garage or breezeway. For Phius Certification,
use the 'ERV_HRV_Outside Calculator' tool which can be downloaded from the
Phius website www.phius.org
Returns:
hb_rooms_: The honeyee-Rooms with building-segment information added.
Expand Down Expand Up @@ -100,6 +106,8 @@
if DEV:
reload(gh_compo_io)
reload(gh_io)
from honeybee_ph import bldg_segment
reload(bldg_segment)
from honeybee_ph_rhino.gh_compo_io import ghio_validators
reload(ghio_validators)
from honeybee_ph_rhino.gh_compo_io import building_segment as gh_compo_io
Expand All @@ -123,6 +131,7 @@
phi_certification_,
winter_set_temp_,
summer_set_temp_,
mech_room_temp_,
_hb_rooms,
)
hb_rooms_, hbph_segment = gh_compo_interface.run()
Expand Down
Binary file modified honeybee_grasshopper_ph/user_objects/HBPH - Bldg Segment.ghuser
Binary file not shown.
2 changes: 1 addition & 1 deletion honeybee_ph_rhino/_component_info_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
These are called when the component is instantiated within the Grasshopper canvas.
"""

RELEASE_VERSION = "Honeybee-PH v1.0.22"
RELEASE_VERSION = "Honeybee-PH v1.0.23"
CATEGORY = "HB-PH"
SUB_CATEGORIES = {
0: "00 | Utils",
Expand Down
11 changes: 7 additions & 4 deletions honeybee_ph_rhino/gh_compo_io/building_segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@
class _SetPoints(object):
"""Temp holder to collect and clean SetPoint user-inputs"""

winter = ghio_validators.FloatNonZero("winter", default=20.0)
summer = ghio_validators.FloatNonZero("summer", default=25.0)
winter = ghio_validators.UnitDegreeC("winter", default=20.0)
summer = ghio_validators.UnitDegreeC("summer", default=25.0)

def __init__(self, _winter, _summer):
# type: (str, str) -> None
self.winter = _winter
self.summer = _summer

Expand All @@ -61,11 +62,12 @@ class GHCompo_BuildingSegment(object):
site = ghio_validators.NotNone("site")
phius_certification = ghio_validators.NotNone("phius_certification")
phi_certification = ghio_validators.NotNone("phi_certification")
mech_room_temp = ghio_validators.UnitDegreeC("mech_room_temp", default=20.0)

def __init__(self, _IGH, _segment_name, _num_floor_levels, _num_dwelling_units, _site,
_source_energy_factors, _co2_factors,
_phius_certification, _phi_certification, _winter_set_temp, _summer_set_temp, _hb_rooms):
# type: (gh_io.IGH, str, int, int, site.Site, List, List, phius.PhiusCertification, phi.PhiCertification, float, float, List[room.Room]) -> None
_phius_certification, _phi_certification, _winter_set_temp, _summer_set_temp, _mech_room_temp, _hb_rooms):
# type: (gh_io.IGH, str, int, int, site.Site, List, List, phius.PhiusCertification, phi.PhiCertification, str, str, str, List[room.Room]) -> None
self.IGH = _IGH
self.display_name = _segment_name or '_unnamed_bldg_segment_'
self.num_floor_levels = _num_floor_levels
Expand All @@ -75,6 +77,7 @@ def __init__(self, _IGH, _segment_name, _num_floor_levels, _num_dwelling_units,
self.phi_certification = _phi_certification or phi.PhiCertification()
self.hb_rooms = _hb_rooms
self.set_points = _SetPoints(_winter_set_temp, _summer_set_temp)
self.mech_room_temp = _mech_room_temp
self.thermal_bridges = {}
self._create_tb_dict()

Expand Down

0 comments on commit 108fde3

Please sign in to comment.