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.

How to debug fluent UDFs on Visual Studio?

    • Shyam Prasad V Atri
      Subscriber

      Hello

      I am trying to find out if it is possible to connect fluent udfs through visual studio or visual studio code so that i can debug the UDFs if necessery.

      I am able to do so in Ansys Rocky and the process is given by Ansys Staff in this page

      (https://innovationspace.ansys.com/forum/forums/topic/debug-custom-module-in-rocky-with-visual-studio/)

      I want to know how to achieve the same for fluent. 

      Should I make changes in the JSON file, or is the process different for fluent?

      Please let me know.

    • Rob
      Forum Moderator

      Yes, but it's generally best to use Messages etc and READ the error messages. 

    • Shyam Prasad V Atri
      Subscriber

      I would like to try using the debugger in VS code similar to the one for Ansys Rocky.

      Please tell me how to setup the JSON file and how i can connect fluent in debug mode.

      It would be much appreciated if you could please provide the screenshots and some details of how to set up the debugger similar to the one provided by Ansys Rocky staff.

    • Rob
      Forum Moderator

      If it's not in the UDF manual I can't: it's also a function not even the person I talk to uses and he's been coding for 20+ years. 

    • Shyam Prasad V Atri
      Subscriber

      I do not understand this statement

      what are you trying to say

       "it's also a function not even the person I talk to uses and he's been coding for 20+ years. "

    • Rob
      Forum Moderator

      As in our expert uses Messages etc and never uses the debug, nor has he ever used it.

    • Shyam Prasad V Atri
      Subscriber

      It's ok if he has not used it.

      I want to try it.

      I do not know which file i should link in args of the json file? or if the procedure is different, i am not sure how to proceed. 

      Can you please tell me how I can set this up?

       

    • Rob
      Forum Moderator

      I can only refer you to the manual: if it's not covered then no, I can't tell you. Other community members are not under the same restrictions as Ansys staff. 

    • Shyam Prasad V Atri
      Subscriber

      I found one resource. It might also be helpful to other users who want to debug fluent UDF by using breakpoints. so i thought of posting it here. If anyone is trying to debug fluent udf use this resource. its very helpful.

      https://www.youtube.com/watch?v=sK7u416BOas

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