bsl546 / energym

Energym is an open source building simulation library designed to test climate control and energy management strategies on buildings in a systematic and reproducible way.
Other
64 stars 11 forks source link

Obtain output csv from EnergyPlus #3

Open davidecoraci opened 3 years ago

davidecoraci commented 3 years ago

Hello everyone, firstly I wanted to congratulate you on your work as I find it very useful!

I'm writing to you because I would like to get in output from EnergyPlus a detailed csv with the results. I realized that in the idf the following statement has not been inserted for any of the building examples: "Output:Diagnostics, DisplayAdvancedReportVariables; "

I tried to manually add this, the problem is that energym goes to consider the fmu that was created for the default idf. I tried to create the fmu therefore, however without any success. I wanted to ask you if you could help me with the creation of the fmu (I get this error "Problem configuring the Visual Studio tools for command-line use ERROR from script file {utilManageCompileLink.py} Failed to create object file for source code file {...\EnergyPlusToFMU\SourceCode\v20\fmu-export-prep\fmu-export-write-model-desc.cpp}) or if you could create it starting from the idf with the possibility to print the output csv directly from energyplus.

Thanks in advance

pscharnho commented 3 years ago

Hello Davide, after the simulation, when you call the .close() method, there should be a folder (Output_EP_Export_XXX) in the Energym_runs directory, which should be created in your home directory during the first use. In this output folder is a csv with detailed results, is that the one you are looking for? If yes, is it sufficient or were you looking to have it as an output of the simulation model?

davidecoraci commented 3 years ago

Hello! Thanks for your replay. In the folder (Output_EP_Export_XXX) there are two csv, but they only show the results of the sizing calculations for the plant and for the different thermal zone loads on the typical day considered by energyplus. In order to obtain the results of the simulation in output I have found from the documentation of energyplus that it is necessary to add the command "Output:Diagnostics, DisplayAdvancedReportVariables; "

which is not present in the building idf. My need is to get a csv with the outputs that are shown in the idf as "Output:variable", which in this case are not reported. Thanks for the availability, I'm waiting for feedback.

pscharnho commented 3 years ago

Ok, that's interesting, which model are you using? I checked and saw the line you are referring to in all but the Seminarcenter and MixedUse idf (e.g. https://github.com/bsl546/energym/blob/master/simulation/energyplus/apartments/src/Apartments_heavy_pump.idf#L14618 for the Apartments building). Although it is not present in those two, I still get a csv with detailed outputs after all simulations.

davidecoraci commented 3 years ago

I was testing first SeminarCenter and then MixedUse, and in both of them this line is not present, so I was not getting a csv with detailed output as usually happens with energyplus. Could I know within these csv's that you get what variables are there?