Errors during coupling EDEM with ANSYS Fluent

Di Wu_22293
Di Wu_22293 Altair Community Member
edited February 2023 in Community Q&A

Hello,

I'm reaching out as I encounter below error while coupling EDEM with Fluent:

image

Could you please kindly help see this problem?

Thanks.

Tagged:

Best Answer

  • RWood
    RWood
    Altair Employee
    edited February 2023 Answer ✓

    Hello,

    I'm not using the GUI. I'm doing this as per the instruction in the headless tar.

    Does the output indicate that the environment variable of EDEM hasn't been set correctly?

    Thank you!

    Hi,

    I don't know what's going on there to be honest.

    I've uploaded a new tar for the headless version in the same place (replacing the old one so you'll need to download again) and I've updated the docs to reflect the steps that I'm taking to make it work. Just follow what's covered in the README.Linux file in the edem_coupling_build folder, which is:

    1. cd tools/
    2. export PYTHONPATH=${PYTHONPATH}:$(pwd)
    3. cd ..
    4. source tools/edem env vars
    5. source tools/fluent env vars
    6. cd edem_adaptor_build
    7. scons
    8. ls lnamd64/    to check there are 5 .os files
    9. cd ../lib_edem_coupling
    10. scons
    11. find -name libudf.so    to check there are 4 libudf.so files created

    And that should be it.

    Richard 

Answers

  • RWood
    RWood
    Altair Employee
    edited February 2023

    Hi,

    Can you let me know which version of the compilation tool you're using and upload the full error output? There should be a log.txt file generated during the compilation, so upload that (if there is one) and maybe pipe the terminal output to a file too.

    Cheers,

    Richard

  • Di Wu_22293
    Di Wu_22293 Altair Community Member
    edited February 2023

    Hi,

    Can you let me know which version of the compilation tool you're using and upload the full error output? There should be a log.txt file generated during the compilation, so upload that (if there is one) and maybe pipe the terminal output to a file too.

    Cheers,

    Richard

    Hi Richard,

    I'm using the tool from Script & Model Library - Altair EDEM Coupling for Ansys Fluent - with Combustion

    I'm sorry that the output is quite a lot of content, while I didn't find the log.txt file either. Please find attached file for reference.

    I've been trying on this for a while but still couldn't work well. Is it any possible that we arrange a brief discussion on Teams so that I could share screen with you?

    Many thanks in advance!

  • RWood
    RWood
    Altair Employee
    edited February 2023

    Hi Richard,

    I'm using the tool from Script & Model Library - Altair EDEM Coupling for Ansys Fluent - with Combustion

    I'm sorry that the output is quite a lot of content, while I didn't find the log.txt file either. Please find attached file for reference.

    I've been trying on this for a while but still couldn't work well. Is it any possible that we arrange a brief discussion on Teams so that I could share screen with you?

    Many thanks in advance!

    Hi Di,

    The very end of the output informs me that the EDEM coupling library isn't being found or, put another way, the EDEM install directory isn't being found.

    I'm slightly confused by the start of the output though. Are you using the GUI to compile this or doing the scons calls manually in the terminal?

    Richard

  • Di Wu_22293
    Di Wu_22293 Altair Community Member
    edited February 2023

    Hi Di,

    The very end of the output informs me that the EDEM coupling library isn't being found or, put another way, the EDEM install directory isn't being found.

    I'm slightly confused by the start of the output though. Are you using the GUI to compile this or doing the scons calls manually in the terminal?

    Richard

    Hello,

    I'm not using the GUI. I'm doing this as per the instruction in the headless tar.

    Does the output indicate that the environment variable of EDEM hasn't been set correctly?

    Thank you!

  • RWood
    RWood
    Altair Employee
    edited February 2023 Answer ✓

    Hello,

    I'm not using the GUI. I'm doing this as per the instruction in the headless tar.

    Does the output indicate that the environment variable of EDEM hasn't been set correctly?

    Thank you!

    Hi,

    I don't know what's going on there to be honest.

    I've uploaded a new tar for the headless version in the same place (replacing the old one so you'll need to download again) and I've updated the docs to reflect the steps that I'm taking to make it work. Just follow what's covered in the README.Linux file in the edem_coupling_build folder, which is:

    1. cd tools/
    2. export PYTHONPATH=${PYTHONPATH}:$(pwd)
    3. cd ..
    4. source tools/edem env vars
    5. source tools/fluent env vars
    6. cd edem_adaptor_build
    7. scons
    8. ls lnamd64/    to check there are 5 .os files
    9. cd ../lib_edem_coupling
    10. scons
    11. find -name libudf.so    to check there are 4 libudf.so files created

    And that should be it.

    Richard 

  • Di Wu_22293
    Di Wu_22293 Altair Community Member
    edited February 2023

    Hi,

    I don't know what's going on there to be honest.

    I've uploaded a new tar for the headless version in the same place (replacing the old one so you'll need to download again) and I've updated the docs to reflect the steps that I'm taking to make it work. Just follow what's covered in the README.Linux file in the edem_coupling_build folder, which is:

    1. cd tools/
    2. export PYTHONPATH=${PYTHONPATH}:$(pwd)
    3. cd ..
    4. source tools/edem env vars
    5. source tools/fluent env vars
    6. cd edem_adaptor_build
    7. scons
    8. ls lnamd64/    to check there are 5 .os files
    9. cd ../lib_edem_coupling
    10. scons
    11. find -name libudf.so    to check there are 4 libudf.so files created

    And that should be it.

    Richard 

    Hi Richard,

    Thank you for the support!

    I have tried to follow the latest instruction but encountered errors during building EDEM CFD adaptor (the fluent one seems ok)

    Please kindly find attached the error script. 

    Could you please help me see again?

    Thank you very much in advance!

  • RWood
    RWood
    Altair Employee
    edited February 2023

    Hi Richard,

    Thank you for the support!

    I have tried to follow the latest instruction but encountered errors during building EDEM CFD adaptor (the fluent one seems ok)

    Please kindly find attached the error script. 

    Could you please help me see again?

    Thank you very much in advance!

    Ok, can you try download the headless tar and compile again? I've made one small change which will hopefully fix that. 

    Out of interest what Linux flavour are you using and what's the g++ version (type g++ --version into a terminal) ?

     

  • Di Wu_22293
    Di Wu_22293 Altair Community Member
    edited February 2023

    Ok, can you try download the headless tar and compile again? I've made one small change which will hopefully fix that. 

    Out of interest what Linux flavour are you using and what's the g++ version (type g++ --version into a terminal) ?

     

    Hi Richard,

    The compilation part was solved! Thank you so much for the nice and patient instruction and support.

    After all the steps mentioned in /edem_coupling_build_headless/README.Linux

    I tried to run below command at ../lib_edem_coupling

    $scons dimensions=3d  USER_OBJECT_PATH=$EDEM_ADAPTOR_OBJECT_DIR   USER_LIBRARIES=$EDEM_LIBRARY_PATH/libEDEMCouplingClient4.so

    However the ERROR 1 still occured. Could you please further help me check on this? (I have attached the error output as usual)

    FYI below is my Linux flavor and g++ version I found: 

    CentOS Linux release 7.5.1804 (Core)
    NAME="CentOS Linux"
    VERSION="7 (Core)"
    ID="centos"
    ID_LIKE="rhel fedora"
    VERSION_ID="7"
    PRETTY_NAME="CentOS Linux 7 (Core)"
    ANSI_COLOR="0;31"
    CPE_NAME="cpe:/o:centos:centos:7"
    HOME_URL="https://www.centos.org/"
    BUG_REPORT_URL="https://bugs.centos.org/"

    CENTOS_MANTISBT_PROJECT="CentOS-7"
    CENTOS_MANTISBT_PROJECT_VERSION="7"
    REDHAT_SUPPORT_PRODUCT="centos"
    REDHAT_SUPPORT_PRODUCT_VERSION="7"

    CentOS Linux release 7.5.1804 (Core)
    CentOS Linux release 7.5.1804 (Core)

    g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)
    Copyright (C) 2015 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    Thank you very much for the continuous help!!

  • RWood
    RWood
    Altair Employee
    edited February 2023

    Hi Richard,

    The compilation part was solved! Thank you so much for the nice and patient instruction and support.

    After all the steps mentioned in /edem_coupling_build_headless/README.Linux

    I tried to run below command at ../lib_edem_coupling

    $scons dimensions=3d  USER_OBJECT_PATH=$EDEM_ADAPTOR_OBJECT_DIR   USER_LIBRARIES=$EDEM_LIBRARY_PATH/libEDEMCouplingClient4.so

    However the ERROR 1 still occured. Could you please further help me check on this? (I have attached the error output as usual)

    FYI below is my Linux flavor and g++ version I found: 

    CentOS Linux release 7.5.1804 (Core)
    NAME="CentOS Linux"
    VERSION="7 (Core)"
    ID="centos"
    ID_LIKE="rhel fedora"
    VERSION_ID="7"
    PRETTY_NAME="CentOS Linux 7 (Core)"
    ANSI_COLOR="0;31"
    CPE_NAME="cpe:/o:centos:centos:7"
    HOME_URL="https://www.centos.org/"
    BUG_REPORT_URL="https://bugs.centos.org/"

    CENTOS_MANTISBT_PROJECT="CentOS-7"
    CENTOS_MANTISBT_PROJECT_VERSION="7"
    REDHAT_SUPPORT_PRODUCT="centos"
    REDHAT_SUPPORT_PRODUCT_VERSION="7"

    CentOS Linux release 7.5.1804 (Core)
    CentOS Linux release 7.5.1804 (Core)

    g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)
    Copyright (C) 2015 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    Thank you very much for the continuous help!!

    Hi,

     

    We don't support CentOS 7 anymore but I think it's probably ok for compiling the coupling. The g++ version looks ok though.

     

    Can you try just typing 'scons' in the terminal when trying to run it? I don't know why you're copying all the extra dimension=3d etc, you shouldn't need to do that as all the options should be handled by the various SConstruct files.

     

    Just to clarify, you're running the set_edem_env_vars.sh and set_fluent_env_vars.sh shell scripts before you're trying the scons step right? Easiest way to check they've worked is to type:

     

    echo $FLUENT_INC

     

    and

     

    echo $EDEM_LIBRARY_PATH

     

    into the terminal and you should see the paths of your EDEM and Fluent installs.

     

    Cheers,

    Richard

  • Di Wu_22293
    Di Wu_22293 Altair Community Member
    edited February 2023

    Hi,

     

    We don't support CentOS 7 anymore but I think it's probably ok for compiling the coupling. The g++ version looks ok though.

     

    Can you try just typing 'scons' in the terminal when trying to run it? I don't know why you're copying all the extra dimension=3d etc, you shouldn't need to do that as all the options should be handled by the various SConstruct files.

     

    Just to clarify, you're running the set_edem_env_vars.sh and set_fluent_env_vars.sh shell scripts before you're trying the scons step right? Easiest way to check they've worked is to type:

     

    echo $FLUENT_INC

     

    and

     

    echo $EDEM_LIBRARY_PATH

     

    into the terminal and you should see the paths of your EDEM and Fluent installs.

     

    Cheers,

    Richard

    Dear Richard,

    I have done all the steps you have mentioned below:

    1. cd tools/
    2. export PYTHONPATH=${PYTHONPATH}:$(pwd)
    3. cd ..
    4. source tools/edem env vars
    5. source tools/fluent env vars
    6. cd edem_adaptor_build
    7. scons
    8. ls lnamd64/    to check there are 5 .os files
    9. cd ../lib_edem_coupling
    10. scons
    11. find -name libudf.so    to check there are 4 libudf.so files created

    Yes EDEM and Fluent installation path can be seen after the 'echo' command. And there're 4 libudf.so files now. 

    Does this mean that the coupling was already properly done?

    Thank you!

  • RWood
    RWood
    Altair Employee
    edited February 2023

    Dear Richard,

    I have done all the steps you have mentioned below:

    1. cd tools/
    2. export PYTHONPATH=${PYTHONPATH}:$(pwd)
    3. cd ..
    4. source tools/edem env vars
    5. source tools/fluent env vars
    6. cd edem_adaptor_build
    7. scons
    8. ls lnamd64/    to check there are 5 .os files
    9. cd ../lib_edem_coupling
    10. scons
    11. find -name libudf.so    to check there are 4 libudf.so files created

    Yes EDEM and Fluent installation path can be seen after the 'echo' command. And there're 4 libudf.so files now. 

    Does this mean that the coupling was already properly done?

    Thank you!

    Yes. If the 4. so files are there then that's the coupling compiled.

    Take a look at the documentation on how to use but the short version is, whenever you want to run you will need to:

    1) source set_edem_env_vars.sh

    This sets the environment variable required by Fluent to find EDEM's coupling library

    2) start Fluent from the same console session where you set this environment variable

    3) load the coupling through the journal file load_edem_coupling.jou

    Richard

  • Di Wu_22293
    Di Wu_22293 Altair Community Member
    edited February 2023

    Yes. If the 4. so files are there then that's the coupling compiled.

    Take a look at the documentation on how to use but the short version is, whenever you want to run you will need to:

    1) source set_edem_env_vars.sh

    This sets the environment variable required by Fluent to find EDEM's coupling library

    2) start Fluent from the same console session where you set this environment variable

    3) load the coupling through the journal file load_edem_coupling.jou

    Richard

    Dear Richard,

    Thank you very much for the continuous assistance and patient specification!

    There's no further question from my side. Have a nice day!

  • Di Wu_22293
    Di Wu_22293 Altair Community Member
    edited February 2023

    Yes. If the 4. so files are there then that's the coupling compiled.

    Take a look at the documentation on how to use but the short version is, whenever you want to run you will need to:

    1) source set_edem_env_vars.sh

    This sets the environment variable required by Fluent to find EDEM's coupling library

    2) start Fluent from the same console session where you set this environment variable

    3) load the coupling through the journal file load_edem_coupling.jou

    Richard

    Hi Richard,

    Excuse me I just have another question: is this coupling package available for Fluent 22.1? I'm only able to complete it for 21.1 but ERROR1 still appears when I try to do the same steps for 22.1 version.

    Thanks!