Start Solver Run with graphical Interface

Merula_20758
Merula_20758 Altair Community Member
edited October 2020 in Community Q&A

Hi all,

 

I got my script to start an optistruct run with the following lines:

exec 'C:/Program Files/Altair/13.0/hwsolvers/scripts/optistruct.bat' G:/DC43Workspace/Multicopter/FEM/OpistructInput.fem &

 exec 'C:/Program Files/Altair/13.0/hwsolvers/scripts/optistruct.bat' G:/DC43Workspace/Multicopter/FEM/OpistructInput.fem &

where the second path points to the file which gets imported.

BUT: The whole process is running in the background and I can not monitor its progress. So I would like to know if there is a way to start it with the graphical interface. It is like the script behind the green button in the menu 'optistruct'.

PLUS: Is there a way to transfer parameters like -nproc 4 or -len ?

 

Thanks in advance and best regards,

 

Merula

Answers

  • tinh
    tinh Altair Community Member
    edited February 2016

    hi

    it's msdos command:

    exec cmd /K START ...optistruct.bat ....fem &

  • Merula_20758
    Merula_20758 Altair Community Member
    edited February 2016

    Hi tinh,

     

    thanks for you reply. But it did not solve my problem. First it told me: RADFLEX LICENSE PATH missing in the environment variables. After I set that up it told me that I have no license!? But it works the other way.

    Hm...maybe another way?

    Thanks in advance,

    Merula

  • Merula_20758
    Merula_20758 Altair Community Member
    edited April 2016

    bump ?

  • tinh
    tinh Altair Community Member
    edited April 2016

    Hi,

    Perhaps license setting is in hwsolver.tcl

    so running optistruc.bat directly raises that problem

     

    But you already run optistruct.bat without console, so it may be due to your license, not tcl problem.

    check it again

  • Merula_20758
    Merula_20758 Altair Community Member
    edited April 2016

    This issue was resolved by reinstalling the machine :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />

    BUT, still not quite there yet. The interface I see is attached as an image. Is there no way to get the same graphical interface when starting an analysis out of hyperworks (second image)

     

    Best regards,

    Merula

    <?xml version="1.0" encoding="UTF-8"?>old.png

    <?xml version="1.0" encoding="UTF-8"?>new.png

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited April 2016

    Maybe, ask ... Altair ?

  • tinh
    tinh Altair Community Member
    edited April 2016

    Hi,

    The solution is very clear on the second image

     

    run it by this command:

    exec [hm_info -appinfo SPECIFIEDPATH wish]  [file join [hm_info -appinfo ALTAIR_HOME] hwsolvers scripts hwsolver.tcl] -solver OS -screen {your_input_file_path.fem}

  • Merula_20758
    Merula_20758 Altair Community Member
    edited April 2016

    Seriously, how do you always know this commands.... I would have never found it!

     

    Thanks,

    Merula

  • tinh
    tinh Altair Community Member
    edited April 2016

    Hi,

    I just enter Start>All Program>Altair>13.0, right click on 'Optistruct' shortcut > Properties

    looking at 'Target' field => it is console command to invoke Optistruct GUI

    to invoke console command from tcl, use exec command

    and on your 2nd photo, to run a fem file with optistruct, add the file path at the end of console command

    ==> finally getting solution ;)/emoticons/default_wink.png' srcset='/emoticons/wink@2x.png 2x' title=';)' width='20' />

  • Merula_20758
    Merula_20758 Altair Community Member
    edited April 2016

    Hi tinh,

     

    still having troubles to understand how you came to that command.

    From optistruct properties, I can see, that hwsolver.tcl is triggered as well as the option -solver OS when starting it, but the rest is dark for me:

     

    exec [hm_info -appinfo SPECIFIEDPATH wish]  [file join [hm_info -appinfo ALTAIR_HOME] hwsolvers scripts hwsolver.tcl] -solver OS -screen {your_input_file_path.fem}

     

    exec: execute command

    [hm_info -appinfo SPECIFIEDPATH wish] : ??

     [file join [hm_info -appinfo ALTAIR_HOME] hwsolvers scripts hwsolver.tcl] : this points to the file hwsolver.tcl which is what we want to start.

    -solver OS -screen: makes sens from the properties

    {your_input_file_path.fem} : ??? I never would have guessed that

     

    Thanks for your help,

     

    Merula

     

  • tinh
    tinh Altair Community Member
    edited April 2016

    Hi,

    [hm_info -appinfo SPECIFIEDPATH wish]  ==> return path of wish.exe program, so exec will start this program

    [file join [hm_info -appinfo ALTAIR_HOME] hwsolvers scripts hwsolver.tcl]   ==> return path of hwsolver.tcl, so wish.exe will source this tcl file

    -solver OS -screen {your_input_file_path.fem} ==> args of hwsolver.tcl script, so procs inside this script will know which fem file to pass to optistruct.bat for analysis

     

    example: {your_input_file_path.fem}  :

    {C:/Users/tinh/documents/linear_static.fem}

  • Tibi_22302
    Tibi_22302 New Altair Community Member
    edited October 2020
    on Windows: <install_dir>/hwsolvers/scripts/<solver name>.bat <code class="ph codeph">-gui<br />
    on Unix: <install_dir>/altair/scripts/<solver name> -gui