CFD Online Logo CFD Online URL
Home > Forums > FLUENT

UDF problem

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

LinkBack Thread Tools Display Modes
Old   July 2, 2007, 09:35
Default UDF problem
Posts: n/a
Hi all, I am new to Fluent,i am solving unsteady stage,the inlet velocity is function of time. is it possible to write the following udf?

#include "udf.h" DEFINE_PROFILE(unsteady_velocity, thread, position) { face_t f; begin_f_loop(f, thread) { real t = RP_Get_Real("flow-time"); if (0<=t && t<=0.72) F_PROFILE(f, thread, position) = (-45.1407*t*t*t*t*t+ 47.2291*t*t*t*t + 11.42*t*t*t - 26.9213*t*t + 8.1241*t + 0.9117); if (0.72<=t && t<=1.44) F_PROFILE(f, thread, position) = (-45.1407*(t-0.72)*(t-0.72)*(t-0.72)*(t-0.72)*(t-0.72)+ 47.2291*(t-0.72)*(t-0.72)*(t-0.72)*(t-0.72) + 11.42*(t-0.72)*(t-0.72)*(t-0.72) - 26.9213*(t-0.72)*(t-0.72) + 8.1241*(t-0.72) + 0.9117); } end_f_loop(f, thread) } Even import successfully into Fluent but it was interrupted while running. the error is: divergence detect in AMG solver:temperature how can i setup the proper parameter like time step and number of time step? Thanks advance in for any reply

  Reply With Quote

Old   July 2, 2007, 22:09
Default Re: UDF problem
Posts: n/a
You can have a try...

Run fluent --> open your case.....

Solve-->Controls--> limits--> "Temperature range"

Good luck, Braket

  Reply With Quote


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

All times are GMT -4. The time now is 21:52.