Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Compiling UDF in Ubuntu:

TAGGED: 

    • JaydeepRBS
      Subscriber
      Hi, I am using a UDF for velocity profile in ansys fluent. I have working udf for windows version of ansys fluent.n when I try to use the same UDF in ubuntu based Ansys fluent, it doesn't work. Even, its not working in interpretation mode.Error:ncpp: Error trying to exec 'ccl:execvp: no such file or directorynError: home/multiphase/Desktop/XXX/case/udf.c:line 1: syntex error.I am trying to compile the following UDF :n#include udf.hnDEFINE_PROFILE(unsteady_velocity, thread, position)n{nface_t f;nreal t = CURRENT_TIME;nbegin_f_loop(f, thread)n{nF_PROFILE(f, thread, position) =50*(1+0.4*sin(5775.952*t));n}nend_f_loop(f, thread)n}nnJaydeep Singhn
    • YasserSelima
      Subscriber
      The error you are receiving, probably, means you need to install a package. Not sure what package but you can search for this error in stackoverflow and most probably you will find many answers.nI have a question for you, is there Ansys Fluent for Ubuntu?!!n
    • Rob
      Forum Moderator
      If you copied the file from Win10 to Ubunto, did you use the dos2unix command? LINUX tends to have all of the compilers already installed but as we don't officially support Ubuntu I can't say for sure. You may find there are some libraries missing that cause problems. n
    • Amine Ben Hadj Ali
      Ansys Employee
      If you are using a recent version you might play a bit with Fluent Expressions which can help you to avoid coding simple profile function like the one you now want to use.n
    • JaydeepRBS
      Subscriber
      Thank you for your responses.nnI am using Ansys for Linux which is preinstalled in my College system and HPC cluster. it is installed using singularity. n,I just took my udf along with case and data file (generated in window based Ansys) and tried compiling/interpreting the udf in the fluent (In Linux), nI am using Ansys 18.1 version, If I remember correctly, this functionality is recently introduced and is available in ansys 2020 version. My college have only 18.1 version of Ansys, so I have to use udf. n
    • YasserSelima
      Subscriber
      I am not sure why one of my comments was removed. nIf you google the error you received you will find it means cc1 was not found. Probably it will need a system administrator to install a package.
Viewing 5 reply threads
  • The topic ‘Compiling UDF in Ubuntu:’ is closed to new replies.