CFD Online Logo CFD Online URL
Home > Forums > FLUENT

UDF for Pope Correction to k-e model

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

LinkBack Thread Tools Display Modes
Old   March 6, 2007, 15:26
Default UDF for Pope Correction to k-e model
Posts: n/a

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


Thread Tools
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 On
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 1 May 21, 2017 12:42
How to access only one phase in multiphase model by UDF wersoe Fluent UDF and Scheme Programming 1 January 4, 2017 08: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 12:15.