Eomys / pyleecan

Electrical engineering open-source software providing a user-friendly, unified, flexible simulation framework for the multiphysic design and optimization of electrical machines and drives
https://www.pyleecan.org
Apache License 2.0
153 stars 127 forks source link

[NF] Coupling with Altair Flux #223

Open EmileDvs opened 3 years ago

EmileDvs commented 3 years ago

Hello,

I am opening this issue to start discussion around Altair Flux coupling:

-What would be the objectives of the coupling (import results from Flux, build models in Flux, launch simulations etc.)?

-Is there already any Python package that we could use to interface with Flux? We already did some functions a while ago to build geometry in Flux and that we can provide to anyone who is willing to contribute.

-How could we implement the Flux coupling eventually?

Best regards, Emile

Sijie-NI commented 3 years ago

Hello Emile,

It is an interesting project. In Altair Flux Forum, their engineer shared some documentations about coupling Altair Flux and Python as follows: Altair_Memento_python_GB-v2.1.pdf Altair_Memento_pyFlux_GB-v2.2.pdf My suggestion: don't focus on these tutorials, Flux can help you to save automatically all GUI operations as PyFlux log. You only need to do what you want once on the Flux GUI to get the complete PyFlux script code, which saves time.

If I understand well, Altair allows using "Python code" to operate Flux object. That means you can program Python scripts (it is called PyFlux) in Altair Flux window. But it is impossible to drive Flux in Python IDE. If you want to operate Flux with python code, you have to launch Flux and charge your own PyFlux script.

Best regards,

Sijie