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

Any Measure to change the fan coil setting?

asked 2018-01-29 20:42:47 -0500

katsuya.obara's avatar

updated 2018-01-30 18:49:35 -0500

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2018-01-30 17:41:37 -0500

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)
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

Careers

Question Tools

1 follower

Stats

Asked: 2018-01-29 20:42:47 -0500

Seen: 250 times

Last updated: Jan 30 '18