Changing EDEM simulator setting without using user interface

Amir_20911
Amir_20911 Altair Community Member
edited July 2022 in Community Q&A

Hi everyone,

 

Is there a way to access simulator data and modify them with a text editor or a python code? For example, can change time step and simulation time using a text editor or a python code? 

 

Thanks

Tagged:

Best Answer

  • Stefan Pantaleev_21979
    Stefan Pantaleev_21979
    Altair Employee
    edited July 2022 Answer ✓

    Hi Amir,

     

    Now you can use HDFView to open and edit the EDEM .h5 files manually or use h5py to edit them through python but this is not a supported approach. You can expect setting functionality for many of the deck components to be available in the edempy library in the near future and this will be a supported approach.

     

    Best regards,

    Stefan 

Answers

  • Stefan Pantaleev_21979
    Stefan Pantaleev_21979
    Altair Employee
    edited July 2022 Answer ✓

    Hi Amir,

     

    Now you can use HDFView to open and edit the EDEM .h5 files manually or use h5py to edit them through python but this is not a supported approach. You can expect setting functionality for many of the deck components to be available in the edempy library in the near future and this will be a supported approach.

     

    Best regards,

    Stefan 

  • Amir_20911
    Amir_20911 Altair Community Member
    edited July 2022

    Hi Amir,

     

    Now you can use HDFView to open and edit the EDEM .h5 files manually or use h5py to edit them through python but this is not a supported approach. You can expect setting functionality for many of the deck components to be available in the edempy library in the near future and this will be a supported approach.

     

    Best regards,

    Stefan 

    thank you Stefan, looking forward to new updates. Do you have any time estimate on when these new functionalities become available?

  • Stefan Pantaleev_21979
    Stefan Pantaleev_21979
    Altair Employee
    edited July 2022

    thank you Stefan, looking forward to new updates. Do you have any time estimate on when these new functionalities become available?

    Hi Amir,

    I'll check internally and get back to you on that.

    Best regards,

    Stefan

     

  • RWood
    RWood
    Altair Employee
    edited July 2022

    Hi,

    On top of what Stefan mentions about EDEMpy, if you specifically want to change the timestep and simulation time for a particular run, you can do that now using EDEM's command line flags, though they won't be saved to the simulation settings.

    If you open a command window and type:

    edem -?

    you will see the various flags that you can use to control other areas of EDEM, particularly those in the Simulator tab. There is a tutorial on using this approach here:

    https://community.altair.com/community?id=kb_article&sysparm_article=KB0037196

    Richard

  • Amir_20911
    Amir_20911 Altair Community Member
    edited July 2022

    Hi,

    On top of what Stefan mentions about EDEMpy, if you specifically want to change the timestep and simulation time for a particular run, you can do that now using EDEM's command line flags, though they won't be saved to the simulation settings.

    If you open a command window and type:

    edem -?

    you will see the various flags that you can use to control other areas of EDEM, particularly those in the Simulator tab. There is a tutorial on using this approach here:

    https://community.altair.com/community?id=kb_article&sysparm_article=KB0037196

    Richard

    Thanks Richard! Will try it out.