Jump to content
Sign in to follow this  
Bachelor22

Starting a Solver automatically

Recommended Posts

Hey guys,

 

is it somehow possible to start and execute an OptiStruct Solver Run automatically by a .tcl command or script?

The aim of this is to create the .h3d-File and .res-File automatically without pressing any buttons.

 

I'm working with the 2017.2 student version of HyperWorks.

 

Kind regards and thanks in advance,

Simon

Share this post


Link to post
Share on other sites

Hey tinh,

 

I've checked the other topic, but an error is still occuring.

 

This is the part of my code where I'm trying to run the simulation:

*createstringarray 1 "CONNECTORS_SKIP "
hm_answernext yes
*feoutputwithdata "C:/Program Files/Altair/2017.2-edu/templates/feoutput/optistruct/optistruct" "C:/Users/Simon/Desktop/CAO/test.fem" 1 0 2 1 1
exec "C:/Program Files /Altair/2017.2-edu/hwsolvers/scripts/optistruct.bat" "C:/Users/Simon/Desktop/CAO/test.fem" -analysis
*writeh3dwithoptions "C:/Users/Simon/Desktop/CAO/test.h3d" 1 4

 

The test.fem is written and saved into the desired folder, but an error is occuring in the next line.

Error_1.PNG.8183b7098c30754f0a2f9241f599185d.PNG

Could you help me out there? I'm using Windows 10.

 

Besides, I'm aiming for writing a .res-file. Do you know how this works?

 

Kind regards and thanks in advance,

Simon

 

Share this post


Link to post
Share on other sites

As you can see on the screenshot, this is the path indicated by windows.

Path_OptiStruct.png.d20473a13dad7e99911fac1f61d9bcca.png

I improved my code to:

*createstringarray 1 "CONNECTORS_SKIP "
hm_answernext yes
*feoutputwithdata "C:/Program Files/Altair/2017.2-edu/templates/feoutput/optistruct/optistruct" "C:/Users/Simon/Desktop/CAO/test.fem" 1 0 2 1 1
"C:/Program Files /Altair/2017.2-edu/hwsolvers/scripts/optistruct.bat" "C:/Users/Simon/Desktop/CAO/test.fem" -analysis

 

Now an error is occuring saying that the last line is an invalid command name.

 

 

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...