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-07 12:54:14 -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.

note: generative A.I. was used to inform this code.

#create a defrost_schedule using ScheduleRuleset
defrost_schedule = OpenStudio::Model::ScheduleRuleset.new(model)
defrost_schedule.setName("Frequent Defrost Schedule")
default_day = defrost_schedule.defaultDaySchedule
default_day.setName("Default Day Schedule")

# Define hourly values for the default day with six defrost cycles per day # Each cycle lasts for 30 minutes and occurs every 4 hours default_day.addValue(OpenStudio::Time.new(0, 0, 0, 0), 0.0) # Start with no defrost default_day.addValue(OpenStudio::Time.new(0, 0, 30, 0), 1.0) # Defrost from 12:00 AM to 12:30 AM default_day.addValue(OpenStudio::Time.new(0, 4, 0, 0), 0.0) # No defrost from 12:30 AM to 4:00 AM default_day.addValue(OpenStudio::Time.new(0, 4, 30, 0), 1.0) # Defrost from 4:00 AM to 4:30 AM default_day.addValue(OpenStudio::Time.new(0, 8, 0, 0), 0.0) # No defrost from 4:30 AM to 8:00 AM default_day.addValue(OpenStudio::Time.new(0, 8, 30, 0), 1.0) # Defrost from 8:00 AM to 8:30 AM default_day.addValue(OpenStudio::Time.new(0, 12, 0, 0), 0.0) # No defrost from 8:30 AM to 12:00 PM default_day.addValue(OpenStudio::Time.new(0, 12, 30, 0), 1.0) # Defrost from 12:00 PM to 12:30 PM default_day.addValue(OpenStudio::Time.new(0, 16, 0, 0), 0.0) # No defrost from 12:30 PM to 4:00 PM default_day.addValue(OpenStudio::Time.new(0, 16, 30, 0), 1.0) # Defrost from 4:00 PM to 4:30 PM default_day.addValue(OpenStudio::Time.new(0, 20, 0, 0), 0.0) # No defrost from 4:30 PM to 8:00 PM default_day.addValue(OpenStudio::Time.new(0, 20, 30, 0), 1.0) # Defrost from 8:00 PM to 8:30 PM default_day.addValue(OpenStudio::Time.new(0, 24, 0, 0), 0.0) # No defrost from 8:30 PM to 12:00 AM

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: 78 times

Last updated: yesterday