Run OptiStruct in batch mode

FabioC
FabioC Altair Community Member
edited April 2022 in Community Q&A

Good morning

 

I use Optistruct for topology optimization.

Since I need to do everything automatically, I have created a Tcl  script which gives me back  the *.hm and *.fem files.

I have tested the script manually and it works!

 

The next step is to use a batch file to run the optimization. In the batch file I use the following commands:

 

hmbatch  -b  -tcl  osmacro.tcl   (this line to run the Tcl macro)

 

optistruct_14.0_win64   macro.fem   -analysis  (this line to run the analysis)

 

It runs the analysis, I get the *.h3d file. But I am not able to understand how to run the optimization.

Could you please help me?

 

Thanks

Fabio

Answers

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited February 2018

    Just run :   

     

    optistruct -help 

     

    to get help informations about command line options:  

    Unable to find an attachment - read this blog

  • FabioC
    FabioC Altair Community Member
    edited February 2018

    Thanks for your answer!

    I have performed the optimization with the following line:

     

    optistruct_14.0_win64   macro.fem   -license=OPT

     

    instead of using -analysis

     

    Regards

  • Adeline War_20893
    Adeline War_20893 Altair Community Member
    edited April 2022

    @FabioC Can you please send me your email address?

  • Adeline War_20893
    Adeline War_20893 Altair Community Member
    edited April 2022
    FabioC said:

    Thanks for your answer!

    I have performed the optimization with the following line:

     

    optistruct_14.0_win64   macro.fem   -license=OPT

     

    instead of using -analysis

     

    Regards

    Can you please tell me if you wrote the code "hmbatch -tcl" in Matlab and the "optistruct.bat" -.fem

    in the tcl file of hypermesh to call the .fem file?