Skip to content

A bug related to OS:Schedule:File and OS:External:File with OpenStudio App #4046

@tsbyq

Description

@tsbyq

Issue overview

When exporting an OpenStudio model with OS:External:File objects to IDF with OpenStudio App, related schedule objects are not translated properly. EnergyPlus simulation with the exported IDF fails due to blank "File Name" field in the Schedule:File.

Current Behavior

The OS:Schedule:File and OS:External:File objects are not handled correctly. Two unexpected behaviors:

  1. After an OpenStudio model with OS:Schedule:File and OS:External:File objects are exported to IDF, the "File Name" of Schedule:File object is empty.
  2. When a measure is applied with "Apply Measure Now" approach and generates new schedules associated with external files, the OpenStudio simulation fails due to missing schedule:file. Please note that if the measure that generate new schedules associated with external files are added to the "Measures" tab, the simulation runs successfully.

Expected Behavior

Corresponding to the two behaviors above, the expected behaviors are:

  1. After the OSM are exported to IDF, the "Schedule:File" in the IDF should refer to the correct external file path.
  2. The OpenStudio simulation should run normally with OS:Schedule:File and OS:External:File objects generated by other measures from the "Apply Measure Now" approach.

Steps to Reproduce

Steps to reproduce the first unexpected behavior:

  1. Apply "Create DOE Prototype Building" measure to create a new model (optional if a model is already available)
  2. Apply "Occupancy Simulator" measure with the "Apply Measure Now" GUI to create stochastic occupancy schedules (with OS:External:File and OS:Schedule:File objects). This step will create time-series schedules saved in an external CSV.
  3. Export the OSM to IDF

Steps to reproduce the second unexpected behavior:

  1. Same as above
  2. Same as above
  3. Go to the Run tab, click on the start run button.

Possible Solution

Improve the generated files storing mechanism.

Details

Environment

Some additional details about your environment for this issue (if relevant):

  • Platform (Operating system, version): Windows 10 Pro
  • Version of OpenStudio (if using an intermediate build, include SHA): both (1) OpenStudio v2.9.1 and (2) OpenStudio 3.0.1 with OpenStudioApplication-1.0.0 have this issue.

Context

This issue may affect users that uses schedules associated with external files.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions