|
[Sponsors] |
July 19, 2009, 00:31 |
fluent udf---I need help
|
#1 |
New Member
gy liang
Join Date: May 2009
Posts: 2
Rep Power: 0 |
Dear friends,
I am a new of using fluent.Recently I want to compare my results with fluent.At the free surface the y-direction gradient of x-direction velocity u and x-direction gradient of temperature have a relation as follows: du/dy=-dT/dx,dT/dy=0. I write my udf as follows ,but fluent will feed back error when I initialize .Could give me some help ? because most of the time I can not access to this web,so are you kind to contact me at gyliang@cqu.edu.cn? Best wishes ! /************************************************** **************************** myudf.c UDF for specifying v gradient of velocity u and temperature at the free surface ************************************************** ****************************/ #include "udf.h" real xigema = -1; /* the coefficient after dimensioned */ DEFINE_PROFILE(inlet_x_velocity,thread,position) { cell_t c; begin_c_loop(c, thread) { C_T_RG(c,thread)[1]=0.0; C_UDMI(c,thread,0)=C_T_G(c,thread)[0]; C_U_RG(c,thread)[1]=xigema*C_UDMI(c,thread,0); } end_c_loop(c, thread) } Last edited by gyliang; July 19, 2009 at 01:20. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Stopping a Fluent batch job AND saving the data! Possible? | Volker Pawlik | FLUENT | 13 | December 28, 2020 05:16 |
Two questions on Fluent UDF | Steven | Fluent UDF and Scheme Programming | 7 | March 23, 2018 04:22 |
Problems in lauching FLUENT | Lourival | FLUENT | 3 | January 16, 2008 17:48 |
FLUENT versions ... | Gautam | FLUENT | 3 | November 1, 2007 11:49 |
Run Fluent in batch mode | Shengping LUO | FLUENT | 2 | October 24, 2000 06:42 |