CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

I have problem of UDF with turbulent premx source.

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

LinkBack Thread Tools Search this Thread Display Modes
Old   February 16, 2005, 03:34
Default I have problem of UDF with turbulent premx source.
Posts: n/a
Hi, I want to know if somebosy has used this UDF before. Since I have problems in activating this in my new simulation. The UDF is provided in website.

/************************************************** *****************/ /* UDF that specifies a custom turbulent flame speed and source */ /* for the premixed combustion model */ /************************************************** *****************/

#include "udf.h" #include "sg_pdf.h" /* not included in udf.h so must include here */

DEFINE_TURB_PREMIX_SOURCE(turb_flame_src, c, t, turb_flame_speed, source) { real up = TRB_VEL_SCAL(c,t); real ut, ul, grad_c, rho_u, DV[ND_ND];

ul = Ul_par_premix(C_FMEAN(c,t)); rho_u = rho_par_premix(C_FMEAN(c,t));




grad_c = sqrt( NV_DOT(DV, DV) );


ut = ul*sqrt( 1. + SQR(up/ul) );

*turb_flame_speed = ut; *source = rho_u*ut*grad_c; }

Activating a Turbulent Premixed Source UDF in FLUENT

Once you have compiled and linked the source code for a custom turbulent premixed source UDF, you can activate it in the User-Defined Function Hooks panel in FLUENT. See Section 8.2.5 for more details.
  Reply With Quote


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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 06:05
UDF using problem, error happens-heip!! Michael FLUENT 1 December 9, 2008 07:51
UDF for energy source João Fernandes FLUENT 4 October 17, 2008 04:53
UDF for energy source mauricio sanchez FLUENT 0 August 30, 2005 15:56
help on UDF mass source shao1 FLUENT 2 July 11, 2002 20:36

All times are GMT -4. The time now is 05:18.