-
-
November 18, 2023 at 6:07 pm
smostafayi
SubscriberI 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?
-
November 20, 2023 at 1:40 pm
Federico
Ansys EmployeeI 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.
-
November 20, 2023 at 1:44 pm
smostafayi
SubscriberThanks for your reply.
There is no problem when I use constant flow inlet. Also, the debuging shows no errors in my code.
-
November 20, 2023 at 2:08 pm
Federico
Ansys EmployeeI meant constant mass flow rate using your UDF.
-
-
November 20, 2023 at 2:36 pm
smostafayi
SubscriberYes, I tried that one too. It works properly, but when I use variables in the function (density, concnetration , etc.), I have problem with initializationÂ
-
November 21, 2023 at 3:16 pm
Federico
Ansys EmployeeSo 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.
-
-
- The topic ‘Problem with UDF initializing’ is closed to new replies.
-
3150
-
1013
-
951
-
858
-
797
© 2025 Copyright ANSYS, Inc. All rights reserved.