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

Revision history [back]

click to hide/show revision 1
initial version

Can Open studio generate Zonecontrol:thermostat?

In the OSM one thermostat is set with following code zone.setThermostatSetpointDualSetpoint(thermostatDualSetpoint);

, !- Illuminance Map Name , !- Group Rendering Name {638ab791-d9fe-41f6-9946-bce75374631d}, !- Thermostat Name No; !- Use Ideal Air Loads

But in the translated IDF there is no this information. No dualsetpoint. No ZoneControl:Thermostat. Does Open Studio support that?

Can Open studio generate Zonecontrol:thermostat?

In the OSM one thermostat is set with following code zone.setThermostatSetpointDualSetpoint(thermostatDualSetpoint);code

zone.setThermostatSetpointDualSetpoint(thermostatDualSetpoint);
  ,                                       !- Illuminance Map Name
  ,                                       !- Group Rendering Name
  {638ab791-d9fe-41f6-9946-bce75374631d}, !- Thermostat Name
  No;                                     !- Use Ideal Air Loads

Loads

But in the translated IDF there is no this information. No dualsetpoint. No ZoneControl:Thermostat. DualSetpoint, no ZoneControl:Thermostat. Does Open Studio support that?

Can Open studio generate Zonecontrol:thermostat?

In the OSM one thermostat is set with following code

zone.setThermostatSetpointDualSetpoint(thermostatDualSetpoint);
  ,                                       !- Illuminance Map Name
  ,                                       !- Group Rendering Name
  {638ab791-d9fe-41f6-9946-bce75374631d}, !- Thermostat Name
  No;                                     !- Use Ideal Air Loads

But in the translated IDF there is no this information. No DualSetpoint, no ZoneControl:Thermostat. Does Open Studio support that?

Can Open studio generate Zonecontrol:thermostat?

In I need to create a thermostat dualsetpoint But when I set ScheduleWeek for the OSM one thermostat ScheduleYear using C# code it's failed. After reading the source code, the problem is set with following codeit will check the assumedYear. "if (yd.assumedYear() != untilDate.assumedBaseYear()){ LOG(Error, ..."

zone.setThermostatSetpointDualSetpoint(thermostatDualSetpoint);
  ,                                       !- Illuminance Map Name
  ,                                       !- Group Rendering Name
  {638ab791-d9fe-41f6-9946-bce75374631d}, !- Thermostat Name
  No;                                     !- Use Ideal Air Loads

First question: Do I need to check the function return value each time? Open Studio does not throw exceptions? If throw where can I know what exceptions may be thrown for each function? How can I get the Open Studio log for debugging like the log in this example?

Second question: I know the assumedyear of the date is 2009. Then I set the yeardescription's assumedyear to 2009 too. The scheduleweek set successfully. Then two scheduleyears set for the OS:ThermostatSetpoint:DualSetpoint. But still no dualsetpoint and zonecontrol:thermostat in the translated IDF there is no this information. No DualSetpoint, no ZoneControl:Thermostat. Does Open Studio support that? IDF

Third question: What does assumedyear mean? Why do we check this?

Can Open studio OpenStudio generate Zonecontrol:thermostat?ZoneControl:Thermostat?

I need to create a thermostat dualsetpoint But when I set ScheduleWeek for the ScheduleYear using C# code it's failed. After reading the source code, the problem is it will check the assumedYear. "if (yd.assumedYear() != untilDate.assumedBaseYear()){ LOG(Error, ..."

First question: Do I need to check the function return value each time? Open Studio does not throw exceptions? If throw where can I know what exceptions may be thrown for each function? How can I get the Open Studio log for debugging like the log in this example?

Second question: I know the assumedyear of the date is 2009. Then I set the yeardescription's assumedyear to 2009 too. The scheduleweek set successfully. Then two scheduleyears set for the OS:ThermostatSetpoint:DualSetpoint. But still no dualsetpoint and zonecontrol:thermostat in the IDF

Third question: What does assumedyear mean? Why do we check this?

Can OpenStudio generate ZoneControl:Thermostat?

I need to create a thermostat dualsetpoint But when I set ScheduleWeek for the ScheduleYear using C# code it's failed. After reading the source code, the problem is it will check the assumedYear. "if (yd.assumedYear() != untilDate.assumedBaseYear()){ LOG(Error, ..."

First question: Do I need to check the function return value each time? Open Studio does not throw exceptions? If throw where can I know what exceptions may be thrown for each function? How can I get the Open Studio log for debugging like the log in this example?

Second question: I know the assumedyear of the date is 2009. Then I set the yeardescription's assumedyear to 2009 too. The scheduleweek set successfully. Then two scheduleyears set for the OS:ThermostatSetpoint:DualSetpoint. But still no dualsetpoint and zonecontrol:thermostat in the IDF

Third question: What does assumedyear mean? Why do we check this?