How to set input file in Hyperstudy for Madymo solver

Alberto Perticone
Alberto Perticone Altair Community Member
edited June 2021 in Community Q&A

Hi everyone,

I'm trying to find a way to pass input arguments into hyperstudy instead of specifying it in the script.bat for the madymo solver. In other words, I know that writing:

"-i inputfilename.xml"

in the script.bat I created for madymo execution is good enough to start the simulation properly, but it's a little bit tricky as you have to change .bat file everytime the model_name is edited. Is it feasible passing the inputfilename directly in hyperstudy in a parametrized way in order to overcome this issue? 

I know that

${filename}

is the natural way to do so, but as it doesn't work, I assume there's a need for more.

The HyperStudy User guide tells me to write down -fg <filename>.xml, but this still doesn't work.

 

Many thanks

Answers

  • Alberto Perticone
    Alberto Perticone Altair Community Member
    edited June 2021

    Just solved. I'll write it down for everyone.

    In the script.bat you can add:

    -i %*

    after the Madymo executable. Then, in HyperStudy a Solver Input Argument shall be added, as:

    ${basename m_1.file_1}

    In this way, you pass the input_name variable into the parametrized %* madymo execution request.