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 2016-01-29 09:10:07 -0600

updated 2016-04-03 14:31:32 -0600

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!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2016-01-29 13:14:27 -0600

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

For example, see

edit flag offensive delete link more

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  ( 2016-01-29 14:04:55 -0600 )edit
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  ( 2016-01-29 15:51:45 -0600 )edit

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  ( 2016-02-02 11:19:56 -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

3 followers

Stats

Asked: 2016-01-29 09:10:07 -0600

Seen: 1,432 times

Last updated: Jan 29 '16