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

DanV's profile - activity

2023-09-01 14:07:43 -0500 marked best answer Solar Hot Water with Open Studio measure

I am trying to create an OpenStudio measure the incorporates a solar hot water collector into a plant loop. I can create a new SolarCollectorFlatPlateWater object but cannot create a SolarCollectorPerformanceFlatPlate object.

Within measure.rb:

def run(model, runner, user_arguments)
  super(model, runner, user_arguments)  # Do **NOT** remove this line
  new_collector = OpenStudio::Model::SolarCollectorFlatPlateWater.new(model)
  new_collector_perf = OpenStudio::Model::SolarCollectorPerformanceFlatPlate.new(model)

This produces the following error in Ruby:

Error: allocator undefined for OpenStudio::Model::SolarCollectorPerformanceFlatPlate

Is there another way to create a SolarCollectorPerformanceFlatPlate object in an open studio measure?

2023-09-01 13:42:47 -0500 commented answer Solar Hot Water with Open Studio measure

That fixed it. I also was able to use your code to do most of what I was planning to do. Thank you!

2023-08-18 16:47:45 -0500 received badge  Student (source)
2023-08-18 16:43:40 -0500 commented question Solar Hot Water with Open Studio measure

I can't seem to get the code to look right. There are several lines that are all shown together but are separate lines.

2023-08-18 16:43:35 -0500 asked a question Solar Hot Water with Open Studio measure

Solar Hot Water with Open Studio measure I am trying to create an OpenStudio measure the incorporates a solar hot water