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

udf problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2012, 07:00
Default udf problem
  #1
New Member
 
studen
Join Date: Jan 2012
Posts: 12
Rep Power: 14
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_lam1=-7.5907e-7*temp*temp;
mu_lam2=3.8968e-4*temp;
mu_lam3=4.0130e-2;
mu_lam4=mu_lam1+mu_lam2+mu_lam3
mu_lam5=exp(1/mu_lam4)
mu_lam6=4.485*mu_lam5

//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

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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 06:05
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 00:31
udf compiling problem akr FLUENT 3 August 22, 2007 07:14
UDF problem chiseung FLUENT 4 January 10, 2002 09:58


All times are GMT -4. The time now is 04:22.