CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

How to calculate dissipation rate in FLUENT via UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 17, 2023, 13:34
Default How to calculate dissipation rate in FLUENT via UDF
  #1
New Member
 
hasan
Join Date: Apr 2023
Posts: 3
Rep Power: 3
hsncnr is on a distinguished road
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;
}
''
hsncnr is offline   Reply With Quote

Old   May 15, 2023, 12:43
Default
  #2
Member
 
Odisha
Join Date: Jan 2020
Posts: 59
Rep Power: 6
Siba11 is on a distinguished road
Hi, the ds[eqn] term will be the derivative of the source term. In your case, it won't be zero.
Siba11 is offline   Reply With Quote

Old   May 19, 2023, 12:35
Default
  #3
New Member
 
hasan
Join Date: Apr 2023
Posts: 3
Rep Power: 3
hsncnr is on a distinguished road
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.
hsncnr is offline   Reply With Quote

Old   May 19, 2023, 12:59
Default
  #4
Member
 
Odisha
Join Date: Jan 2020
Posts: 59
Rep Power: 6
Siba11 is on a distinguished road
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);
Siba11 is offline   Reply With Quote

Old   May 23, 2023, 02:58
Default
  #5
New Member
 
hasan
Join Date: Apr 2023
Posts: 3
Rep Power: 3
hsncnr is on a distinguished road
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)
hsncnr is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to calculate dissipation rate in OpenFOAM farzadmech OpenFOAM Post-Processing 4 November 24, 2022 02:20
How to solve UDF compilation problems in Fluent. pakk Fluent UDF and Scheme Programming 16 September 10, 2018 02:48
UDF to access interior surface to calculate mass flow rate shahjehan Fluent UDF and Scheme Programming 0 August 11, 2015 14:44
How to calculate Sherwood number by UDF in Fluent for double-diffusion study xjtuxht Fluent UDF and Scheme Programming 0 May 2, 2013 20:21
How to calculate the mass flow rate with UDF ? HP FLUENT 0 January 10, 2005 19:38


All times are GMT -4. The time now is 10:06.