|
[Sponsors] |
March 5, 2012, 05:32 |
udf initalizing problem
|
#1 |
New Member
studen
Join Date: Jan 2012
Posts: 12
Rep Power: 14 |
#include "udf.h"
DEFINE_PROPERTY(cell_viscosity, c,t) { double u, uo, A, B, C, T; //uo, A, B, C are constant uo = 4.485e-8; A = -7.5907e-7; B = 3.8968e-4; C = 4.0130e-2; for (T=1; T<101; T++) { u = uo*(exp(1/((A*T*T)+(B*T)+C))); printf ("T = %3.0f, u= %3.8f \n", T, u); } return u; } this is my programme to simulate heat transfer considering variable viscosity, the programme can be interpreted but when i initalize it goes into an infinte loop, need suggestions and help. 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 06:05 |
what's the problem with my udf | zzyan | FLUENT | 0 | November 4, 2010 03:56 |
Problem with my udf | july | Fluent UDF and Scheme Programming | 3 | June 20, 2010 06:56 |
udf compiling problem | akr | FLUENT | 3 | August 22, 2007 07:14 |
UDF problem | chiseung | FLUENT | 4 | January 10, 2002 09:58 |