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

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

asked 6 years ago

handi's avatar

updated 6 years ago

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,

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
5

answered 6 years ago

updated 6 years ago

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.

Preview: (hide)
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  ( 6 years ago )
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  ( 6 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 6 years ago

Seen: 204 times

Last updated: Apr 18 '19