|
[Sponsors] |
April 25, 2012, 08:00 |
udf problem
|
#1 |
New Member
studen
Join Date: Jan 2012
Posts: 12
Rep Power: 14 |
#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 |
|
|
|
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 07:05 |
Problem with my udf | july | Fluent UDF and Scheme Programming | 3 | June 20, 2010 07:56 |
UDF problem | mansha goraya | FLUENT | 0 | October 29, 2007 01:31 |
udf compiling problem | akr | FLUENT | 3 | August 22, 2007 08:14 |
UDF problem | chiseung | FLUENT | 4 | January 10, 2002 10:58 |