Fluids

Fluids

Topics relate to Fluent, CFX, Turbogrid and more

Compiling UDF on Linux HPC

TAGGED: ,

    • 1829116
      Subscriber

      Hi,

      I am trying to run a UDF for a dynamci mehs model on a HPC. I used these two lines to complie and load the udf:

      define/user-defined/compiled-functions compile "libudf" yes "udf.c" ""
      define/user-defined/compiled-functions load "udf.c"

      But I keep getting this error:
      Auto-compilation skipped. Could not find "libudf" or input files for creating "libudf" library

       

      Any thoughts?

    • Federico Alzamora Previtali
      Ansys Employee

      Hello,

      is the udf.c file located in the working directory?

    • 1829116
      Subscriber

       

      Yes my .sh code copies the udf.c to the directory. It created a libudf file with the udf.c in it. 

      I created a libudf file in the directory manually before submitting the job bu then the temperature I patch to a part disappears. What is the TUI to patch this:

       

      Thanks

       

      Hadi

    • 1829116
      Subscriber

      I am using this command: 

      followup:
      /solve/patch () (part-steel_tube) temperature 30

      but getting this error:

      > /solve/patch () (part-steel_tube)
      Error: eval: unbound variable
      Error Object: part-steel_tube
       temperature 30

    • Rob
      Forum Moderator

      Try running the command locally one step at a time. I think you need to move the brackets. 

      /solve/patch () (part-steel_tube) () temperature 30

       

    • 1829116
      Subscriber

      I tried locally on step at a time and this worked: 
      /solve/patch () temperature 30

       

      Nevertheless, when I monitor the temperature of the part-steel_tube, it is giving a wierd value:

       

      Any thoughts?

       

      Thanks,

      Hadi

    • Rob
      Forum Moderator

      The output is going to be in Kelvin - all the Fluent UDFs use and monitors tend to return SI units. 

Viewing 6 reply threads
  • The topic ‘Compiling UDF on Linux HPC’ is closed to new replies.