Multiple optistruct jobs after eachother

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hello,

Can I set up some batch file in which multiple optistruct will run after eachother? As an example: Batch.bat

cd topo_v17

C:\Altairwin64\hw10.0\hwsolvers\bin\win64\optistruct.bat basis_optistruct_test_topo_V17.fem -check

cd ..

cd topo_v18

C:\Altairwin64\hw10.0\hwsolvers\bin\win64\optistruct.bat basis_optistruct_test_topo_V18.fem -check

cd ..

If I run batch.bat everthing runs fine, basis_optistruct_test_topo_V17.fem is checked. But after this check nothing happens anymore... not even the command cd ..

Is there an option somewhere or can anyone help me? Thanks in advance!

Ben

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited January 2011

    Call the solver with the DOS command 'call', i.e.

    cd topo_v17

    call C:\Altairwin64\hw10.0\hwsolvers\bin\win64\optistruct.bat basis_optistruct_test_topo_V17.fem -check

    cd ..

    cd topo_v18

    call C:\Altairwin64\hw10.0\hwsolvers\bin\win64\optistruct.bat basis_optistruct_test_topo_V18.fem -check

    cd ..

    Regards

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited January 2011

    Thanks!

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited July 2011

    Hello,

    Can I set up some batch file in which multiple optistruct will run after eachother? As an example: Batch.bat

    cd topo_v17

    C:\Altairwin64\hw10.0\hwsolvers\bin\win64\optistruct.bat basis_optistruct_test_topo_V17.fem -check

    cd ..

    cd topo_v18

    C:\Altairwin64\hw10.0\hwsolvers\bin\win64\optistruct.bat basis_optistruct_test_topo_V18.fem -check

    cd ..

    If I run batch.bat everthing runs fine, basis_optistruct_test_topo_V17.fem is checked. But after this check nothing happens anymore... not even the command cd ..

    Is there an option somewhere or can anyone help me? Thanks in advance!

    Ben

    and the other way is to use task manager:

    create every bat file into its own directory and prepare tasks for that bat file image/emoticons/default_smile.png' alt=':)' srcset='/emoticons/smile@2x.png 2x' width='20' height='20'> sometimes i use like that way