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

Creating (Compiling) Functional Mockup Units for co-simulation

asked 9 years ago

updated 9 years ago

Hi everyone,

I am working on a project that requires pretty complex co-simulation between energy and lighting software. I developed some tools for that in the past, but I would like to get the new technologies now.

I have been reading about Modelica and particularly FMUs. I think they are very cool and have a lot of potential, but I have not been able to find out how to compile one of those. Are any of you guys aware of tutorials or guides for this?

I would start by using them within EnergyPlus and/or OpenModelica

Thanks very much!

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 9 years ago

How to export a model as an FMU is tool specific.

For example, see

Preview: (hide)
link

Comments

Thanks very much, Michael. But what I want to do is to create an FMU from a Radiance Model ... That is, calculating the daylighting and artificial lighting levels from Solar Position, Solar Radiation and Luminaire Power.

I believe I can create a script that (1) writes a C program, (3) compiles it to create an executable that (4) would work as a block (i.e. call it with the parameters and returns illuminance levels in a scene). However, I do not know how to pack that into a FMU... is it VERY HARD? is it Possible?

gmolina's avatar gmolina  ( 9 years ago )
1

I suggest reading the FMI specification to understand the details about FMI/FMU: https://www.fmi-standard.org/download.... If you want to write your own FMU, I suggest looking at the FMUSDK webpage: http://www.qtronic.de/en/fmusdk.html. They provide some resources on how to create FMUs https://resources.qtronic.de/fmusdk/F....

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

Thanks, guys! I guess this is all the information available, and seem to be enough for me. Will inform if any of this works.

Regards

gmolina's avatar gmolina  ( 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

3 followers

Stats

Asked: 9 years ago

Seen: 1,468 times

Last updated: Jan 29 '16