First time here? Check our help page!
5

How to quickly turn off all ideal air loads?

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?

kramerica's avatar
1.1k
kramerica
asked 2016-10-19 10:37:02 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2017-08-05 13:31:47 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

7

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
ericringold's avatar
10.6k
ericringold
answered 2016-10-19 11:22:05 -0500
edit flag offensive 0 remove flag delete link

Comments

That's it. Thanks @Eric Ringold

kramerica's avatar kramerica (2016-10-19 11:56:06 -0500) 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 -0500) edit
add a comment see more comments