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

Revision history [back]

You're looking at the wrong OpenStudio class, you want to be looking at objects in the OpenStudio:model namespace for modifying OpenStudio objects. For example, here is the BoilerHotWater class and here is the method to set the curve. As you'll see, the method takes in a curve object, not a curve name. (This is better programming practice because it allows you to, e.g, subsequently change the name of the curve without breaking the relationship between the boiler and the curve.)

So you want to do:

water_unit.setNormalizedBoilerEfficiencyCurve(condensingBoilerEfficiency)

You're looking at the wrong OpenStudio class, you want to be looking at objects in the OpenStudio:model OpenStudio:model namespace for modifying OpenStudio objects. For example, here is the BoilerHotWater class and here is the method to set the curve. As you'll see, the method takes in a curve object, not a curve name. (This is better programming practice because it allows you to, e.g, subsequently change the name of the curve without breaking the relationship between the boiler and the curve.)

So you want to do:

water_unit.setNormalizedBoilerEfficiencyCurve(condensingBoilerEfficiency)

You're looking at the wrong OpenStudio class, you want to be looking at objects in the OpenStudio:model namespace for modifying OpenStudio model objects. For example, here is the BoilerHotWater class and here is the method to set the curve. As you'll see, the method takes in a curve object, not a curve name. (This is better programming practice because it allows you to, e.g, subsequently change the name of the curve without breaking the relationship between the boiler and the curve.)

So you want to do:

water_unit.setNormalizedBoilerEfficiencyCurve(condensingBoilerEfficiency)