running EDEM in batch mode

satri
satri Altair Community Member
edited March 13 in Community Q&A

Hello,

I am Trying to Run EDEM on the command line as per the guidelines given on this web page

https://community.altair.com/community/en/how-to-use-edem-batch-commands?id=kb_article&sysparm_article=KB0119775&sys_kb_id=96110a261bb12190507ca6442a4bcb20&spa=1

This is the command where i am trying to run a simulation

"C:\Program Files\Altair\2022.3\EDEM\bin\edem.exe" -c -i "C:\Users\satri\Desktop\AltairEDEM\transfer2\g1t1\Fiber_share.dem" -r 5.0e-7 -w 2.0e-7 -E 0 -t 1.12754e-10 -g 2.2222 -p 4

I am getting this warning and not seeing any files being written in the folder

image

Please let me know if i am doing anything wrong here because i think i am following everything given in this help page

image

Tagged:

Best Answer

  • Renan
    Renan
    Altair Employee
    edited March 13 Answer ✓

    Hi Shyam,

    It looks like that you're running the command from C:\users\satri folder and your simulation is in the C:\Users\satri\Desktop\AltairEDEM\transfer2\g1t1\ folder. Make sure your command prompt is in the same folder as your simulation before running the batch command or specify the full path of the preference file in your api code.

    Regards,
    Renan

Answers

  • satri
    satri Altair Community Member
    edited March 13

    image

    Nothing is being written in this folder. I was hoping to get two files written after that command was executed. Please let me know. When I do this on the GUI everything works as I want, there is no logical error in my simulation

     

  • Renan
    Renan
    Altair Employee
    edited March 13

    Hi Shyam,

    It looks like you're using a custom factory model and that model is not finding Preference file 1. Make sure that the model dll and all preference files are in the same folder as your EDEM simulation. This should fix the error.

    Regards,
    Renan

  • satri
    satri Altair Community Member
    edited March 13

    image

    I have all the files required and I don't get any error when I run this using GUI

  • Renan
    Renan
    Altair Employee
    edited March 13

    Hi Shyam,

    Please run the following command and check the contents of the stderr.txt file:

    "C:\Program Files\Altair\2022.3\EDEM\bin\edem.exe" -c -i "C:\Users\satri\Desktop\AltairEDEM\transfer2\g1t1\Fiber_share.dem" -r 5.0e-7 -w 2.0e-7 -E 0 -t 1.12754e-10 -g 2.2222 -p 4 > stdout.txt 2> stderr.txt

    Regards,
    Renan

  • satri
    satri Altair Community Member
    edited March 13

    image

  • satri
    satri Altair Community Member
    edited March 13

    Besides what i do not understand is this is a warning not an error. what is preventing the simulation from running?

  • satri
    satri Altair Community Member
    edited March 13

    The above command did not give me any output.

    But This is what I get when I run it on the GUI

    image

    all the h5 files are created and the API is reading those pref files because if it would not have read I would not have seen two different meta particles

    image

  • Renan
    Renan
    Altair Employee
    edited March 13 Answer ✓

    Hi Shyam,

    It looks like that you're running the command from C:\users\satri folder and your simulation is in the C:\Users\satri\Desktop\AltairEDEM\transfer2\g1t1\ folder. Make sure your command prompt is in the same folder as your simulation before running the batch command or specify the full path of the preference file in your api code.

    Regards,
    Renan

  • satri
    satri Altair Community Member
    edited March 13

    Ohh that fixes it..i thought that won't be an issue because I am specifying the entire folder..but yeah when I switched directory it is running now. Thank you