Can the EDEM coupling with ANSYS Fluent run in console mode without gui?

wenxuan xu
wenxuan xu Altair Community Member
edited August 20 in Community Q&A

Hi

        Can the EDEM coupling with ANSYS Fluent run in console mode without gui?

Thanks

Tagged:

Answers

  • Richard Wood_20774
    Richard Wood_20774
    Altair Employee
    edited June 17

    Hi,

    Yes, it can. If you're using Fluent's TUI the commands for the coupling are within /define/edem (if I remember correctly).

    If you mean the compilation, this can also be done without the GUI. There is a README_linux.txt in the edem_coupling_build folder which advises on the steps. All you need is scons.

    Cheers,

    Richard

  • wenxuan xu
    wenxuan xu Altair Community Member
    edited June 17

    Hi,

    Yes, it can. If you're using Fluent's TUI the commands for the coupling are within /define/edem (if I remember correctly).

    If you mean the compilation, this can also be done without the GUI. There is a README_linux.txt in the edem_coupling_build folder which advises on the steps. All you need is scons.

    Cheers,

    Richard

    Hi, Richard

        Thank you for your reply, when conducting coupling calculations in Windows, it is necessary to open the EDEM GUI to enable coupling services firstly, and then open the Fluent GUI for coupling calculations. But now that there is no GUI on Centos, how can we enable the coupling service of EDEM to start listening, and then use Fluent TUI command for coupling initialization and calculation?

    Best regards,

  • Richard Wood_20774
    Richard Wood_20774
    Altair Employee
    edited June 17

    Hi, Richard

        Thank you for your reply, when conducting coupling calculations in Windows, it is necessary to open the EDEM GUI to enable coupling services firstly, and then open the Fluent GUI for coupling calculations. But now that there is no GUI on Centos, how can we enable the coupling service of EDEM to start listening, and then use Fluent TUI command for coupling initialization and calculation?

    Best regards,

    Type:

    edem -?

    into a terminal and you will see all the flags to control EDEM via command line. The flag

    --cs

    enables the coupling server. So you would need a command like:

    edem -c -i myDeck.dem --cs

    for your case. 

    On the Fluent side, load your case, load the coupling through the TUI (file/read-journal/load_edem_coupling.jou), connect to edem (/define/edem/connect ), then initialise (/initialise/initialise) and run (/solve/dual-iterate).

    I'm trying to recall the TUI commands from memory so I might have some of those slightly incorrect, but if you know how to navigate using the TUI I'm sure you'll find them.

    Richard

  • wenxuan xu
    wenxuan xu Altair Community Member
    edited June 18

    Type:

    edem -?

    into a terminal and you will see all the flags to control EDEM via command line. The flag

    --cs

    enables the coupling server. So you would need a command like:

    edem -c -i myDeck.dem --cs

    for your case. 

    On the Fluent side, load your case, load the coupling through the TUI (file/read-journal/load_edem_coupling.jou), connect to edem (/define/edem/connect ), then initialise (/initialise/initialise) and run (/solve/dual-iterate).

    I'm trying to recall the TUI commands from memory so I might have some of those slightly incorrect, but if you know how to navigate using the TUI I'm sure you'll find them.

    Richard

    Hi, Richard

          Thank you very much for your reply. All issues have been resolved.

    Best regards,

    Wenxuan XU

  • wenxuan xu
    wenxuan xu Altair Community Member
    edited August 13

    Type:

    edem -?

    into a terminal and you will see all the flags to control EDEM via command line. The flag

    --cs

    enables the coupling server. So you would need a command like:

    edem -c -i myDeck.dem --cs

    for your case. 

    On the Fluent side, load your case, load the coupling through the TUI (file/read-journal/load_edem_coupling.jou), connect to edem (/define/edem/connect ), then initialise (/initialise/initialise) and run (/solve/dual-iterate).

    I'm trying to recall the TUI commands from memory so I might have some of those slightly incorrect, but if you know how to navigate using the TUI I'm sure you'll find them.

    Richard

    Hi, Richard

         when I use EDEM-Fluent Coupling in console mode, It seems that EDEM did not send data to Fluent after executing the

    ADAPTOR_showSimulator(&bSuccess);

    . Is this a bug where EDEM's calculation mode is console, causing the bSuccess=false and not send particle data to Fluent?

  • Richard Wood_20774
    Richard Wood_20774
    Altair Employee
    edited August 19

    Hi, Richard

         when I use EDEM-Fluent Coupling in console mode, It seems that EDEM did not send data to Fluent after executing the

    ADAPTOR_showSimulator(&bSuccess);

    . Is this a bug where EDEM's calculation mode is console, causing the bSuccess=false and not send particle data to Fluent?

    Hi,

    The function showSimulator( ) does as it's name suggests, i.e. it shows the Simulator, but it's only useful when you have EDEM running with the GUI. When you run in console mode there is no GUI and hence calling any of the couplings showXXXX( ) functions won't do anything. This has nothing to do with the execution of the simulation.

    I think the function in your image above is actually legacy and not used in the current implementation of the coupling so I'm intrigued how you're seeing a value being returned here? I can't see any of the showXXXX( ) functions even being called...

    Cheers,

    Richard

  • wenxuan xu
    wenxuan xu Altair Community Member
    edited August 20

    Hi,

    The function showSimulator( ) does as it's name suggests, i.e. it shows the Simulator, but it's only useful when you have EDEM running with the GUI. When you run in console mode there is no GUI and hence calling any of the couplings showXXXX( ) functions won't do anything. This has nothing to do with the execution of the simulation.

    I think the function in your image above is actually legacy and not used in the current implementation of the coupling so I'm intrigued how you're seeing a value being returned here? I can't see any of the showXXXX( ) functions even being called...

    Cheers,

    Richard

    Hi, Richard

          The source code of coupling interface used was attched. And showSimulator() functions locates in the line 370 of edemUdf.c. Now that I have annotated line 368~370, the coupling interface can run normally in cmd mode.

  • Richard Wood_20774
    Richard Wood_20774
    Altair Employee
    edited August 20

    Hi, Richard

          The source code of coupling interface used was attched. And showSimulator() functions locates in the line 370 of edemUdf.c. Now that I have annotated line 368~370, the coupling interface can run normally in cmd mode.

    Hi,

    This is not the coupling that we maintain on the forum. I think this is the original version of the coupling from maybe 10+ years ago, in which case it's old and no longer supported.

    If you want to use the one that we support then see here:

    https://community.altair.com/community/en/altair-edem-coupling-for-ansys-fluent-with-combustion?id=kb_article&sysparm_article=KB0117663

    Richard