Compose - Flux coupling

RokHodnik
RokHodnik Altair Community Member
edited October 2020 in Community Q&A

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

Tagged:

Answers

  • robertavarela
    robertavarela New Altair Community Member
    edited October 2020

    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=8476c03a1b2bd0908017dc61ec4bcbdd

    Regards,

     

    Roberta

     

     

  • RokHodnik
    RokHodnik Altair Community Member
    edited May 2020

    @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

  • robertavarela
    robertavarela New Altair Community Member
    edited May 2020

    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

    image.png.20bde7659a5e12b991f4178def6425df.png

     

    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:

    image.png.2541646259e0cd21be6e97168e9e875e.png

    With this, you drastically reduce the post-processing time by loading all relevant information with just a few commands.

     

    Regards,

     

    Roberta

  • L Moretti
    L Moretti New Altair Community Member
    edited May 2020

    Hello Rok,

     

    There are also APIs connecting Compose and Flux.

    You'll find some explanation in the attached document.

     

    Lorenzo

    Unable to find an attachment - read this blog

  • RokHodnik
    RokHodnik Altair Community Member
    edited May 2020

    Hello robertavarela and L Moretti,

     

    thank you very much both. Will try the suggestions in the upcoming week.

     

    Regards, 

    Rok