Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New user clarifications #17

Open
burgreen opened this issue Mar 24, 2023 · 1 comment
Open

New user clarifications #17

burgreen opened this issue Mar 24, 2023 · 1 comment

Comments

@burgreen
Copy link

burgreen commented Mar 24, 2023

Hi Henning,

First off, thank you for writing and sharing this useful git repository. I have some newbie questions.

  1. How were your *.fmu files created?
  2. Can you clarify a bit the communication data flow between the FMU and FOAM?

Regards,
Greg

@HenningScheufler
Copy link
Collaborator

  1. the fmu files were created with openmodelica you find the generation script here:testsuite/test-TempControlFlange/FMUGen.mos

  2. In the case that OpenFOAM runs the FMU (https://github.com/DLR-RY/FMU4FOAM/tree/master/examples/TempControlFlange)

OpenFOAM starts a python interpreter that executes the specified file in the controlDict

FMUSimulator
{
    type            FMUSimulator;
    libs            (pyFMUSim);
    pyClassName     controlledTemperature; <---
    pyFileName      controlledTemperature; <---
}

The data is then exchange via json (details see):

https://github.com/DLR-RY/FMU4FOAM/blob/master/src/OF_FMU/pyFMUSim/FMUSimulator.C

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants