Jump to content
Sign in to follow this  
Merula

Start Solver Run with graphical Interface

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

This issue was resolved by reinstalling the machine :)

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

old.png

new.png

Share this post


Link to post
Share on other sites

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 likes this

Share this post


Link to post
Share on other sites

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 ;)

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites

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}

loveCAE and Merula like this

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...