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

Is a .csv output file created when running EP in python plugin mode?

asked 2020-10-17 15:55:50 -0500

sajithwjay gravatar image

I am running the python EnergyPlus plugin option to run PythonPluginCustomSchedule.idf example file provided in the energyplus 9.4 packages. Although Output: Variable object is populated in the idf there is no .csv file of the outputs created. Is there a way to enable that or is this option still not available?

I came across this concern when running energyplus in Eppy as well.

Kind regards,

edit retag flag offensive close merge delete

Comments

1

@sajithwjay are you running this example IDF in EP-Launch, or through the EnergyPlus command line or a similar batch file process?

Aaron Boranian gravatar imageAaron Boranian ( 2020-10-18 12:20:42 -0500 )edit

I am running through the Windows command prompt

sajithwjay gravatar imagesajithwjay ( 2020-10-20 23:56:15 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-10-21 09:33:19 -0500

If you are running any IDF by hand through the Windows command prompt, Mac terminal, etc. then you are using the EnergyPlus command line interface. In order to generate the .csv output file using this approach, you want to include the -r or --readvars option that will run the ReadVarsESO utility than converts the ESO output file and its contents of output variables and/or meters into CSV format. An example is shown below:

image description

If you were using EP-Launch to simulate an IDF, it always runs the ReadVarsESO utility by default.

As an alternative, you could add the OutputControl:Files object to the example file you're simulating. This is a new object that was added to EnergyPlus in v9.4 which allows you to apply "Yes/No" settings for what output files the simulation should generate. This object is not defined in the example file you're simulating, so all of these fields are set to their default of "No".

The first input field of this OutputControl:Files object for the CSV file specifically uses a new EnergyPlus feature in v9.4 that natively generates the CSV output file without using the ReadVarsESO utility. From source code testing in the Github pull request that I linked to, this approach reduces the time spent writint outputs to the CSV file for runs that generate a large number of output variables and/or meters compared to using ReadVarsESO.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

 

Question Tools

1 follower

Stats

Asked: 2020-10-17 15:55:50 -0500

Seen: 149 times

Last updated: 19 hours ago