Fluids

Fluids

problem with udf – windows 10

    • ft19
      Subscriber


      does anyone know how to solve this problem with the UDF in fluent? i have a laptop with windows 10 and I don't have "libudf" in the folder Fluent.


       


      thank you

    • DrAmine
      Ansys Employee

      Can you compile a small UDF in Fluent outside the Workbench?


      Example will be:


       


      #include "udf.h"


      DEFINE_ON_DEMAND(Hello)


      {


      Message0("nHello World!n");


      }


       

    • ft19
      Subscriber

      yes, i tryed to compile this code in c++ and imported it in ansys but it displays the same error. do you know why? i tryed also to compile it in wordpad, but same error.

    • DrAmine
      Ansys Employee

      Have you tried to compile the lines I have sent? Have you installed the required compilers (Visual Studio)?

    • Keyur Kanade
      Ansys Employee

      Please see this list of compatible visual studio applications using the link below and make sure you have a correct version installed on your system.


      https://forum.ansys.com/forums/topic/ansys-19-0-visual-studio-intel-parallel-studio-xe-version-required-for-upfs/


      Thank you.


      Keyur

    • seeta gunti
      Ansys Employee

      Hello ft,


      To compile the UDF, we need to install VS in your windows machine. You need to set either the environment variables or run the fluent from VS command prompt and compile the UDF. 


      for more information, please go through the below link.




       

    • Keyur Kanade
      Ansys Employee

      Is your issue resolved?


      Regards,


      Keyur

Viewing 6 reply threads
  • You must be logged in to reply to this topic.