-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(phius-res): Update all Phius Residential Components
- Remove older Phius Multi-Family, replace with 'get' compo - Update all Residential Program components - Update installer versions
- Loading branch information
Showing
15 changed files
with
470 additions
and
56 deletions.
There are no files selected for viewing
Binary file not shown.
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
78 changes: 78 additions & 0 deletions
78
honeybee_grasshopper_ph/src/HBPH - Get Phius Multi-Family Load Data.py
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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# | ||
# Honeybee-PH: A Plugin for adding Passive-House data to LadybugTools Honeybee-Energy Models | ||
# | ||
# This component is part of the PH-Tools toolkit <https://github.com/PH-Tools>. | ||
# | ||
# Copyright (c) 2025, PH-Tools and bldgtyp, llc <[email protected]> | ||
# Honeybee-PH is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published | ||
# by the Free Software Foundation; either version 3 of the License, | ||
# or (at your option) any later version. | ||
# | ||
# Honeybee-PH is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# For a copy of the GNU General Public License | ||
# see <https://github.com/PH-Tools/honeybee_ph/blob/main/LICENSE>. | ||
# | ||
# @license GPL-3.0+ <http://spdx.org/licenses/GPL-3.0+> | ||
# | ||
""" | ||
....desc.... | ||
- | ||
EM January 28, 2025 | ||
Args: | ||
_hb_rooms: (list[Room]) | ||
Returns: | ||
""" | ||
|
||
import scriptcontext as sc | ||
import Rhino as rh | ||
import rhinoscriptsyntax as rs | ||
import ghpythonlib.components as ghc | ||
import Grasshopper as gh | ||
|
||
try: | ||
from honeybee_ph_rhino import gh_compo_io | ||
except ImportError as e: | ||
raise ImportError('\nFailed to import honeybee_ph_rhino:\n\t{}'.format(e)) | ||
|
||
try: | ||
from ph_gh_component_io import gh_io | ||
except ImportError as e: | ||
raise ImportError('\nFailed to import ph_gh_component_io:\n\t{}'.format(e)) | ||
|
||
|
||
#------------------------------------------------------------------------------- | ||
import honeybee_ph_rhino._component_info_ | ||
reload(honeybee_ph_rhino._component_info_) | ||
ghenv.Component.Name = "HBPH - Get Phius Multi-Family Load Data" | ||
DEV = honeybee_ph_rhino._component_info_.set_component_params(ghenv, dev="250128") | ||
if DEV: | ||
from honeybee_ph_rhino.gh_compo_io.program import get_phius_mf_data as gh_compo_io | ||
reload(gh_compo_io) | ||
reload(gh_io) | ||
|
||
# ------------------------------------------------------------------------------ | ||
# -- GH Interface | ||
IGH = gh_io.IGH( ghdoc, ghenv, sc, rh, rs, ghc, gh ) | ||
|
||
|
||
#------------------------------------------------------------------------------- | ||
# -- Create the new Single-Family Home Program from the Rooms | ||
gh_compo_interface = gh_compo_io.GHCompo_GetPhiusMFLoadData( | ||
IGH, | ||
_hb_rooms, | ||
) | ||
( | ||
res_data_by_story_, | ||
res_totals_, | ||
non_res_program_data_, | ||
non_res_room_data_, | ||
non_res_totals_, | ||
) = gh_compo_interface.run() |
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
Binary file added
BIN
+3.45 KB
honeybee_grasshopper_ph/user_objects/HBPH - Get Phius Multi-Family Load Data.ghuser
Binary file not shown.
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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
from honeybee_ph_rhino.gh_compo_io.program.add_elec_equip import GHCompo_AddElecEquip | ||
from honeybee_ph_rhino.gh_compo_io.program.add_process_equip import GHCompo_AddProcessEquip | ||
from honeybee_ph_rhino.gh_compo_io.program.create_elec_equip import GHCompo_CreateElecEquip | ||
from honeybee_ph_rhino.gh_compo_io.program.create_operating_period import GHCompo_CreateOccPeriod | ||
from honeybee_ph_rhino.gh_compo_io.program.create_single_family import GHCompo_CreatePHProgramSingleFamilyHome | ||
from honeybee_ph_rhino.gh_compo_io.program.create_vent_schd import GHCompo_CreateVentSched | ||
from honeybee_ph_rhino.gh_compo_io.program.find_phius_program import GHCompo_FindPhiusProgram | ||
from honeybee_ph_rhino.gh_compo_io.program.get_res_occupancy import GHCompo_GetResOccupancy | ||
from honeybee_ph_rhino.gh_compo_io.program.phius_MF_calc import GHCompo_CalcPhiusMFLoads | ||
from honeybee_ph_rhino.gh_compo_io.program.set_res_program import GHCompo_CreatePHProgramSingleFamilyHome | ||
from honeybee_ph_rhino.gh_compo_io.program.set_dwelling import GHCompo_SetDwelling | ||
from honeybee_ph_rhino.gh_compo_io.program.set_res_occupancy import GHCompo_SetResOccupancy | ||
# -- | ||
from honeybee_ph_rhino.gh_compo_io.program._deprecated_.add_elec_equip import GHCompo_AddElecEquip | ||
from honeybee_ph_rhino.gh_compo_io.program._deprecated_.phius_MF_calc import GHCompo_CalcPhiusMFLoads |
Empty file.
File renamed without changes.
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.