TAGGED: fluent, fluid, udf-viscosity-model, user-defined-function
-
-
May 14, 2023 at 8:30 am
Kevin Hoffer
SubscriberWe noticed that the turbulent viscosity for the detached eddy simulation is determined purely on the RANS model: S-A. This gives issues for simulating a single jet flow as it is unable to capture kelvin-helmholtz instabilities. After careful research, it was found that the turbulent viscosity in the free-mixing regions is about 50 times higher than for a purely large eddy simulation (LES). In order to overcome this issue we are seeking to replace the turbulent viscosity with a UDF that utilizes the SA turbulent viscosity definition when TKE DIS multiplier is < 0.9 (close to the wall) and converts to the Smagorinsky turbulent viscosity formulation otherwise. Our interpreted UDF is formulated as follows:
----------------------------------------------
#include "udf.h"
#include "dpm_tools.h"DEFINE_TURBULENT_VISCOSITY(mix_visc, c, t)
{
real nu_ratio, tke_diss_mult, mu_t;
real cv_volume, c_str_mg;nu_ratio = C_R(c,t) / C_MU_L(c,t);
tke_diss_mult = C_UDMI(c, t, 22);
cv_volume = C_VOLUME(c,t);
c_str_mg = C_STRAIN_RATE_MAG(c, t);
if (tke_diss_mult > 0.9)
{
mu_t = 0.012*pow(cv_volume, 0.66667)*c_str_mg;
}
else
{
mu_t = 1.2*nu_ratio/0.0000155*pow(nu_ratio, 3)/(pow(nu_ratio, 3) + 7.1);
}return mu_t;
}------------------------------------------
And is generating the following errors when attempting to run it (8 cores Windows 11):
==============================================================================
Node 6: Process 12700: Received signal SIGSEGV.
==============================================================================
==============================================================================
Node 3: Process 15496: Received signal SIGSEGV.
==============================================================================
==============================================================================
Node 4: Process 22168: Received signal SIGSEGV.
==============================================================================
999999: mpt_accept: error: accept failed: No such file or directory
999999: mpt_accept: error: accept failed: No such file or directory
999999: mpt_accept: error: accept failed: No such file or directory
999999: mpt_accept: error: accept failed: No such file or directory
999999: mpt_accept: error: accept failed: No such file or directory
999999: mpt_accept: error: accept failed: No such file or directory
999999: mpt_accept: error: accept failed: No such file or directory
999999: mpt_accept: error: accept failed: No such file or directory
999999: mpt_accept: error: accept failed: No such file or directory
999999: mpt_accept: error: accept failed: No such file or directory
999999: mpt_accept: error: accept failed: No such file or directory
999999: mpt_accept: error: accept failed: No such file or directory
999999: mpt_accept: error: accept failed: No such file or directory
999999: mpt_accept: error: accept failed: No such file or directory
999999: mpt_accept: error: accept failed:
===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= RANK 0 PID 15472 RUNNING AT KHLT01
= EXIT STATUS: -1 (ffffffff)
===================================================================================
===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= RANK 1 PID 7268 RUNNING AT KHLT01
= EXIT STATUS: -1 (ffffffff)
===================================================================================
===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= RANK 2 PID 17460 RUNNING AT KHLT01
= EXIT STATUS: -1 (ffffffff)
===================================================================================
===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= RANK 4 PID 22168 RUNNING AT KHLT01
= EXIT STATUS: -1 (ffffffff)
===================================================================================
===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= RANK 5 PID 23452 RUNNING AT KHLT01
= EXIT STATUS: -1 (ffffffff)
===================================================================================
===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= RANK 7 PID 19944 RUNNING AT KHLT01
= EXIT STATUS: -1 (ffffffff)
===================================================================================
The fl process could not be started.
There is no further error message given in the generated error file. We suspect that there is an error in the formulated UDF, is someone able to identify the issue? we would appreciate it greatly!
-
May 15, 2023 at 10:15 am
Rob
Ansys EmployeeWhat value does UDM 22 have when you initialise the model?
-
May 18, 2023 at 4:19 pm
-
May 18, 2023 at 4:24 pm
Rob
Ansys EmployeeOK. What do you get if you put the mu_t value in as a custom field function & plot?
-
May 18, 2023 at 5:12 pm
Kevin Hoffer
SubscriberI noticed that fluent crashes when initializing or data loading is performed while my UDF is loaded for the turbulent viscosity.... with the following message multiple times again:
999999: mpt_accept: error: accept failed: No such file or directory. -
May 19, 2023 at 9:26 am
Rob
Ansys EmployeeOK, next step is to eliminate parts of the UDF. Maybe start by setting the returned value as a constant? With debugging you've passed the first step in that it compiles. Next is to figure out which part of your maths isn't working as intended.
-
May 19, 2023 at 9:57 am
Rob
Ansys EmployeeDouble check the manual, https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v231/en/flu_udf/flu_udf_ModelSpecificDEFINE.html%23flu_udf_sec_define_turbulent_viscosity is the macro available for DES?
-
May 19, 2023 at 1:31 pm
Kevin Hoffer
SubscriberAfter careful debugging, it was found that the call for tke_diss_mult was indeed the issue. It is now computed in de UDF and works as intended. Thank you for the support Rob.
-
May 19, 2023 at 2:12 pm
Rob
Ansys EmployeeYou're welcome. Please post the working code for others to learn from.
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- Difference between K-epsilon and K-omega Turbulence Model
- The solver failed with a non-zero exit code of : 2
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error: Received signal SIGSEGV
-
5242
-
3299
-
2469
-
1308
-
988
© 2023 Copyright ANSYS, Inc. All rights reserved.