🎉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

running EDEM in batch mode

User: "satri"
Altair Community Member
Updated by satri

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

Find more posts tagged with

Sort by:
1 - 9 of 91
    User: "satri"
    Altair Community Member
    OP
    Updated by satri

    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

     

    User: "Renan"
    Altair Employee
    Updated by Renan

    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

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

    image

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

    User: "Renan"
    Altair Employee
    Updated by Renan

    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

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

    image

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

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

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

    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

    User: "Renan"
    Altair Employee
    Accepted Answer
    Updated by Renan

    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

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

    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