Skip to content

Commit

Permalink
fix(schedule): Expose hot water schedule on Apply Room Schedules
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey authored and Chris Mackey committed Jan 10, 2023
1 parent 8a557cd commit a45347a
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 29 deletions.
4 changes: 2 additions & 2 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ coveralls==3.1.0
pytest==6.2.4
pytest-cov==2.12.0
twine==3.4.1
wheel==0.36.2
setuptools==57.0.0
wheel==0.38.1
setuptools==65.5.1
importlib-metadata==4.0.1
Binary file modified honeybee_grasshopper_energy/icon/HB Apply Room Schedules.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 13 additions & 6 deletions honeybee_grasshopper_energy/json/HB_Apply_Room_Schedules.json

Large diffs are not rendered by default.

51 changes: 30 additions & 21 deletions honeybee_grasshopper_energy/src/HB Apply Room Schedules.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,35 +31,37 @@
by an individual person in the room. If None, it will a default constant
schedule with 120 Watts per person will be used, which is typical of
awake, adult humans who are seated.
heating_setpt_sch_: A temperature schedule for the heating setpoint.
This can also be a identifier of a schedule to be looked up in the
schedule library. The type limit of this schedule should be
temperature and the values should be the temperature setpoint in
degrees Celcius.
cooling_setpt_sch_: A temperature schedule for the cooling setpoint.
This can also be a identifier of a schedule to be looked up in the
schedule library. The type limit of this schedule should be
temperature and the values should be the temperature setpoint in
degrees Celcius.
lighting_sch_: A fractional for the use of lights over the course of the year.
This can also be the identifier of a schedule to be looked up in the
schedule library.
electric_equip_sch_: A fractional for the use of electric equipment over
lighting_sch_: A fractional schedule for the use of lights over the course of
the year. This can also be the identifier of a schedule to be looked
up in the schedule library.
electric_equip_sch_: A fractional schedule for the use of electric equipment over
the course of the year. This can also be the identifier of a schedule to
be looked up in the schedule library.
gas_equip_sch_: A fractional for the use of gas equipment over
the course of the year. This can also be the identifier of a schedule to
gas_equip_sch_: A fractional schedule for the use of gas equipment over the course of
the year. This can also be the identifier of a schedule to
be looked up in the schedule library.
hot_water_sch_: A fractional schedule for the use of service hot water over
the course of the year. This can also be the identifier of a
schedule to be looked up in the schedule library.
infiltration_sch_: A fractional schedule for the infiltration over the
course of the year. This can also be the identifier of a schedule to
be looked up in the schedule library.
ventilation_sch_: An optional fractional schedule for the ventilation over the
course of the year. This can also be the identifier of a schedule to be
ventilation_sch_: A fractional schedule for the ventilation over the course of
the year. This can also be the identifier of a schedule to be
looked up in the schedule library. The fractional values will get
multiplied by the total design flow rate (determined from the fields
above and the calculation_method) to yield a complete ventilation
multiplied by the total design flow rate to yield a complete ventilation
profile. Setting this schedule to be the occupancy schedule of the
zone will mimic demand controlled ventilation.
heating_setpt_sch_: A temperature schedule for the heating setpoint.
This can also be a identifier of a schedule to be looked up in the
schedule library. The type limit of this schedule should be
temperature and the values should be the temperature setpoint in
degrees Celcius.
cooling_setpt_sch_: A temperature schedule for the cooling setpoint.
This can also be a identifier of a schedule to be looked up in the
schedule library. The type limit of this schedule should be
temperature and the values should be the temperature setpoint in
degrees Celcius.
Returns:
report: Reports, errors, warnings, etc.
Expand All @@ -68,7 +70,7 @@

ghenv.Component.Name = "HB Apply Room Schedules"
ghenv.Component.NickName = 'ApplyRoomSch'
ghenv.Component.Message = '1.5.0'
ghenv.Component.Message = '1.5.1'
ghenv.Component.Category = 'HB-Energy'
ghenv.Component.SubCategory = '2 :: Schedules'
ghenv.Component.AdditionalHelpFromDocStrings = "3"
Expand Down Expand Up @@ -190,6 +192,13 @@ def duplicate_and_id_program(program):
equip.schedule = schedule_object(longest_list(gas_equip_sch_, i))
assign_load(obj, equip, 'gas_equipment')

# assign the hot water schedule
if len(hot_water_sch_) != 0:
for i, obj in enumerate(mod_obj):
shw = dup_load(obj, 'service_hot_water', 'hot_water_sch_')
shw.schedule = schedule_object(longest_list(hot_water_sch_, i))
assign_load(obj, shw, 'service_hot_water')

# assign the infiltration schedule
if len(infiltration_sch_) != 0:
for i, obj in enumerate(mod_obj):
Expand Down
Binary file not shown.
Binary file modified samples/comfort_mapping.gh
Binary file not shown.
Binary file modified samples/shoe_box_energy_model.gh
Binary file not shown.
Binary file modified samples/single_family_energy_model.gh
Binary file not shown.

0 comments on commit a45347a

Please sign in to comment.