CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

udf problem

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

LinkBack Thread Tools Display Modes
Old   April 25, 2012, 07:00
Default udf problem
New Member
Join Date: Jan 2012
Posts: 12
Rep Power: 7
studen is on a distinguished road
#include "udf.h"

DEFINE_PROPERTY(v_viscosity, c, t)

real temp = C_T(c, t);
real mu_lam;

if (25<= temp <=45)

//mu_lam = 4.485e-8*(exp(1/((-7.5907e-7*temp*temp)+(3.8968e-4*temp)+4.0130e-2))); (this is the formula which it has to solve if written in one line doesnt work so it has been broken down)//
return mu_lam6;

guys my question is

1. when i set the wall conditions at 25 and the temp of fluid at 45 and initialze. it should show me the prandtl number in btw these ranges, using the viscosity function u can calculate the viscosity at 25 and corresponding prandtl number which is viscosity dependent (pr range is from 1.3*10^4 (@25) to 1.4*10^5 (@45)) but it doesnt show the above values, i need some one to please tell me what's wrong.

if some one figures it out please post it at the earliest

thanks in advance
studen is offline   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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 October 18, 2017 07:17
Problem with my udf july Fluent UDF and Scheme Programming 3 June 20, 2010 06:56
UDF problem mansha goraya FLUENT 0 October 29, 2007 01:31
udf compiling problem akr FLUENT 3 August 22, 2007 07:14
UDF problem chiseung FLUENT 4 January 10, 2002 10:58

All times are GMT -4. The time now is 23:45.