1

FMU schedule example file

Have been playing around with EnergyPlusToFMU and have managed to get the example file (yShade) to work. The reason for looking into this workflow in the first place, is because I want to be able to change the occupancy's schedule real-time, by feeding it the output from another source. As there is a steep learning curve in this, I would appreciate if someone has already looked into this or is able to point me to the right direction of examples files/tutorial.

I've had a look here link text, but I was wondering if someone has an example IDF file willing to share, so I can understand the naming conventions and how things interact when trying to do this for schedules.

stef.papathan's avatar
11
stef.papathan
asked 2020-06-25 10:55:27 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2020-06-25 11:38:25 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

3

I suggest to look at the Schedule example file that comes along with EnergyPlusToFMU to see an example file that uses a Schedule object.

I also suggest to look at Section 7.1 of the user guide of EnergyplusToFMU that discusses how to set-up such object.

Last but not least, take a look at the section discussing Functional Mock-up Unit (FMU) Export in the InputOutput Reference of EnergyPlus for detailed naming conventions.

Thierry Nouidui's avatar
1.5k
Thierry Nouidui
answered 2020-06-26 03:44:51 -0500
edit flag offensive 0 remove flag delete link

Comments

Thanks for pointing me to the direction of the above. Probably should have mentioned it in my initial post, but I am planning to use FMU via PyFMI, so I can change the schedule in Python. Is there an example file compiled in Python that indicates how the code needs to be structured for an example that uses the schedule object?

stef.papathan's avatar stef.papathan (2020-06-29 04:56:54 -0500) edit

From the master algorithm point of view, EnergyPlusFMU will not be different from any other FMU. So if you know how to set the inputs of FMU, ask an FMU to perform a step simulation, and get the outputs, then you will be able to apply the same to EnergyPlusFMU. EnergyPlusFMU will expose the Schedule as an input that can be set by the master. I hence suggest to check how PyFMI works and how it is used as a master to drive FMUs.

Thierry Nouidui's avatar Thierry Nouidui (2020-06-29 05:50:33 -0500) edit

Thanks again, I managed to work out how the FunctionalMockupUnitExport:To:Schedule works and modify it via PyFMI. I've set my timestep to be per minute increments, but it seems that the schedule picks up hourly increments from the schedule I've created within Python even though it's been generated for minute increments. Is this some sort of limitation? I know that you can import minute schedules from the Schedule:File and set it to interpolate to the timestep. Can you do minute schedules though via FMU?

stef.papathan's avatar stef.papathan (2020-06-29 10:33:43 -0500) edit
add a comment see more comments