Can the EDEM coupling with ANSYS Fluent run in console mode without gui?
Answers
-
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
0 -
Richard Wood_20774 said:
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,
0 -
wenxuan xu said:
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
0 -
Richard Wood_20774 said:
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
0 -
Richard Wood_20774 said:
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?
0 -
wenxuan xu said:
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
0 -
Richard Wood_20774 said:
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.
0 -
wenxuan xu said:
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:
Richard
0