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

UDF-transient temperature profile boundary condition

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 2, 2013, 09:30
Default UDF-transient temperature profile boundary condition
  #1
Senior Member
 
Moha
Join Date: Mar 2013
Location: EU
Posts: 103
Rep Power: 0
ahvz is on a distinguished road
Hi,
how can I be sure that, if the UDF is true and work or not?

regards,


start the UDF:




/************************************************** *********************
udfexample.c
UDF for specifying transient temperature profile boundary condition
************************************************** **********************/

#include "udf.h"

DEFINE_PROFILE(Temp_Profile, thread, position)
{
face_t f;
real x[ND_ND]; /* this will hold the position vector */
real y;

begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
y = x[0];
F_PROFILE(f, thread, position) = (-1e-26*x*x*x*x*x*x)+(3e-21*x*x*x*x*x)-(3e-16*x*x*x*x)+(1e-11*x*x*x)-(2e-7*x*x)+((1/1000)*x)+13;

}
end_f_loop(f,t)
}
ahvz 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
UDF for degassing boundary condition peaker007 Fluent UDF and Scheme Programming 4 December 20, 2012 08:33
Boundary Temperature Profile UDF error shikamaru Fluent UDF and Scheme Programming 1 May 18, 2012 21:19
Domain Imbalance HMR CFX 3 March 6, 2011 21:10
(Tabular) Transient Boundary Condition ??? ├ľnder FLUENT 0 September 25, 2006 09:19


All times are GMT -4. The time now is 20:55.