Compose - Flux coupling
Hello!
I'm working on a project where I would need to couple Altair Compose with Flux.
I would like to set up parameters and feed them in Flux and import results back in to Compose for post processing.
Where can I access the commands library with definitions for such coupling of Compose and Flux?
Thanks.
Best regards,
Rok Hodnik
Answers
-
Rok,
The most appropriate coupling in this case would be with Activate, our system simulation tool that allows co-simulation with Flux. One example can be seen here at
https://community.altair.com/community?id=community_question&sys_id=8476c03a1b2bd0908017dc61ec4bcbddRegards,
Roberta
0 -
@robertavarela thank you for your reply. I was looking for something language wise rather than block diagrams due to ease of use.
I know that Altair Flux can be run using python commands or using Matlab.
So I am looking for a list of available commands (if it exists).
Thanks.
Best regards,
Rok Hodnik
0 -
Rok,
I see now what you mean. I suggest the following steps then:
1) Use Compose and its OML Math functions to create whatever inputs you need in Flux: as Flux has a native interface with Python, these arguments could be simply written in a .py file that can be loaded in Flux
2) Create a batch file in Compose calling Flux and passing these parameters: the executable is located at C:\Program Files\Altair\<your_version>\flux\Flux and you can pass a .py file as an extra argument
3) Post-process the results once the simulation is finished using Compose: Flux may output .h3d format that is natively understood by Compose with functions such as readcae. If you have questions about how to import the results, you can load your .h3d file in readvectorbuilder and see how the entities were written:
With this, you drastically reduce the post-processing time by loading all relevant information with just a few commands.
Regards,
Roberta
0 -
Hello Rok,
There are also APIs connecting Compose and Flux.
You'll find some explanation in the attached document.
Lorenzo
0 -
Hello robertavarela and L Moretti,
thank you very much both. Will try the suggestions in the upcoming week.
Regards,
Rok
0