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

Revision history [back]

OpenStudio measure to change the ShadingControlType

As a follow up of this (https://unmethours.com/question/23088/unable-to-find-openstudio-shading-control-setpoint/) I created an OpenStudio measure to change the ShadingControlType to one of the "unsupported" values like OnIfHighZoneAirTemperature.

The measure let me choose out of the existing ShadingControlobjects, a new ShadingControlType (String) and a new setpoint. The measure basically works when I choose a supported control type, but I can not choose one of the unsupported values. OpenStudio always resets this to OnIfHighSolarOnWindows.

Is there an implicit input validation in the OpenStudio sources?

I had a look at ShadingControl.cpp, but could not find such validation code.

As a side question: What does this line of code in setShadingControlType do?

bool result = setString(OS_ShadingControlFields::ShadingControlType, shadingControlType);

I can not find the OS_ShadingControlFields definition in the source files.

Should I go for a EnergyPlus measure to change the control type strategy?

I can share my measure if it would be helpful.

OpenStudio measure to change the ShadingControlType

As a follow up of this (https://unmethours.com/question/23088/unable-to-find-openstudio-shading-control-setpoint/) I created an OpenStudio measure to change the ShadingControlType to one of the "unsupported" values like OnIfHighZoneAirTemperature.

The measure let me choose out of the existing ShadingControlobjects, a new ShadingControlType (String) and a new setpoint. The measure basically works when I choose a supported control type, but I can not choose one of the unsupported values. OpenStudio always resets this to OnIfHighSolarOnWindows.

Is there an implicit input validation in the OpenStudio sources?

Currently I had a look at ShadingControl.cpp, but could not find such validation code. and the developer documentation.
Would it be sufficient to patch the OpenStudio.idd to contain the necessary keywords and rebuild OpenStudio?

As a side question: What does this line of code in setShadingControlType do?

bool result = setString(OS_ShadingControlFields::ShadingControlType, shadingControlType);

I can not find the OS_ShadingControlFields definition in the source files.

Should Or should I go for a EnergyPlus measure to change the control type strategy?

I can share my measure if it would be helpful.

OpenStudio measure to change the ShadingControlType

As a follow up of this (https://unmethours.com/question/23088/unable-to-find-openstudio-shading-control-setpoint/) I created an OpenStudio measure to change the ShadingControlType to one of the "unsupported" values like OnIfHighZoneAirTemperature.

The measure let me choose out of the existing ShadingControlobjects, a new ShadingControlType (String) and a new setpoint. The measure basically works when I choose a supported control type, but I can not choose one of the unsupported values. OpenStudio always resets this to OnIfHighSolarOnWindows.

Is there an implicit input validation in the OpenStudio sources?

Currently I had a look at ShadingControl.cpp and the developer documentation.
Would it be sufficient to patch the OpenStudio.idd to contain the necessary keywords and rebuild OpenStudio?

Or should I go for a EnergyPlus measure to change the control type strategy?

I can share my measure if it would be helpful.

OpenStudio measure to change the ShadingControlType

As a follow up of this (https://unmethours.com/question/23088/unable-to-find-openstudio-shading-control-setpoint/) I created an OpenStudio measure to change the ShadingControlType to one of the "unsupported" values like OnIfHighZoneAirTemperature.

The measure let me choose out of the existing ShadingControlobjects, a new ShadingControlType (String) and a new setpoint. The measure basically works when I choose a supported control type, but I can not choose one of the unsupported values. OpenStudio always resets this to OnIfHighSolarOnWindows.

Is there an implicit input validation in the OpenStudio sources?

I had a look at ShadingControl.cpp and the developer documentation.
Would it be sufficient to patch the OpenStudio.idd to contain the necessary keywords and rebuild OpenStudio?

Or should I go for a EnergyPlus measure to change the control type strategy?

I can share my measure if it would be helpful.