Unable to run edem in batch mode in Linux

satri
satri Altair Community Member
edited April 1 in Community Q&A

Hey this command worked for me in Windows

"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

I am trying to do a similar thing on a linux machine and 

export ALTAIR_LICENSE_PATH=6200@aaaa.aaa.aaaa.aaa (this command is correct as i am able to open GUI with this)

but i cant get batch mode to work with this command bellow

/path/altair/EDEM/bin/edem -c -i /share/path/satri/simulationFileEDEM/Fiber_share.dem -r 5.0e-8 -w 1.0e-8 -E 0 -t 1.12754e-10 -g 2.2222 -p 2 > out.txt 2> err.txt

is the command structure different fo linux? or what is the error here i don't get any output or any error message...so i don't know how to even fix this

 

 

 

 

Tagged:

Answers

  • Richard Wood_20774
    Richard Wood_20774
    Altair Employee
    edited April 1

    Hi,

    The command looks fine at first glance.

    Two things, one you're piping to out.txt. Have you checked this file to make sure it hasn't actually run? All your output is going to go there and not to the terminal.

    Second, you don't have the -R flag, so you aren't rewinding the deck. If the deck has already reached the end time (5.0e-8) then nothing will happen.

    Cheers,

    Richard

  • satri
    satri Altair Community Member
    edited April 1
    I have checked both out and err file both are empty,.. which means the simulation is not running
  • Richard Wood_20774
    Richard Wood_20774
    Altair Employee
    edited April 1

    What is the actual command you are typing, not just pseudocode? Or is that the real command and those are the real paths?

  • satri
    satri Altair Community Member
    edited April 1

    I have given you the exact command I am using.

    I am using the word "path" because if I give the entire path it might be difficult to read. Rest assured I am not making mistakes on the path.

    so when i opened the GUI i had to use this command of 

    export ALTAIR_LICENSE_PATH=6200@aaaa.aaa.aaaa.aaa (this command is correct as i am able to open GUI with this)

    i used "aaa" as its university license and did not want to put this in a public forum

     

  • Richard Wood_20774
    Richard Wood_20774
    Altair Employee
    edited April 1

    I was asking because I wanted to see if you have spaces in your paths, in which case you would need to use quotes around them. I can see you put the quotes around the paths in your Windows command (which has spaces in it) but you didn't in your Linux command, so I was curious. If you don't have spaces then I can't see anything wrong with what you're doing.

    To start with I'd remove your two pipe commands so you can see all/any output to stdout/the console. Failing that, go back even simpler and start with:

    edem -c -i <yourDeck>.dem

    or even just 

    edem -c

    until you get some kind of error from edem, and then add back the flags to see where the issue is.

    The flags are the same between Windows and Linux, I can only think that there is something path related.