CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

UDF problem

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 2, 2007, 09:35
Default UDF problem
  #1
cotket
Guest
 
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
  #2
braket
Guest
 
Posts: n/a
You can have a try...

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

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

Good luck, Braket

  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
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 March 18, 2018 06:05
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 00:31
udf compiling problem akr FLUENT 3 August 22, 2007 07:14
UDF problem chiseung FLUENT 4 January 10, 2002 09:58


All times are GMT -4. The time now is 11:57.