Fluids

Fluids

Topics relate to Fluent, CFX, Turbogrid and more

Issues with running a compiled UDF case and data on a Linux supercomputer

    • shitizsehgal
      Subscriber

      Hi,

      I have set up a simulation on my Windows machine and it has UDFs compiled to solve for the desired physics. The simulation is running fine on the Windows machine, but I am having a hard time running this simulation on my university's Linux-based supercomputer.


      Basically, I need help with the procedure (journal file, maybe?) for running a simulation with UDFs in it on a Linux supercomputer. Please help.

    • Rob
      Ansys Employee
      You'll need to recompile the UDF for the cluster: Linux and Win10 libraries are different. You may also need to convert the Win10 text into Linux as Windows scatters a load of white space characters into the file that Linux doesn't like. We use:
      dos2unix myfile.c
      to get around this, it's set on our clusters. Not sure if that's normal as it's worked like that since we were forced onto Windows desktops about 15 years ago.
    • shitizsehgal
      Subscriber
      Hi Rob,
      I am sure what you are suggesting works too. However, I fixed the problem using a different way. Basically, I unchecked the option of compiling via the built-in compiler and the UDF compiled using a Microsoft compiler. Not sure if it was Visual Studio. Running the compiled case and data with UDF and libudf on a Linux supercomputer went fine and I was able to run the simulation.
    • Rob
      Ansys Employee
      OK, the LINUX machine has a proper compiler in the OS, the built in compiler is intended to bypass the whole Microsoft VS mess that comes with every release as Microsoft move files/change package names. Sounds like the inbuilt compiler may need checking on LINUX.
Viewing 3 reply threads
  • You must be logged in to reply to this topic.