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

UDF for Pope Correction to k-e model

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 6, 2007, 15: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

Reply

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: volume fraction gradient in eulerian model jwwang FLUENT 22 April 15, 2015 06:27
UDF for defining granular viscosity in mixture model priyanka.asp Fluent UDF and Scheme Programming 0 March 25, 2010 13:32
How to access only one phase in multiphase model by UDF wersoe Fluent UDF and Scheme Programming 0 September 23, 2009 07:57
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 00:18.