First time here? Check out the Help page!
1 | initial version |
I have used the openstudio-standards
implementation. 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.