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

sdk openstudio python WaterHeater:mixed setAmbientTemperatureIndicator

asked Dec 4

looooic's avatar

updated Dec 4

Hi,

I used the openstudio sdk in python. I create an object WaterHeater:mixed and I want to set the ambient Temperature indicator to zone with this function :

myTank.setAmbientTemperatureIndicator("Zone")

But it doesn't work. It is always set as "Schedule" in the idf or epjson result file as follow.

"WaterHeater:Mixed": { "Gas Domestical hot water Tank": { "ambient_temperature_indicator": "Schedule",

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered Dec 4

Try 'ThermalZone'

irb(main):003:0> puts OpenStudio::Model::WaterHeaterMixed::ambientTemperatureIndicatorValues
Schedule
ThermalZone
Outdoors
Preview: (hide)
link

Comments

Thank you for your quick reply, it is working. Thank you as well to put the command that show the possibility. I did not knew that.

In python it would be like this :

values = openstudio.model.WaterHeaterMixed.ambientTemperatureIndicatorValues() for value in values: print(value)

looooic's avatar looooic  ( Dec 4 )

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

Stats

Asked: Dec 4

Seen: 40 times

Last updated: Dec 04 '24