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 2015-04-02 05:03:59 -0600

webb's avatar

updated 2015-11-07 13:32:10 -0600

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.

edit retag flag offensive close merge delete

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  ( 2015-04-02 12:39:40 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
5

answered 2015-04-02 09:46:21 -0600

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.

edit flag offensive delete link more

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  ( 2015-07-21 14:36:19 -0600 )edit

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  ( 2015-07-21 22:52:33 -0600 )edit

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  ( 2015-07-22 08:30:57 -0600 )edit

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: 2015-04-02 05:03:59 -0600

Seen: 19,768 times

Last updated: Apr 02 '15