Any tutorial to couple Fluent and EDEM in Linux without GUI?

Mahdi_22303
Mahdi_22303 Altair Community Member
edited June 2023 in Community Q&A

Hi everyone,

I have already compiled EDEM and Fluent coupling interface without GUI in a Linux environment to be run on HPC. However, I need a tutorial showing me how to activate the coupling in the solution process. Can anyone provide an example for this? or refer me to some threads here that have described the steps for reading the journal files, where to put activation of EDEM in a journal file etc. 

Thank you,

Mahdi.

 

 

 

 

 

Tagged:

Answers

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited June 2023

    Hi Mahdi,

    When you compile it creates the journal file which contains all the commands needed.  To read the journal file without GUI I'd refer to the Fluent documentation to check if there is a command for loading journal files.

    Regards

    Stephen

  • Mahdi_22303
    Mahdi_22303 Altair Community Member
    edited June 2023

    Hi Mahdi,

    When you compile it creates the journal file which contains all the commands needed.  To read the journal file without GUI I'd refer to the Fluent documentation to check if there is a command for loading journal files.

    Regards

    Stephen

    Hi Stephen,

    Thank you very much for your comment. When I submit a Fluent simulation, a journal file contains all the process from reading the Fluent case file to solution and saving the results. Maybe I need to figure out how to read EDEM journal file within Fluent journal file itself. But, in Windows, after reading the journal file, EDEM must get connected to coupling server. How does this must be done in a Linux environment without GUI? How connection to coupling server is activated?

     

    Thank you,

    Mahdi.

     

     

     

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited June 2023

    Hi Stephen,

    Thank you very much for your comment. When I submit a Fluent simulation, a journal file contains all the process from reading the Fluent case file to solution and saving the results. Maybe I need to figure out how to read EDEM journal file within Fluent journal file itself. But, in Windows, after reading the journal file, EDEM must get connected to coupling server. How does this must be done in a Linux environment without GUI? How connection to coupling server is activated?

     

    Thank you,

    Mahdi.

     

     

     

    Hi Mahdi,

    For myself I'm not familiar with running Fluent via command line however for the EDEM side you can run batch commands (which are the same on windows and linux):

    how to use EDEM batch

     

    If you run the command:

    edem -c -i myfile.dem --cs

     

    the -c launces EDEM in console mode and -i is the filename to run. --cs starts the EDEM coupling server listening so any Fluent (or other program) that runs with an EDEM connection can connect and run with this.  The other program doesn't have to be run in the console but can be.

     

    Regards

    Stephen

     

     

     

  • Mahdi_22303
    Mahdi_22303 Altair Community Member
    edited June 2023

    Hi Mahdi,

    For myself I'm not familiar with running Fluent via command line however for the EDEM side you can run batch commands (which are the same on windows and linux):

    how to use EDEM batch

     

    If you run the command:

    edem -c -i myfile.dem --cs

     

    the -c launces EDEM in console mode and -i is the filename to run. --cs starts the EDEM coupling server listening so any Fluent (or other program) that runs with an EDEM connection can connect and run with this.  The other program doesn't have to be run in the console but can be.

     

    Regards

    Stephen

     

     

     

    Hi Stephen,

    I am trying to run a fluent-EDEM coupling simulation on a command prompt on windows system for testing purposes. I created a Windows Batch file and put the syntax from your previous reply in the first line to start the coupling server. There is a message of "Awaiting client connection" Does this mean that Fluent must come up first before any syntax about EDEM? the "lib_edem_coupling" folder is already inside the directory, and one simulation was run with both applications having GUI before this test. 

    Thank you.

    Mahdi.

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited June 2023

    Hi Stephen,

    I am trying to run a fluent-EDEM coupling simulation on a command prompt on windows system for testing purposes. I created a Windows Batch file and put the syntax from your previous reply in the first line to start the coupling server. There is a message of "Awaiting client connection" Does this mean that Fluent must come up first before any syntax about EDEM? the "lib_edem_coupling" folder is already inside the directory, and one simulation was run with both applications having GUI before this test. 

    Thank you.

    Mahdi.

    Hi Mahdi,


    With any coupling you need to run EDEM first with the --cs flag. 

    EDEM will then wait for a connection from another program, you can then run fluent with the EDEM coupling either in the GUI or command line and it should pickup the EDEM coupling.  The --cs flag is the same as pressing the "start coupling server" button in the EDEM GUI.,


    Regards

    Stephen