-
-
April 4, 2024 at 2:36 pm
Luuk van der Tuin
SubscriberIn 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 pm
Rob
Forum ModeratorCheck 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 pm
Luuk van der Tuin
SubscriberAre 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 pm
Rob
Forum ModeratorI 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 pm
Luuk van der Tuin
SubscriberYes, 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 pm
Rob
Forum ModeratorDid 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 pm
Luuk van der Tuin
SubscriberI'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 pm
Rob
Forum ModeratorClick on Help in Fluent, then paste the link into the browser.Â
-
April 9, 2024 at 4:04 pm
Luuk van der Tuin
SubscriberIf 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 am
Rob
Forum ModeratorAs 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 am
Rob
Forum ModeratorCan you try on just one core if you're not?Â
-
April 10, 2024 at 12:52 pm
Luuk van der Tuin
SubscriberI 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 pm
Rob
Forum ModeratorOK, 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 pm
Rob
Forum ModeratorOK, 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.
- How do I get my hands on Ansys Rocky DEM
- Script Error
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- convergence issue for transonic flow
- Facing trouble regarding setting up boundary conditions for SOEC Modeling
- Point exception in erosion calculation
- Errors with multi-connected bodies using AQWA
- Script Error Ansys
-
2337
-
925
-
599
-
591
-
527
© 2025 Copyright ANSYS, Inc. All rights reserved.