Fluids

Fluids

Topics relate to Fluent, CFX, Turbogrid and more

UDF is not interpreting in 2021R new versions (student)

TAGGED: , ,

    • Abbasraza20000220
      Subscriber

      Hello to all of you.

      I am writing to ask a query that I have been using 2019 full version Ansys for my work. Now I install student version and try to run simulations. The same UDF is not being interpreted giving error. What is the reason? Can any one threw light over this issue?

      Please find the attachment. What to do? I have written in .c extension. 2019 and 2016 were not giving any error.

      Regards,


      Abbas Raza

    • Rob
      Forum Moderator
      Scroll up to see if there is anything more diagnostic.
    • Abbasraza20000220
      Subscriber
      Nothing but before the final line, it gives something else then turns into this. I have attached all screenshots from start till end.
      Regards Abbas Raza

    • Abbasraza20000220
      Subscriber
      Mr. Rob Any suggestion ? I didn't get error on 2019 & 2016. Furthermore, Can you tell me how to use in built clang compiler ? any useful video or comments?
      Regards Abbas Raza
    • Rob
      Forum Moderator
      To use the CLANG compiler tick the box that says "use included compiler" in the Compiler panel. The .c.c shouldn't cause a problem, try without the spaces in the file name.
    • DrAmine
      Ansys Employee
      Compile it and report using the built-in compiler. If having issues compile a dummy UDF or an example from the manual where the same DEFINE_ Macro is used.
    • Abbasraza20000220
      Subscriber
      Hi Mr Rob & Dr Amine,
      I used in built compiler option, it proceed further but on loading it gives error below:
      In the conventional way while interpreting, I want to add it gives error in line 187 etc... then after few seconds turns in to error in line 15. This type of error I didn't get in the previous versions. Please see the below attachment. My udf consists hardly 100 lines. First it says error in 187 then error in line 15.

      Lastly, I tried a simple UDF it interpreted what it is given in manual. It progresses but on running the simulation window of fluent shutsdown.
      Seeking your advice in this matter.
      Regards Abbas Raza
    • Rob
      Forum Moderator
      What does it say above what you posted when using the included compiler?
    • Abbasraza20000220
      Subscriber
      on building its giving error like this below posted. I am using DEFINE_PROFILE. Is this macro having any issue with this version?
      Regards Abbas Raza
    • Abbasraza20000220
      Subscriber
      2016 & 2019 did not give error with this udf. why this version? Any different thing in this version?
      Regards Abbas Raza
    • Rob
      Forum Moderator
      No issues with the macro. The error means you haven't compiled the code, what happens when you try and compile?
    • Abbasraza20000220
      Subscriber
      Same error. ran off line 15. Even though I have added spaces and tried but error again in line 15.
      Is student version has limitation for UDF? As its a lengthy UDF almost of 80 LINES.
      Regards Abbas Raza
    • Rob
      Forum Moderator
      80 lines isn't lengthy, and I'm not aware of any limitations.
      What is the compiler error? Please post all of it.
    • Abbasraza20000220
      Subscriber
      This is the error If I tried to compile UDF.
      Regards Abbas Raza
    • Rob
      Forum Moderator
      No, that's the error on LOADING. What extra text is above what you've posted?
    • DrAmine
      Ansys Employee
      1/Open Fluent Standalone (outside of the workbench)
      2/Compile the UDF and load it
      3/Read the case file

      What does happen?
    • sv1104
      Subscriber
      Has this been resolved ?
      I seem to have the same issue with ANSYS 21R2 Fluent. I was unsuccessful with clang (inbuilt compiler), visual studios (19 and 22), and the standalone bootup. The compilation process begins, creates a libudf folder inside the FFF folder, which misses the libudf.dll file. I previously have run the same udf sequences on ansys 21R1 and everything worked fine.
    • Nicole Pan Tavares
      Subscriber

      Hello, I’m using Ansys Student 2023 R2, and I'm getting the same problem. I tried to copy every step from a youtube channel, and i got the same problem, and on the video was everything okay. I thought the problem was using the right paste from the working directory, but I wasn't able to solve it. Please any help?
      In the video, was made a "txt" file for the UDF and it was loaded on the "interpreter". 

    • Rob
      Forum Moderator

      If you're interpreting a .c file you may find not all of the macros are supported. If you compile using the built in compiler (Win10/11 only) what happens? 

Viewing 18 reply threads
  • The topic ‘UDF is not interpreting in 2021R new versions (student)’ is closed to new replies.