Batch command for coupled simulations

Gauthier GUDENDORFF
Gauthier GUDENDORFF New Altair Community Member
edited June 2023 in Community Q&A

Hello,

I have a simulation that need an external exe to run.

On my local machine i use the Coupling Server option from the GUI to do it.

But now i would like to run my simulations on a cluster. I know the batch command to run a simulation without an exe, but how can i say to EDEM to use the exe (or so) to run the simulations.

Best regards,

GUDENDORFF Gauthier

Tagged:

Answers

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited June 2023

    Hi Gauthier,

    We have different ways of doing this, the EDEM batch commands are detailed in this blog:

    How to use EDEM Batch Commands

    To start EDEM 'listening' for a coupling you need to include the --cs flag:

    edem -c -i mysim.dem --cs

    Then if you run another program/.exe/.so on the same server that couples to EDEM it will connect.

     

    A few points to note is that you need to run EDEM first to start it listening and it's best to give it a few seconds to open the file and start listening.  Typically I put in a ~10 s wait after the EDEM command before running another however if you are loading a large deck with particles that would need longer to open.

     

    This means you need to launch 3 commands, something like:

    start cmd /k edem -c -i mysim.dem --cs

    timeout /t 10 /nobreak

    my.exe

     

    This is a windows version that starts EDEM running in a separate command window, this is so you can then go to the next line which is a 10 s wait, then launching your .exe.


    Regards

    Stephen

     

     

  • Gauthier GUDENDORFF
    Gauthier GUDENDORFF New Altair Community Member
    edited June 2023

    Hi Gauthier,

    We have different ways of doing this, the EDEM batch commands are detailed in this blog:

    How to use EDEM Batch Commands

    To start EDEM 'listening' for a coupling you need to include the --cs flag:

    edem -c -i mysim.dem --cs

    Then if you run another program/.exe/.so on the same server that couples to EDEM it will connect.

     

    A few points to note is that you need to run EDEM first to start it listening and it's best to give it a few seconds to open the file and start listening.  Typically I put in a ~10 s wait after the EDEM command before running another however if you are loading a large deck with particles that would need longer to open.

     

    This means you need to launch 3 commands, something like:

    start cmd /k edem -c -i mysim.dem --cs

    timeout /t 10 /nobreak

    my.exe

     

    This is a windows version that starts EDEM running in a separate command window, this is so you can then go to the next line which is a 10 s wait, then launching your .exe.


    Regards

    Stephen

     

     

    Hi Stephen,

    Thanks for the quick and clear answer.

    Il will try it soon, but no reason to not work!

     

    Regards

    Gauthier