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

How to quickly turn off all ideal air loads?

asked 2016-10-19 10:37:02 -0600

updated 2017-08-05 13:31:47 -0600

I have an OpenStudio 1.12 model with ideal air loads on for all the 50+ zones and would like a quick way to turn them all off. I can't roll back to an earlier saved version of the model because I have made other changes that I would lose. Within the OS application it would take a long time to uncheck every ideal air loads box, and it would take about as long in a text editor. Would it be possible to alter the existing OS measure "Enable ideal air loads for all zones" so that it would turn off ideal air loads for all zones? Or would it be better to write a new measure to search for zones with ideal air loads on and change them to off?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
7

answered 2016-10-19 11:22:05 -0600

Editing the 'Enable Ideal Air Loads' measure is probably the easiest. All it should take is changing this (lines 41-48):

thermalZones = model.getThermalZones
thermalZones.each do |zone|
  if zone.useIdealAirLoads
    startingIdealAir << zone
  else
    zone.setUseIdealAirLoads(true)
  end
end

to this:

thermalZones = model.getThermalZones
thermalZones.each do |zone|
  if zone.useIdealAirLoads
    startingIdealAir << zone
    zone.setUseIdealAirLoads(false)
  end
end
edit flag offensive delete link more

Comments

That's it. Thanks @Eric Ringold

kramerica's avatar kramerica  ( 2016-10-19 11:56:06 -0600 )edit
3

FYI - if your plan is to replace ideal air loads with a mechanical system anyway, if you add a zone to an air loop or add conditioning equipment to it, ideal air loads will automatically be set to false for that zone.

Also as a note our "Enable Economizer" and Enable Demand Controlled Ventilation" measures both have an argument that can disable vs. enable. We should probably update "Enable Ideal Air Loads" to follow this approach. We have some other things to look at on that measure before we update it.

David Goldwasser's avatar David Goldwasser  ( 2016-10-19 12:27:25 -0600 )edit

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: 2016-10-19 10:37:02 -0600

Seen: 303 times

Last updated: Oct 19 '16