We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Problem with UDF initializing

    • smostafayi
      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.

    • smostafayi
      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.

    • smostafayi
      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.