First time here? Check our help page!
2

How to use "Schedule: File" object in EnergyPlus?

I am trying to use the "Schedule: File" object in energyplus. But, when I add path to locate the .csv file after running the simulation It shows me a severe error. The error is that EnergyPlus cannot locate the file.

Can someone guide me to how to provide the path of the .csv file in "Schedule: File" object?

surajtalele's avatar
205
surajtalele
asked 2018-02-16 14:02:08 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

3

The File Name input field of the Schedule:File object can either be a simple or full path. For example, if you have the IDF and CSV files saved in different folders like the following folder structure:

  • C:\Projects
    • EnergyPlus
      • project.idf
    • Schedule
      • schedule.csv

Then the input can be set to "..\Schedule\schedule.csv" for a simple path of where the CSV is saved in relation to where the IDF is saved, or "C:\Projects\Schedule\schedule.csv" for a full path to the CSV. According to the Input/Output Reference, use full path for best results.

If you have this entered correctly, then there are a few rules that could be causing you an issue:

  • File name must be <= 100 characters
  • File name must not include commas or an exclamation point
  • If using RunEPlus.bat to run EnergyPlus from the command line, a relative path or a simple file name may work if RunEPlus.bat is run from the folder that contains EnergyPlus.exe (e.g. C:\EnergyPlusv8-8-0)
Aaron Boranian's avatar
14.1k
Aaron Boranian
answered 2018-02-16 14:34:14 -0500
edit flag offensive 0 remove flag delete link

Comments

Great!! It worked.... I guess I was providing the path incorrectly!! Thank you so much Aaron....

surajtalele's avatar surajtalele (2018-02-16 15:02:04 -0500) edit

Is there any specific format, I need to add data in the .csv file?

divsood04's avatar divsood04 (2021-10-22 06:22:15 -0500) edit

@divsood04 if you define the schedule in a CSV file, there is no special formatting needed. The important thing is that values are separated by commas, which a CSV file does automatically. The important thing is making sure the Schedule:File object has inputs to account for column headers and other information to read the CSV file's data correctly for the EnergyPlus model.

Aaron Boranian's avatar Aaron Boranian (2021-10-22 08:29:36 -0500) edit
add a comment see more comments