We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Still getting UDF errors in Fluent :(

    • rexfoxoloughlin
      Subscriber

      Hi all,

      I posted in this forum a while back and still didn't manage to fix my issue. I've been getting errors when compiling UDFs in Fluent, all seem to be common issues that other people have, but I haven't found a solution yet.

      The errors are detailed/screenshotted in the attached pdf.

      My main error is the "The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64). The system cannot find the file specified."

      Things I have tried at this point:

      • I have uninstalled and reinstalled ANSYS
      • I have uninstalled and reinstalled VS Studio 2017
      • I've completely remade the whole project with new geometry and a new mesh and re-opened it in Fluent about 700 times in case that was the issue - it was not
      • I've added it to the path as specified here: https://www.cfd-online.com/Forums/blogs/trollreign/2036-getting-ansys-14-fluent-windows-8-1-vs2013-compile-udfs.html and also tried all the other solutions on that page
      • I've started Fluent through VS 2017's common tools command prompt as specified here /forum/discussion/13927/compiling-udf, gives the same errors - UPDATE: since reinstalling ANSYS, this no longer works and has its own set of errors - see PDF
      • I've tried a few different UDFs, some simple example ones from online and the ones I've written, to the same errors, so it's not an issue in the code
      • I've moved the UDFs and project files all over the shop, to their own drive (in the most recent set of errors), into the ANSYS installation folder, everywhere. Yes the UDF files are in the same directory as the .cas and .dat files

      Has anyone any idea as to what could be going wrong? I've been trying to get this to work for months at this point and it's incredibly frustrating.



    • YasserSelima
      Subscriber
      Not sure why does the compiler look in drive '\Program' is not recognized as an internal or external command, operable program or batch filen
    • rexfoxoloughlin
      Subscriber

      Not sure why does the compiler look in drive '\Program' is not recognized as an internal or external command, operable program or batch file/forum/discussion/comment/103387#Comment_103387

      ANSYS is in drive D, I've tried moving the files between drives and get the same errors every time.n
    • Rob
      Forum Moderator
      If you install 2020R2 into the default C: location you can use the built in compiler CLANG (it doesn't like other locations). With 2021R1 the built in compiler should recognise n
    • Amine Ben Hadj Ali
      Ansys Employee
      Update to newest version and rely on built-in compilern
    • rexfoxoloughlin
      Subscriber

      If you install 2020R2 into the default C: location you can use the built in compiler CLANG (it doesn't like other locations). With 2021R1 the built in compiler should recognise /forum/discussion/comment/103433#Comment_103433

      I'll give that a go, thank youn
    • Amine Ben Hadj Ali
      Ansys Employee
      welcomen
Viewing 6 reply threads
  • The topic ‘Still getting UDF errors in Fluent :(’ is closed to new replies.