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

Revision history [back]

I have used the openstudio-standardsimplementation. You can create a measure (or use a ruby file, IRB). I have pasted below some code.

require 'openstudio'
require 'openstudio-standards'

model = # load the existing model somehow

template = '90.1-2016' # or whatever
standard = Standard.build(template)


hot_water_loop = model.getPlantLoopByName('Hot Water Loop').get

standard.create_central_air_source_heat_pump(model,
    hot_water_loop,
    name: nil,
    cop: 3.65)

model.save(path,true)

You can find the source code for the implementation here.