Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
1

OpenStudio AirChiller Measures & Defrost Schedules

asked 2022-07-25 23:04:29 -0500

ATAjack's avatar

updated 2022-07-26 08:28:23 -0500

I'm working on modeling a refrigerated warehouse in OpenStudio, and I'm trying to implement a RefrigerationAirChiller per this older post.

RefrigerationAirChiller.new() requires two arguments, the second of which is a schedule. What's the best way to approach inputting an appropriate defrost schedule for this object? I've tried creating a drop-down style menu but haven't had success getting the existing schedules in the model to appear.

This is my first experience with measure-writing or editing, so any help is appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2024-06-06 17:30:29 -0500

sashadf1's avatar

updated 2024-06-10 17:43:37 -0500

I used the following code to generate the defrost schedule for the air chiller object. For refrigerated warehouse a more frequent defrost schedule than typical may be required.

# Create a new defrost schedule using ScheduleCompact
defrost_schedule = OpenStudio::Model::ScheduleCompact.new(model)
defrost_schedule.setName("RefrigeratedWarehouse.idf Defrost Schedule")

# Set schedule type limits
discrete_type_limits = OpenStudio::Model::ScheduleTypeLimits.new(model)
discrete_type_limits.setName("ON/OFF")
discrete_type_limits.setLowerLimitValue(0)
discrete_type_limits.setUpperLimitValue(1)
discrete_type_limits.setNumericType("Discrete")
defrost_type_limits = discrete_type_limits
defrost_schedule.setScheduleTypeLimits(defrost_type_limits)

# Define the schedule values using Schedule:Compact format
# Defrost schedule matches AirChillerDefrostSched1 in RefrigeratedWarehouse.idf
defrost_schedule.addValue("Through: 12/31")
defrost_schedule.addValue("For: AllDays")
defrost_schedule.addValue("Until: 05:00", 0) 
defrost_schedule.addValue("Until: 05:20", 1)
defrost_schedule.addValue("Until: 22:00", 0)
defrost_schedule.addValue("Until: 22:40", 1)
defrost_schedule.addValue("Until: 24:00", 0)

# Create an air chiller using defrost_schedule above
air_chiller = OpenStudio::Model::RefrigerationAirChiller.new(model, defrost_schedule)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2022-07-25 23:04:29 -0500

Seen: 98 times

Last updated: Jun 10