-
-
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
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- error udf
- Cyclone (Stairmand) simulation using RSM
- Diesel with Ammonia/Hydrogen blend combustion
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Fluent fails with Intel MPI protocol on 2 nodes
- Encountering Error in Heterogeneous Surface Reaction
- Script Error
-
1181
-
488
-
487
-
225
-
201
© 2024 Copyright ANSYS, Inc. All rights reserved.