Errors of compilation of EDEM-Fluent on a Linux system with GUI

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

Dear all,

I have been trying to Couple Fluent and EDEM on Linux with GUI and without GUI but have not got results yet. I used both EDEM 2021.2-Fluent 21R2 and EDEM 2022.3-Fluent 23.1. I wonder why. 

I am compiling the files according to steps in this post. The compilation is going well, and all files are created. When I am starting to run Fluent and EDEM, the coupling is not going well by this error message:

Initialising EDEM-Fluent Coupling. Please wait...
/ansys_inc/v212/fluent/fluent21.2.0/lnamd64/3ddp_host/fluent.21.2.0: symbol lookup error: lib_edem_coupling/lnamd64/3ddp_host/libudf.so: undefined symbol: ADAPTOR_init_connectEDEMCoupling_Address
 The fluent process could not be started.

if someone can explain the steps taken from compiling to running, especially setting the environments, I would really appreciate it as it has taken me a month to do this and still no results. I am following these steps from the readme.linux file in the headless folder of the above link. 

1- I set the environemnts in the same folder where "edem_coupling_build_headless" is 

source ./tools/set_edem_env_vars.sh

/opt/Altair2021.2/altair/EDEM2021.2


source ./tools/set_fluent_env_vars.sh

/ansys_inc/v212/fluent

echo $FLUENT_INC

/ansys_inc/v212/fluent

echo $EDEM_LIBRARY_PATH

/opt/Altair2021.2/altair/EDEM2021.2/lib

 

2-  cd tools/

 export PYTHONPATH=${PYTHONPATH}:$(pwd)

 echo $PYTHONPATH

 /home/.../edem_coupling_build_headless/tools

3- 

 cd edem_cfd_adaptor_build and running SCons:

    AdaptorInterface.os    CCellAndThreadData.os   CParticleData.os
CAdaptorQuaternion.os  CFluentParticleData.os

4- cd lib_edem_coupling and run scons

./lnamd64/3d_host/libudf.so
./lnamd64/3d_node/libudf.so
./lnamd64/3ddp_host/libudf.so
./lnamd64/3ddp_node/libudf.so

 

5. Copy the lib_edem_coupling, load_edem_coupling.jou, set_edem_env_vars.sh, set_fluent_env_vars.sh to the working directory of problem

6- in the working directory

source set_edem_env_vars.sh, 

source set_fluent_env_vars.sh

echo $FLUENT_INC
/ansys_inc/v212/fluent


echo $EDEM_LIBRARY_PATH
/opt/Altair2021.2/altair/EDEM2021.2/lib

 

7. Start coupling server in EDEM, Read journal file, connect to EDEM

Initialising EDEM-Fluent Coupling. Please wait...
/ansys_inc/v212/fluent/fluent21.2.0/lnamd64/3ddp_host/fluent.21.2.0: symbol lookup error: lib_edem_coupling/lnamd64/3ddp_host/libudf.so: undefined symbol: ADAPTOR_init_connectEDEMCoupling_Address
 The fluent process could not be started.

 

Thank you very much,

Mahdi.

 

 

 

Tagged:

Answers

  • jerrinjobs
    jerrinjobs
    Altair Employee
    edited July 2023

    Hi Mahdi

     

    It seems like an environment variable issue. Just to be sure, could you copy all the EDEM library files (in the EDEM/lib folder) into the UDF folder in Fluent? It will then get all the files required for the coupling, and run as intended.

     

    Thanks,

    Jerrin Job

  • Mahdi_22303
    Mahdi_22303 Altair Community Member
    edited July 2023

    Hi Mahdi

     

    It seems like an environment variable issue. Just to be sure, could you copy all the EDEM library files (in the EDEM/lib folder) into the UDF folder in Fluent? It will then get all the files required for the coupling, and run as intended.

     

    Thanks,

    Jerrin Job

    Hi Jerrin,

    Thank you very much for your comment. Can you please mention where the UDF folder is located? It is in Fluent installation directory? or you mean the lib_edem_Coupling folder in the problem working directory? 

     

    Thank you,

    Mahdi.