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

K-Omega UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 27, 2014, 04:57
Unhappy K-Omega UDF
  #1
New Member
 
Omar Osama Mohamed
Join Date: Nov 2014
Posts: 26
Rep Power: 11
Omarspace is on a distinguished road
Hi Dear,
It is the first time that I have to model turbulent fluid. I am supposed to use K-Omega Model. It asks me to define prandtl number for energy and wall as well.
for alpha I don't know how to access it. I only find that command "rng_alpha(1., mu + mu_t, mu)" which is for K-epsilon RNG so how to get alpha that is used in K-Omega ?
I want also to know if this udf is right or i have to change it
Thanks in Advance
Regards
========================================


#include "udf.h"

// For Energy Prandtl Number //

DEFINE_PRANDTL_K(user_pr_k,c,t)
{
real pr_k, alpha;
real mu = C_MU_L(c,t);
real mu_t = C_MU_T(c,t);

alpha = rng_alpha(1., mu + mu_t, mu);
pr_k = mu_t/((mu+mu_t)*alpha-mu);
return pr_k;
}

//*************************//
//for OMEGA DISSIPATION//
DEFINE PRANDTL_O(user_pro_o,c,t)
{

real pro_o ;
pro_o=2.00 ;
return pro_o ;

}

//*******************//
//For Wall//
DEFINE PRANDTL_T_WALL(user_pr_t_wall,c,t)
{

real pr_t_wall;
pr_t_wall=0.85;
return pr_t_wall ;

}
Omarspace 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
parse error while interpreting udf Kristin Fluent UDF and Scheme Programming 3 March 15, 2012 06:43
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! alban Fluent UDF and Scheme Programming 2 June 8, 2010 18:54
dynamic mesh and udf problem boboroo FLUENT 1 January 20, 2008 21:26
I need UDF help. S.Whitney FLUENT 0 October 15, 2007 11:29


All times are GMT -4. The time now is 07:56.