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 2019-04-18 15:10:08 -0600

handi's avatar

updated 2019-04-19 14:45:06 -0600

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,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
5

answered 2019-04-18 15:52:16 -0600

updated 2019-04-18 15:57:59 -0600

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.

edit flag offensive delete link more

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 -0600 )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 -0600 )edit

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: 2019-04-18 15:09:31 -0600

Seen: 194 times

Last updated: Apr 18 '19