First time here? Check our help page!
2

Any Measure to change the fan coil setting?

I am modelling FCU with OS2.4.
Once I model the FCU using measure Four Pipe Fan Coil More Design Parameters, I want to change some parameter such as Availability Schedule, Capacity Control Method etc.
Since changing these parameter one by one take time, I want to find some measure. Are there any measure I can use to change these parameter based on some group such as cooling setpoint?

katsuya.obara's avatar
2.1k
katsuya.obara
asked 2018-01-29 20:42:47 -0500
mdahlhausen's avatar
9.5k
mdahlhausen
updated 2018-01-30 18:49:35 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

4

You can edit the objects directly with a ruby script or make your own measure. See the OpenStudio Measure Writing Reference. The measure testing section includes an example of how to execute OpenStudio ruby scripts directly from the Notepad++ text editor in Windows.

A short ruby script looks like this:

path = "C:/Users/name/model_directory/model.osm"
translator = OpenStudio::OSVersion::VersionTranslator.new
ospath = OpenStudio::Path.new(path)
model = translator.loadModel(ospath)
model = model.get

my_schedule = model.getScheduleByName("My Schedule").get

model.getZoneHVACFourPipeFanCoils.each do |unit|
  unit.setAvailabilitySchedule(my_schedule)
  unit.setCapacityControlMethod("CyclingFan")
  #other methods here.  See the ZoneHVACFourPipeFanCoil model object API reference
end

model.save(path,true)
mdahlhausen's avatar
9.5k
mdahlhausen
answered 2018-01-30 17:41:37 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments