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

UDF for Pope Correction to k-e model

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 6, 2007, 14:26
Default UDF for Pope Correction to k-e model
  #1
tristan
Guest
 
Posts: n/a
Hi,

Does anyone have a DEFINE_SOURCE UDF that implements this correction?

I have given it a go (see below) but the solution either diverges or becomes essentially laminar (no mixing at all...). Can anyone see any errors?

DEFINE_SOURCE(pope_correction,c,t,dS,eqn) { double C_eps_3; double chi, radius, source; double x[ND_ND];

C_eps_3 = 0.79;

C_CENTROID(x,c,t); radius = x[1];

chi = (C_DUDY(c,t) - C_DVDX(c,t)) * (C_DUDY(c,t) - C_DVDX(c,t)); chi = (C_U(c,t) / radius) * chi; chi = C_K(c,t) * C_K(c,t) / C_D(c,t) * chi; chi = 0.25 * C_eps_3 * C_R(c,t) * chi;

source = chi; dS[eqn] = 0.0;

return source; }
  Reply With Quote

Old   February 13, 2024, 10:45
Default
  #2
New Member
 
Hafidz Azhar J
Join Date: Sep 2023
Location: Earth
Posts: 1
Rep Power: 0
xhaza is on a distinguished road
Been looking for Pope correction using UDF aswell
xhaza is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
UDF for defining granular viscosity in mixture model priyanka.asp Fluent UDF and Scheme Programming 7 May 19, 2019 18:16
How to access only one phase in multiphase model by UDF wersoe Fluent UDF and Scheme Programming 1 January 4, 2017 07:11
udf: volume fraction gradient in eulerian model jwwang FLUENT 22 April 15, 2015 06:27
The problem of UDF in Non premixed combustion model zhangyuan Main CFD Forum 0 May 25, 2009 09:41
UDF error : DEFINE_PROPERTY with PDF Model Abhilash Chandy FLUENT 0 June 2, 2006 17:07


All times are GMT -4. The time now is 19:31.