|
[Sponsors] |
How to calculate dissipation rate in FLUENT via UDF |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 17, 2023, 14:34 |
How to calculate dissipation rate in FLUENT via UDF
|
#1 |
New Member
hasan
Join Date: Apr 2023
Posts: 3
Rep Power: 3 |
Hi;
I want to calculate the dissipation rate in Fluent using user define function. But I am receiving below error. My UDF code is below. what is the solution for this error? thanks a lot. Error ''BAD TERMINATION OF ONE OF YOUR APPLICATION PRECESSS RANK 3 PID 5800 RUNNING AT DESKTOP'' UDF '' #include "udf.h" #include "mem.h" DEFINE_SOURCE (new_source, c, t, ds, eqn) { real source; source= 0.001*pow(C_D(c,t) ,4.6); ds[eqn] = 0.; return source; } '' |
|
May 15, 2023, 13:43 |
|
#2 |
Member
Odisha
Join Date: Jan 2020
Posts: 59
Rep Power: 6 |
Hi, the ds[eqn] term will be the derivative of the source term. In your case, it won't be zero.
|
|
May 19, 2023, 13:35 |
|
#3 |
New Member
hasan
Join Date: Apr 2023
Posts: 3
Rep Power: 3 |
Thank you for your reply. can ANSYS calculate the derivative of turbulence kinetic energy? I cannot find it in the ANSYS user manual. Here, C_D(c,t) is turbulence kinetic energy.
|
|
May 19, 2023, 13:59 |
|
#4 |
Member
Odisha
Join Date: Jan 2020
Posts: 59
Rep Power: 6 |
Hi. You don't have to calculate the derivative of C_D(c,t). You have to calculate the derivative w.r.t C_D(c,t).
Basically, you're derivative term will be: ds[eqn] = 0.001*4.6*pow(C_D(c,t), 3.6); |
|
May 23, 2023, 03:58 |
|
#5 |
New Member
hasan
Join Date: Apr 2023
Posts: 3
Rep Power: 3 |
Although I added to the derivation express, I get the following error.
BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES RANK 0 PID 6920 RUNNONG AT DESKTOP- EXIT STATUS:-1 (fffffffff) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to calculate dissipation rate in OpenFOAM | farzadmech | OpenFOAM Post-Processing | 4 | November 24, 2022 03:20 |
How to solve UDF compilation problems in Fluent. | pakk | Fluent UDF and Scheme Programming | 16 | September 10, 2018 03:48 |
UDF to access interior surface to calculate mass flow rate | shahjehan | Fluent UDF and Scheme Programming | 0 | August 11, 2015 15:44 |
How to calculate Sherwood number by UDF in Fluent for double-diffusion study | xjtuxht | Fluent UDF and Scheme Programming | 0 | May 2, 2013 21:21 |
How to calculate the mass flow rate with UDF ? | HP | FLUENT | 0 | January 10, 2005 20:38 |