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

linkin OpenModelica via IDF

asked 10 years ago

webb's avatar

updated 9 years ago

I am designing / modelling new energy production hardware using OpenModelica.

I am modelling hydraulics --> electricity, electrolysis --> hydrogen, hydrogen --> electricity vis a turbine.

The hydraulics is affected by the physical location on water because it uses wave energy.

I would like to loop my system with buildings modelled so I can really see the real feedback loops. Although its not relevant to this firm, I will then be able to optimise the energy device for real world usage patterns. I can also employ particle swarm optimisation to improve the performance of the local and global system. I include this because it has relevance to the Autotune project at the DOE.

I noticed that the OpenModelica system uses IDF file format

  1. Is EnergyPlus using some aspects / architectural patterns of OpenModelica?

  2. How can I link my new hardware into EnergyPlus to create an integrated system, where the solver and the equilibrium flows through both as a closed loop system.

I am happy to develop code and contribute code if needed.

Perhaps some links to bring some sunlight on this area will help.

Preview: (hide)

Comments

Have you thought about using co-simulation to link your Modelica model with a building model simulated using Energyplus?

Thierry Nouidui's avatar Thierry Nouidui  ( 10 years ago )

1 Answer

Sort by » oldest newest most voted
5

answered 10 years ago

The idf format of OpenModelica is not related to the idf of EnergyPlus. However, there are a few ways to couple EnergyPlus with Modelica.

  1. You could export EnergyPlus (in your case I believe the building model) as an FMU for co-simulation and import in a Modelica tool. See http://simulationresearch.lbl.gov/fmu...
  2. You could export the Modelica model as an FMU for co-simulation, and import it into EnergyPlus. See http://apps1.eere.energy.gov/building...applicationguide.pdf
  3. You could link Modelica and EnergyPlus to the Building Controls Virtual Test Bed. For EnergyPlus, you could use an FMU (see 1) or its ExternalInterface with the Simulator actor of the BCVTB, see http://simulationresearch.lbl.gov/bcv.... For Modelica, you could again use an FMU or the Modelica BCVTB interface, see http://simulationresearch.lbl.gov/mod...UtilitiesIO_BCVTB.html

Note that the FMU support of OpenModelica still has a few gaps, as does its coverage of the Modelica language. Hence, the above tool chain has been tested with Dymola but not extensively with OpenModelica yet.

Preview: (hide)
link

Comments

your 3 suggestion is based on openmodelica or dymola. I am trying my luck with openmodelica. But I think BVCTB only supports dymola at this point. and workaround?

rkbest's avatar rkbest  ( 9 years ago )

In the BCVTB, the files that are specific to Dymola are bin/runDymola.sh (which is called by the Simulator actor) and the .mos file, such as examples/dymola-room/simulateAndExit.mos which is the Dymola script. If you adapt these two files, the examples should also work with OpenModelica. I suggest you start with examples/dymola-room

Michael Wetter's avatar Michael Wetter  ( 9 years ago )

Thanks @micheal wetter, but I have no experience with openmodelica or dymola. I am trying to evaluate these tools over matlab+simulink. Do you have any tutorial and examples on adapting the dymola code on openmodelica?

rkbest's avatar rkbest  ( 9 years ago )

Your Answer

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

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 10 years ago

Seen: 19,786 times

Last updated: Apr 02 '15