How to generate the python script for my design

Harmony
Harmony Altair Community Member
edited September 13 in Community Q&A

Hello Community

I made a design of a motor in flux 2D and i am done with everything about the design. But i am requested to provide the python script for the design and steps used. please, is there a way to generate the python script for my design for both pre and post-processing scenarios  ?

Thank for your help

Tagged:

Answers

  • Lavanya Vadamodala_20519
    Lavanya Vadamodala_20519
    Altair Employee
    edited September 13

    Hi Harmony,

    In the ".FLU" folder of your model, you will see the "Jython log" folder under the persistent folder. In this folder, you will find Python scripts for preprocessing and postprocessing.

    You can remove the unwanted commands and combine all the scripts to obtain one script for your model.

    Thank you,

    Lavanya

  • Harmony
    Harmony Altair Community Member
    edited September 13

    Hi Harmony,

    In the ".FLU" folder of your model, you will see the "Jython log" folder under the persistent folder. In this folder, you will find Python scripts for preprocessing and postprocessing.

    You can remove the unwanted commands and combine all the scripts to obtain one script for your model.

    Thank you,

    Lavanya

    Hello 

    Thanks for your response 
    one more question 

    I have found the Python script file, but i want to know if it is possible to execute the code script by script to generate the model in flux?.. For example, someone without the design can easily use the python script to generate the model and all the test carried out. is that possible ?