lbl-srg / EnergyPlusToFMU

EnergyPlus export as a Functional Mockup Unit for co-simulation
39 stars 17 forks source link

ReadVar option at the end of the simulation #56

Open xavfa opened 3 years ago

xavfa commented 3 years ago

Hi, The reading option was bothering me as I am reading the .eso files outside the FMI process for aggregation purposes of results afterwards (and when using 30 FMUs and maybe more later, this stage was time consuming for nothing). I figured out it was in the main.c in SourceCode folder and removed the '-r' option between the lines 384 to 418 as it appears 4 times (for the weather file conditions and some other that I don't understood as not speaking C language but my guess would be that the only first could be enough), It worked fine and was wondering how I could give it as an extra option (ReadVar = True\False), it should be in line 339 of makeFMULib.py file (or just before with switching between the two main.c files (with and without '-r') but I guess there should be a smarter way within the main.c and thus in C. But this is out of my skills then... Do you think there could be a way to introduce it in C ? Thanks, Xavier

xavfa commented 3 years ago

Sorry for the double post but I have done the same modification in the main.c in order to have the messages from Eplus in a log file instead of having them printed in the active window of the FMI environment. at the end of the same lines than above I've added ">Logs.log" this way all the information given for one building are in the Output_EPExport_IdfName folder. Again, if this could be dealt inside C using options, it would be great !