How to recompile coupling tool for newer versions of ansys and edem?

satri
satri Altair Community Member
edited September 14 in Community Q&A

Hello The coupling tool GUI only has these options But I have EDEM 2022.3 version of edem and ansys of 2021.R2 and 2023.R1. I see that the source code is available with the coupling. Can someone please tell me how i could modify this coupling source code to make the coupling work for the above-mentioned versions?

 

Tagged:

Best Answer

  • RWood
    RWood
    Altair Employee
    edited November 2023 Answer ✓

    image

    These are the variables I added. I don't have multiple versions of edem. Only one version 2022

    image

    They need adding to your system path, i.e. the Path variable

Answers

  • RWood
    RWood
    Altair Employee
    edited November 2023

    Hi,

    Take a look here:

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

    I updated and uploaded a more recent version of everything this week. The versions on the forum are all over the place because a few years ago the coupling changed with different versions having different capabilities. The one in the link above should have everything in it and have the most up to date versions included.

    FYI, and for anyone reading this in the future, it's always worth trying selecting any version and entering your paths for EDEM and Fluent even if the version you have isn't listed. This won't always work, and I'm not going to go into details, but for more recent versions (say the last 3 years) I think it should work.

    Cheers,

    Richard

  • satri
    satri Altair Community Member
    edited November 2023

    Thank you so much for updating this coupling Richard. Really appreciate that. I will try to put the newer version on the GUI and see how it will function. In the event, I get errors with coupling how can i make sure that i put the path of newer versions of fluent? i downloaded the updated version and tried to run the file but it does not open the GUI at all? In the previous version, i was able to see this window

    image

    Now I cannot see this window at all.

    I am trying to understand the coupling with this example

    image

    please let me know how i can proceed

    Also how can i include a newer version of visual studio?

    Really appreciate all your support.

  • RWood
    RWood
    Altair Employee
    edited November 2023

    Thank you so much for updating this coupling Richard. Really appreciate that. I will try to put the newer version on the GUI and see how it will function. In the event, I get errors with coupling how can i make sure that i put the path of newer versions of fluent? i downloaded the updated version and tried to run the file but it does not open the GUI at all? In the previous version, i was able to see this window

    image

    Now I cannot see this window at all.

    I am trying to understand the coupling with this example

    image

    please let me know how i can proceed

    Also how can i include a newer version of visual studio?

    Really appreciate all your support.

    Are you sure there's not an anti-virus or something stopping it? I've just downloaded it from the website and get this:

    image
    And when I run Windows_GUI_compilation.exe I get:

    image

    and I can compile fine

  • satri
    satri Altair Community Member
    edited November 2023

    Ohh i see. yeah, it was the antivirus that was blocking that. It's working now. Thank you so much for updating the versions. Really appreciate it.

  • satri
    satri Altair Community Member
    edited November 2023

    Hey just to clarify one more thing..I don't see a button for EDEM 2022.3 but i did not get any error message when i put 

    C:\Program Files\Altair\2022.3\EDEM

    wanted to find out if everything would work as intended.

  • satri
    satri Altair Community Member
    edited November 2023

    Also i wanted to find out in this example provided in the tutorial i keep getting this error

    https://learn.altair.com/course/view.php?id=171

    (eLearning course on coupling with ansys fluent)

    i follow the exact steps outlined in the video and keep getting this error in fluent

    I think the problem is that i don't see any UDF files so it's giving me this error or if its any other reason could you please tell me why is this happening?

  • RWood
    RWood
    Altair Employee
    edited November 2023

    Also i wanted to find out in this example provided in the tutorial i keep getting this error

    https://learn.altair.com/course/view.php?id=171

    (eLearning course on coupling with ansys fluent)

    i follow the exact steps outlined in the video and keep getting this error in fluent

    I think the problem is that i don't see any UDF files so it's giving me this error or if its any other reason could you please tell me why is this happening?

    I forgot there was a 2022.3 release but changing the path from say 2022.2 should be fine. What do you mean you don't see any UDF files? If you go into the 4 folders (3d/3ddp host/node), does libudf.dll exist in each of them? 

    Also can you upload the log.txt file

    Richard

  • satri
    satri Altair Community Member
    edited November 2023

    I did that. I changed the path. But i still the tutorial file keeps crashing. This is from the eLearning.

    image

    I am following the exact steps outlined in the tutorial pdf given for setting up the coupling

    (https://community.altair.com/community/en/edem-tutorial-edem-fluent-heat-transfer-in-fluidized-bed?sys_kb_id=9849d9761b0120d4c4dfdbd9dc4bcbfb&id=kb_article_view&sysparm_rank=2&sysparm_tsqueryId=3594dfe5dba63914cfd5f6a4e2961939)

    (I am following the exact steps provided in this tutorial and the e learning tutorial (https://learn.altair.com/enrol/index.php?id=171), But i get into this problem as given in the picture above, I tried reusing the model provided as well as do everything from the scratch as given by the tutorial, I don't know how to resolve that error which fluent is throwing. can you please help me to get rid of this error? i even added edem to environment variable but still i keep getting this error. i don't know how to resolve this )

     

  • satri
    satri Altair Community Member
    edited November 2023

    I think the problem is happening because of the journal file created for the fluent. Can you please tell me what exactly is being done in the journal file I am familiar with how to write a journal file but i don't know what this journal file is doing. I don't mind compiling the udfs too but when i go to the source files

    image

    copy all the individual files and then try to compile it manually i am able to compile it. But when i click load i get this error (Note: i don't get any error during compilation)

    image

    so i don't know what to make of this..do i need to enable some connections inside fluent or inside edem...i don't know...this should be straightforward as its part of the tutorial and i am following the same steps outlined on the pdf..please let me know why am i getting this error.

  • satri
    satri Altair Community Member
    edited November 2023

    I forgot there was a 2022.3 release but changing the path from say 2022.2 should be fine. What do you mean you don't see any UDF files? If you go into the 4 folders (3d/3ddp host/node), does libudf.dll exist in each of them? 

    Also can you upload the log.txt file

    Richard

    this is the log file

    log.txt 33.3K
  • RWood
    RWood
    Altair Employee
    edited November 2023

    I think the problem is happening because of the journal file created for the fluent. Can you please tell me what exactly is being done in the journal file I am familiar with how to write a journal file but i don't know what this journal file is doing. I don't mind compiling the udfs too but when i go to the source files

    image

    copy all the individual files and then try to compile it manually i am able to compile it. But when i click load i get this error (Note: i don't get any error during compilation)

    image

    so i don't know what to make of this..do i need to enable some connections inside fluent or inside edem...i don't know...this should be straightforward as its part of the tutorial and i am following the same steps outlined on the pdf..please let me know why am i getting this error.

    The journal file loads the compiled libudf.dll, that's all. I can't comment on the details as it was written by the Ansys developer I wrote the coupling with. If you want more information on anything to do with Fluent, you will have to contact Ansys.

    I've downloaded the files from the forum, built the coupling, loaded it in Fluent, and ran a coupled simulation just now, so there's no issue with the coupling itself. I did this with EDEM 2022.3 (using the approach you did and selected 2022.2) and Fluent 2023 R1, as it's the only version I have on my system right now. There's a chance there could be an issue with the eLearning files, I don't have those right now, but I thought they'd be pretty generic.

    Fluent's error codes aren't that useful, but I found in the past that error code 126 related either building/loading the coupling for different Fluent versions (i.e. built for 2022 R1 and loaded in 2022 R2) or the EDEM/lib path wasn't added to the system path. Even if you have added EDEM's /lib folder to the path, it will need to be 'above' any older EDEM version's lib folders in order to be read. To be safe, I'd move it to the top of the listed directories in your system path variable and try again.

    Richard

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited November 2023

    this is the log file

    Hi Shyam, 

     

    The log file looks OK to me but Richard maybe able to spot something in there.

    Just to confirm what Richard mentioned plus a few points:

    • If you go into the 4 folders (3d/3ddp host/node), does libudf.dll exist in each of them?
    • Is the lib_edem_coupling folder (containing associated sub-folders and libudf's) in the Fluent working directory?
    • Are you running the EDEM simulations on the same machine that you use to compile the UDF's?
    •  Are you running the simulations (EDEM and Fluent) using the same versions compiled with the UDF's?
    • Did you set both the EDEM lib and EDEM bin folders in the PATH environment variable?  These should be the 2022.3 paths if that is the version you are using and this should be the System environment variable. 

    Regards

    Stephen

  • satri
    satri Altair Community Member
    edited November 2023

    image

    These are the variables I added. I don't have multiple versions of edem. Only one version 2022

  • RWood
    RWood
    Altair Employee
    edited November 2023 Answer ✓

    image

    These are the variables I added. I don't have multiple versions of edem. Only one version 2022

    image

    They need adding to your system path, i.e. the Path variable

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited November 2023

    image

    These are the variables I added. I don't have multiple versions of edem. Only one version 2022

    Hi Shyam,


    The variables should be added to the Path variable, it looks like you have two separate ones for bin and lib.

    Also the paths specified in the variables you have put reference EDEM 2021.2 and from your comments and the log file this should be EDEM 2022.3.  For example:

    image

     

    Regards

    Stephen

     

  • satri
    satri Altair Community Member
    edited November 2023

    Hi Shyam,


    The variables should be added to the Path variable, it looks like you have two separate ones for bin and lib.

    Also the paths specified in the variables you have put reference EDEM 2021.2 and from your comments and the log file this should be EDEM 2022.3.  For example:

    image

     

    Regards

    Stephen

     

    Ohh i see..i did not add 2021 i copied and pasted it there in the env variables it automatically takes 2021 i don't know why

    image

    (This is what I copied)

    I will do this. I will delete those two and add the variable inside the path.

    I am not getting the error when I put it inside the path.

    Thank you so much.

    I can resume back to follow the tutorial.

    I don't know what difference it makes I thought the system variable was the environment variable.

     

  • Yang Jin
    Yang Jin Altair Community Member
    edited September 14

    Hi,

    Take a look here:

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

    I updated and uploaded a more recent version of everything this week. The versions on the forum are all over the place because a few years ago the coupling changed with different versions having different capabilities. The one in the link above should have everything in it and have the most up to date versions included.

    FYI, and for anyone reading this in the future, it's always worth trying selecting any version and entering your paths for EDEM and Fluent even if the version you have isn't listed. This won't always work, and I'm not going to go into details, but for more recent versions (say the last 3 years) I think it should work.

    Cheers,

    Richard

    why i can't open this website,   https://community.altair.com/community/en/altair-edem-coupling-for-ansys-fluent-with-combustion?id=kb_article&sysparm_article=KB0117663

     

    image