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

Revision history [back]

It seems that calling setFixedEfficiency and setEfficiencySchedulewill automatically switch the conversionEfficiencyInputMode to Fixed and Scheduled respectively.

performance is my OpenStudio::Model::PhotovoltaicPerformanceSimple

In [1]: puts performance
Out[1]:
OS:PhotovoltaicPerformance:Simple,
  {4031fe67-2794-4fbc-ab61-891fb8b6216f}, !- Handle
  Photovoltaic Performance Simple 1,      !- Name
  0.85,                                   !- Fraction of Surface Area with Active Solar Cells
  Fixed,                                  !- Conversion Efficiency Input Mode
  0.2,                                    !- Value for Cell Efficiency if Fixed
  ;                                       !- Efficiency Schedule Name

 In [2]:  performance.setEfficiencySchedule(schedule)
 Out[2]: ==> nil

 In [3]: puts performance
 Out[3]:
 OS:PhotovoltaicPerformance:Simple,
  {4031fe67-2794-4fbc-ab61-891fb8b6216f}, !- Handle
  Photovoltaic Performance Simple 1,      !- Name
  0.85,                                   !- Fraction of Surface Area with Active Solar Cells
  Scheduled,                              !- Conversion Efficiency Input Mode
  0.2,                                    !- Value for Cell Efficiency if Fixed
  {9fe66c83-b05c-43c4-8cf9-1397a38be653}; !- Efficiency Schedule Name

It seems that calling setFixedEfficiency and setEfficiencySchedule will automatically switch the conversionEfficiencyInputMode to Fixed and Scheduled respectively.

performance is my OpenStudio::Model::PhotovoltaicPerformanceSimple

In [1]: puts performance
Out[1]:
OS:PhotovoltaicPerformance:Simple,
  {4031fe67-2794-4fbc-ab61-891fb8b6216f}, !- Handle
  Photovoltaic Performance Simple 1,      !- Name
  0.85,                                   !- Fraction of Surface Area with Active Solar Cells
  Fixed,                                  !- Conversion Efficiency Input Mode
  0.2,                                    !- Value for Cell Efficiency if Fixed
  ;                                       !- Efficiency Schedule Name

 In [2]:  performance.setEfficiencySchedule(schedule)
 Out[2]: ==> nil

 In [3]: puts performance
 Out[3]:
 OS:PhotovoltaicPerformance:Simple,
  {4031fe67-2794-4fbc-ab61-891fb8b6216f}, !- Handle
  Photovoltaic Performance Simple 1,      !- Name
  0.85,                                   !- Fraction of Surface Area with Active Solar Cells
  Scheduled,                              !- Conversion Efficiency Input Mode
  0.2,                                    !- Value for Cell Efficiency if Fixed
  {9fe66c83-b05c-43c4-8cf9-1397a38be653}; !- Efficiency Schedule Name