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

fluent upf---I need help

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 18, 2009, 23:31
Default fluent udf---I need help
  #1
New Member
 
gy liang
Join Date: May 2009
Posts: 2
Rep Power: 0
gyliang is on a distinguished road
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 00:20.
gyliang is offline   Reply With Quote

Reply

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
Stopping a Fluent batch job AND saving the data! Possible? Volker Pawlik FLUENT 7 May 22, 2014 22:30
Two questions on Fluent UDF Steven Fluent UDF and Scheme Programming 4 September 20, 2013 16:30
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 05:42


All times are GMT -4. The time now is 17:54.