-
-
August 29, 2018 at 3:29 pm
-
August 29, 2018 at 6:54 pm
DrAmine
Ansys EmployeeSearch in the Fluent customization for the macro DEFINE_PROPERTY and create the expression for the viscosity,
-
August 30, 2018 at 12:29 am
klu
Ansys EmployeeAdd to abenhadj, the macro to access cell temperature is C_T(c,t).
-
August 30, 2018 at 5:41 am
seeta gunti
Ansys EmployeeHello Devank,
You can refer Fluent Customization documentation under "Detailed Examples". In that, DEFINE_PROPERTY macro is explained with an example of a variable viscosity profile to simulate the solidification. You can try the similar UDF with dynamic viscosity profile. Hope this help you.
-
August 30, 2018 at 7:07 am
Devank12
Subscriber#include "udf.h"
DEFINE_PROPERTY (cell_viscosity,c,t)
{
real mu;
real temp = C_T(cell, thread);
mu =2.414*e-05* double pow(double 10, double 248/T-140);
return mu;
}
i have developed a UDF for dynamic viscosity . i dnot know which is correct. if any correction plz inform me
-
August 30, 2018 at 7:23 am
Nownesh
Ansys EmployeeHello
In DEFINE_PROPERTY (cell_viscosity,c,t), and real temp = C_T(cell, thread);... c,t and cell & thread names should be consistent.
-
August 30, 2018 at 8:18 am
DrAmine
Ansys Employee#include "udf.h"
DEFINE_PROPERTY(cell_viscosity,c,t)
{
real mu = 1e-5;
real fac = 1.0;
fac = 248.0/(C_T(c,t)-140.0);
mu =2.414*exp(-0.5)*pow(10.0, fac);
C_UDMI(c,t,0) = mu;
return mu;
}
Please check the customization manal and attend a UDF Training.
-
May 10, 2019 at 8:52 am
dsub5
Subscriberhello everyone. i have to create udf for dynamic viscosity and thermal conductivity coefficient. but have no idea about codes.
here is the formulas. if anyone can help me, i wii be glad.
mu=(3.4*10^-7*T^2)-(2.3*10^-4*T)+(3.9*10^-2)
k=0.004961*T-0.8078 -
August 17, 2019 at 11:37 am
ziadkoussa
Subscriberhello,
i am running the same udf you posted as i need the same values however after i interpret the udf and change the viscosity to user defined, when i try to initialise and calculate i get an error message saying "f1 process could not be started" and fluent automatically closes.
Help please
-
August 19, 2019 at 5:06 am
DrAmine
Ansys EmployeeTry to compile. -
August 19, 2019 at 8:53 am
ziadkoussa
SubscriberHi Amine,
thank you for your help.
Is there anything i need to change in the code to compile? (I am still new to ansys)
Thanks
-
August 19, 2019 at 9:34 am
DrAmine
Ansys EmployeeYou need to install a compiler. Check in the forum for several Compiler threads. In your case your using the UDF I Posted I guess. Please check if you have defined a User Memory in Fluent.
-
September 27, 2019 at 10:58 am
Eirene2015
SubscriberWrong help provided by abenhadj,
made me go through a whole day learning how to compile the UDFs, but the issue is the fact that his syntax is wrong.
C_UDMI(c,t,0) is not defined yet, so you cannot allocate values to it, thus the user receives a segmentation fault error!
This UDF does not require compilation. A simple interpret will work as long as the issue of C_UDMI(c,t,0) is omitted.
Do not wast time in compiling this code as I did!
-
- You must be logged in to reply to this topic.

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
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
-
2656
-
2120
-
1347
-
1118
-
461
© 2023 Copyright ANSYS, Inc. All rights reserved.