🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Reference input variable in solver input arguments

User: "Bocaj22"
Altair Community Member
Updated by Bocaj22

Hello. Is it possible to reference an input variable for the solver input arguments in the model definition? This is helpful if something cannot be done in TPL format. Right now I have a dummy text file that gets modified, then read during the execution, but I was just thinking it would be more efficient if I could skip this step. If not, I think it would be a useful feature to add.

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "Adriano_Koga"
    Altair Employee
    Updated by Adriano_Koga

    Can you elaborate more about this?

    I didn't understand what you need.

     

    For some solvers, such as OptiStruct, Radioss,etc.. you can create a parametrized file, and trasnform these parameters in design variables, by using the template .tpl.

     

    User: "Bocaj22"
    Altair Community Member
    OP
    Updated by Bocaj22

    Can you elaborate more about this?

    I didn't understand what you need.

     

    For some solvers, such as OptiStruct, Radioss,etc.. you can create a parametrized file, and trasnform these parameters in design variables, by using the template .tpl.

     

    Hi Adriano,

    Let's say I want to call hmbatch which runs a tcl script, which then takes inputs via solver arguments when called. If I want to provide an variable input to the tcl script, I believe these are the only approaches:

    • Have the tcl script open and read a tpl/text file that updates with the input variable
    • Make the tcl script a tpl file where the input variable is updated there

    Ideally, I could have the solver input arguments in the model definition reference an input variable directly, rather than one of these two roundabouts. 

    Does that make sense?