Energyplus with Julia

Hello,

I understand that Dyad provides core capabilities such as a fluid library and built-in HVAC components (e.g., heat exchangers). From an HVAC control perspective, accurately capturing the dynamic behavior of the refrigerant cycle is essential. At the same time, outdoor conditions and indoor thermal loads also vary over time, and integrating these time-varying effects seems equally important from a system-level simulation standpoint.

In the Modelica ecosystem, for example, some projects couple detailed HVAC models with EnergyPlus through FMI/FMU (such as Spawn). Given the maturity and openness of the Modelica Buildings library, this type of co-simulation framework appears to be a very powerful and practical approach.

I was wondering whether anyone has explored a similar workflow using Julia. More specifically, has anyone tried building a refrigerant cycle using a 1D finite-volume formulation at the ModelingToolkit (MTK) level, and then coupling it with EnergyPlus?

1 Like

Perhaps worth mentioning: https://energyplus.net/ appears to be open-source.

I think you should try to ask a more specific question:

  • what are you trying to achieve
  • what did you try
  • what didn’t work

to get a useful answer.

2 Likes

esp-r is also open source. It also has a good library of climate files. And if my memory serves, it has a conversion utility to convert between energyplus and esp-r climate file formats. Given that it is written in Fortran is should be callable by Julia. Also if memory serves, it includes WATSUN, a program developed by my solar prof and his students at University of Waterloo.

2 Likes

Maybe not entirely what you’re looking for. For work I use GitHub - terion-io/BOPTestAPI.jl: Julia functions for calling the BOPTEST REST API. with the BOPtest framework. This way the controller and the building simulator are independent of eachother.

1 Like

Hello. At the moment, I am not seeking a detailed methodology. My intention is simply to inquire whether there are any studies or examples where a dynamic refrigerant cycle model built in ModelingToolkit has been coupled with EnergyPlus or OpenStudio via co-simulation, effectively replacing the built-in HVAC models.

Thank you. To my understanding, EnergyPlus and OpenStudio appear to be the standard tools, so I am mainly focusing on them for now. I will also look into ESP-r.

Thank you for introducing BOPTEST. It seems useful for evaluating whole-building control logic. I’ll look into it as well.

We are currently working on a complete translation of the Modelica buildings library and will share more in the coming months.

3 Likes