First time here? Check out the Help page!
1 | initial version |
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)
2 | No.2 Revision |
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)
3 | No.3 Revision |
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)