Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Problem with UDF initializing

    • Sepehr Mostafayi
      Subscriber

      I am trying to run a multiphase model, with a UDF mass flux on a inlet, the mass flux is the function of the concentation and density, the code is compiled and loaded perfectly, but when I try to initial the model, it has errors and the software stops working, could anyone please help me with the possible reason?

    • Federico
      Ansys Employee

      I would recommend starting simple and working your way in complexity as your able to run the UDF.

      Start with setting a constant mass flow rate at the inlet and see where this fails. You can also insert some debugging messages in your UDF for troubleshooting.

    • Sepehr Mostafayi
      Subscriber

      Thanks for your reply.

      There is no problem when I use constant flow inlet. Also, the debuging shows no errors in my code.

      • Federico
        Ansys Employee

        I meant constant mass flow rate using your UDF.

    • Sepehr Mostafayi
      Subscriber

      Yes, I tried that one too. It works properly, but when I use variables in the function (density, concnetration , etc.), I have problem with initialization 

      • Federico
        Ansys Employee

        So the problem might be with your mass flux function. See if your able to implement it in a simple model. If that doesn't work, the UDF is the problem; if it works, the problem is with your case setup.

Viewing 3 reply threads
  • The topic ‘Problem with UDF initializing’ is closed to new replies.