We’re updating our badges platform. Badge issuance is temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

A new set of UDF errors

    • rexfoxoloughlin
      Subscriber
      Hi all,nI've solved my parallel use errors and now we have new ones!nnError: No source files provided nError Object: #fnError: UDF library libudf not available atnC:\ANSYS\Dragonfly_files\dp0\FFF\FluentnError Object: #fnnGoogle seems to have no answers for me, can anyone help?nThanksnn
    • Amine Ben Hadj Ali
      Ansys Employee
      Are you referring to a header or source in your UDF? Which version are you using? Paste some more information.
    • rexfoxoloughlin
      Subscriber
      .

      DrAmine thanks for responding, I have VS 2017, ANSYS 2020 R2, I use #include "udf.h" in my UDF but the issue occurs when trying to build "libudf", before my codes even come into it.

      .
    • YasserSelima
      Subscriber
      if you have a folder libudf inside fluent working folder, delete it and try to re-compile
    • Rob
      Forum Moderator
      In Windows use Unload before trying to recompile the C code. It's a safety feature in Windows as the libudf is technically open when loaded in Fluent: LINUX is intelligent enough to let you recompile without this step.
    • rexfoxoloughlin
      Subscriber
      Hi everyone, thanks for answering.
      I've actually managed to fix it:
      I had both VS2017 and VS2019 so I uninstalled 2019. I then updated 2017.
      When trying to run ANSYS from the cross tools command prompt I got a load of errors saying certain files weren't installed, and when I googled them they seemed to be involved in some video games, so I installed the Video Game Development Framework (C++) to add to the desktop development environment I already had installed.
      Fluent still wouldn't launch from the cross tools command prompt so I tried it from workbench and somehow, it worked.
      Before this I was getting the "this isn't compiled for parallel use" error which I fixed by moving everything to the C drive.
      Thanks to everyone who helped out!
      Now just to fix my code...
    • Shyam Prasad V Atri
      Subscriber
      .

      Is there a way to check if the C++ compiler is working for UDF.

      I installed ansys 2021 r2 two days ago and my UDF's are not working.

      I keep getting this warning.

      scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly

      I am trying to use the inbuilt compiler.

      .
    • Rob
      Forum Moderator
      .

      The inbuilt compiler should bypass the VS Studio issues. What operating system are you using?

      .
    • Shyam Prasad V Atri
      Subscriber
      .

      I am using windows

      .
    • Rob
      Forum Moderator
    • Amine Ben Hadj Ali
      Ansys Employee
      .

      Just use the built-in compiler if Fluent does not enforce using it.

      .
Viewing 10 reply threads
  • The topic ‘A new set of UDF errors’ is closed to new replies.