Optimisation - Re-Analysis

inasiopo
inasiopo New Altair Community Member
edited October 2020 in Community Q&A

Dear all,

 

Is there a way to automatically run OSSmooth and re-analysis with optistruct.

Basically up to now we are running an optimisation then going to hypermesh, running OSSmooth, and re-running optistruct to see what deflection we get with the optimised shape.\

Can we set that at once (maybe as a batch process) so we don't have to do the whole thing, and get optimisation + Re-analysis at once?

 

Many thanks.

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2017

    Hi @inasiopo

     

    There is no direct way to do this. 

     

    I will check if there is any script which automates this process. If not you may have to write your own script to automate the process :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20'> 

  • inasiopo
    inasiopo New Altair Community Member
    edited November 2017

    thank you.

     

    Yes it would be awsome if there is something.

     

    However, would you know how can we start an analysis (optistruct) through a tcl?? what is the command 'Start optistruct analysis 'fem.fem' '

     

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2017

    HI @inasiopo

     

    Please find the commands to run OptiStruct using command:

    <?xml version="1.0" encoding="UTF-8"?>OptiScript.PNG

  • inasiopo
    inasiopo New Altair Community Member
    edited November 2017

    and just one more...is there a way to batch run a tcl script?

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2017

    HI,

     

    Unfortunately I couldn't find any script which can automate the OSSmooth with re-analysis. 

  • inasiopo
    inasiopo New Altair Community Member
    edited November 2017

    Hello again.

    I am very new to this so please keep any answer to the simplest form.

    I am trying to set a process with a batch file. This process will call a tcl that is looking for files (fem,sh,etc..) and then returns to finish. It looks like:

    Batch --> Call tcl --> return to batch

    In my batch file I have:

    Set MyPath = C:\the path that files are in\
    And then I am calling the tcl wich is in $MyPath$\MyTcl.tcl

    That works ok up to here. But then in the tcl there are some processes that are looking for files in the same path (MyPath) and I am not sure how to use that same variable (pass the variable).

     

    TCL looks something like:

     

    *ossmooth_12 0 1 0 1 'C:\......\model.fem' 'C:\......\model.sh' .....

     

    but to make the process work we need the paths in this tcl to be variables coming from the batch. So it should look something like:

     

    *ossmooth_12 0 1 0 1 '$MyPath$\model.fem' '$MyPath$\model.sh' .....

     

    Any help on how we can set this please?

    Many thanks in advance.