Multiple analysis in batch mode in OPTISTRUCT

Altair Forum User
Altair Forum User
Altair Employee
edited August 2022 in Community Q&A

Hi, 

I am using 2017.2.2 version of hyperworks. I need to run multiple files in batch mode in OPTISTRUCT. 

How do I do that? 

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited March 2018

    Hi Mayur,

     

    I will check and update you soon. 

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited March 2018

    Ok

  • PSiedlaczek
    PSiedlaczek Altair Community Member
    edited August 2022

    4y no answer ?!


    Batch HW
    https://2021.help.altair.com/2021/hwdesktop/altair_help/topics/tools/hvvh_batch_mode_r.htm
    http://www.hyperproc.com/hwhelp/2020/topics/reference/hwdref/batch_mode_run_hw_t.htm

     

    a batch file that is usefull if You still change FEM files in notepad ;)

    :: BAT FILE THAT CAN BE USED TO CALL FEM SOLVER
    @ECHO OFF

    :: Define proper paths
    set Path=%Path%;C:\Program Files\Altair\2021\hwsolvers\optistruct\bin\win64;C:\Program Files\Altair\2021\hwsolvers\common\bin\win64;C:\Program Files\Altair\2021\hwdesktop\hw\bin\win64\
    set filename=%1

    :: define proper solver
    optistruct_2021_win64  -help
    optistruct_2021_win64  %filename% -analysis

    :: POSTPROCESS
    for %%f in ("%filename%") do set filename=%%~nf
    set outfile=%filename%.out
    set spcfile=%filename%.force
    type %outfile%
    type %spcfile%  

    :: USER QUESTION FOR RUNNING HyperView
    :choice
    set /P c=Do You Want open the HW [Y/N]?
    if /I "%c%" EQU "Y" goto :some_label
    if /I "%c%" EQU "N" goto :some_else_label
    REM else repeat question
    goto :choice

    :some_label
    ::"C:\Program Files\Altair\2021\hwdesktop\hw\bin\win64\hw.exe"  
    hw.exe %filename%.h3d

    :some_else_label
    echo "I am here because you typed Y"
    pause
    exit