-
-
April 4, 2024 at 2:36 pmLuuk van der TuinSubscriber
In a 2D, axisymmetric domain, I am modeling a turbulent swirl flow. I want the turbulent viscosity to be dependent on the velocity gradient in the y-direction (x-axis is the symmetry axis) of the swirl velocity. In the UDF, I use "C_W_G(c,t)[1]" to find the gradient of the swirl velocity. I can compile and load the UDFs, but when I start the initialization, the error : "999999 mpt_accept error accept failed no such file or directory " occurs and fluent closes. The error does not occur when I use "C_U_G(c,t)[1].Â
#include "udf.h"ÂDEFINE_TURBULENT_VISCOSITY(user_mu_t,c,t){Â real mu_t;Â real R;Â real rho = C_R(c,t);Â real L;Â real y;Â real dUdy = C_U_G(c,t)[1];Â real dSwirldy = C_W_G(c,t)[1];Â real x[ND_ND];Â C_CENTROID(x,c,t);Â y = x[1];Â R = 0.05;ÂÂ L = R*(0.14 - 0.08*(y/R)*(y/R) - 0.06*(y/R)*(y/R)*(y/R)*(y/R) );ÂÂ mu_t = rho*L*L*pow( pow(dSwirldy,2.) ,0.5);ÂÂ return mu_t;} -
April 4, 2024 at 4:01 pmRobForum Moderator
Check the C_U_G and C_W_G terms have a value: ie read https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v241/en/flu_udf/flu_udf_DataAccessMacros.html and check you've retained the data.Â
-
April 8, 2024 at 3:44 pmLuuk van der TuinSubscriber
Are C_W and C_W_G the right macros to use to get the swirl velocity and its gradient? When I run a simulation with the standard k-epsilon model, I get zero velocity when I plot 'Velocity.z' and a non-zero velocity profile when I plot 'Swirl Velocity', while plotting 'Velocity.x' and ' Axial velocity' gives the same result.
-
April 8, 2024 at 4:04 pmRobForum Moderator
I think so, check you used axisymmetric with swirl when you set the options in the General panel. Swirl should tie in with the "z" component in some way. https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v241/en/flu_udf/flu_udf_DataAccessMacros.html
-
April 9, 2024 at 3:22 pmLuuk van der TuinSubscriber
Yes, I selected axisymmetric Swirl. I checked whether C_W(c,t) returns the swirl velocity component, and it does. The program runs just fine when I use C_W in the udf. But, when I use C_W_G(c,t), I receive the error "999999: mpt_accept: error: accept failed: No error" and the program closes immediately. This happens also if I do the initialization before I select the user-defined turbulent viscosity in the k-epsilon model.Â
-
April 9, 2024 at 3:27 pmRobForum Moderator
Did you retain the data? Read the paragraphs above the table. Â https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v241/en/flu_udf/flu_udf_DataAccessMacros.html
-
April 9, 2024 at 3:37 pmLuuk van der TuinSubscriber
I'm sorry, but I don't have access to the link you sent. How can I check if I retained the data?
-
April 9, 2024 at 3:43 pmRobForum Moderator
Click on Help in Fluent, then paste the link into the browser.Â
-
April 9, 2024 at 4:04 pmLuuk van der TuinSubscriber
If I retain the data with the command "solve/set/advanced/retain-temporary-solver-mem.", I receive the same error message.
-
April 10, 2024 at 8:43 amRobForum Moderator
As far as I know it should work, I'll check. You may need to cheat using UDM and UDS  https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v241/en/flu_udf/flu_udf_DataAccessMacros.html%23flu_udf_example_udm_uds_usage for gradients.Â
-
April 10, 2024 at 10:11 amRobForum Moderator
Can you try on just one core if you're not?Â
-
April 10, 2024 at 12:52 pmLuuk van der TuinSubscriber
I have run the solver in serial mode, and I also tried runnig the simulation on the cluster instead of my local computer but in any case I still receive an error.
-
April 10, 2024 at 2:40 pmRobForum Moderator
OK, looks like the macro isn't available, and I'm harassing the developer to see if we can do something about it for a future release. For now, have a look at the UDM/UDS gradients in the link I shared.Â
-
April 10, 2024 at 3:20 pmRobForum Moderator
OK, I can't share the solution as it's not (yet) public: it should show up in the Knowledge materials once it's signed off.Â
-
- The topic ‘Swirl velocity gradient in 2D axisymmetric domain’ is closed to new replies.
- Non-Intersected faces found for matching interface periodic-walls
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Script error Code: 800a000d
- Cyclone (Stairmand) simulation using RSM
- Fluent fails with Intel MPI protocol on 2 nodes
- error udf
- Diesel with Ammonia/Hydrogen blend combustion
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Script Error
-
1241
-
543
-
523
-
225
-
209
© 2024 Copyright ANSYS, Inc. All rights reserved.