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 2024-12-04 09:16:55 -0600

looooic's avatar

updated 2024-12-04 10:45:39 -0600

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",

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2024-12-04 10:45:09 -0600

Try 'ThermalZone'

irb(main):003:0> puts OpenStudio::Model::WaterHeaterMixed::ambientTemperatureIndicatorValues
Schedule
ThermalZone
Outdoors
edit flag offensive delete link more

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  ( 2024-12-04 15:52:12 -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

Stats

Asked: 2024-12-04 09:16:55 -0600

Seen: 37 times

Last updated: Dec 04