5

How to adjust Thermostat Tolerance value on the AvailabilityManager:NightCycle object

Hi Everyone, I am trying to write a measure to adjust Thermostat Tolerance {deltaC} for all- or selected AvailabilityManager:NightCycleobjects in an OS model. That brings up another question: is any available method to call the objects, something like model.<method name>? Thanks,

handi's avatar
115
handi
asked 2019-04-18 15:10:08 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2019-04-19 14:45:06 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

5

You can use the setThermostatTolerance method to change the thermostatTolerance parameter.

You can refer to the SDK for more details on the available methods for a given class here.

As for how to call an object, you can, for example, create an array with all of the available objects of a certain class that exists in your model. If you want to get all the AvailabilityManagerNightCycle objects in your model, you could define the run method to do

array = model.getAvailabilityManagerNightCycles

Note that you need to use the name of the classes in the Openstudio SDK, not the name displayed in the GUI or the name in the Energyplus I/O reference.

Luis Lara's avatar
2.1k
Luis Lara
answered 2019-04-18 15:52:16 -0500, updated 2019-04-18 15:57:59 -0500
edit flag offensive 0 remove flag delete link

Comments

Thank you very much. I have my new measure working now. Also, where did you find the method getAvailabilityManagerNightCycles or like a more commonly-used method, getBuilding, on Openstudio SDK? Is there any list for all the methods for model? Thanks,

handi's avatar handi (2019-04-18 18:13:33 -0500) edit
2

No worries, make sure to mark the answer as correct. the getModelObjects method is a template parameter from the model object. Find the list of other template parameters in the SDK (here)

Luis Lara's avatar Luis Lara (2019-04-18 18:48:51 -0500) edit
add a comment see more comments