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

UDF Clarrification.

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 11, 2010, 03:47
Default UDF Clarrification.
  #1
New Member
 
Shrinand Iyer
Join Date: Jun 2010
Posts: 5
Rep Power: 7
Shrinand is on a distinguished road
I wanted to create a UDF for temperature distribution profile in a samll diverging channel, wherin height varies from 25mm to 51.78 mm along a line of 50 mm. the angle is 15 degrees.

Dimension is also given below.
Untitled.jpg

The temperature profile required is of parabolic eqn. My prev UDF is given by t=300+(6500*x). here x is in meters. so if x is .09 m, my temp reaches 300 + 585 = 885 k. The problem is that i want to vary it along y axis also. Full udf is given below.


#include "udf.h"
DEFINE_PROFILE(wall_x_temp, thread, index)
{
float r[100];
float x;
face_t f;
begin_f_loop(f, thread)
x=r[0];
F_PROFILE(f, thread, index) = 300.+(6500*x);
F_CENTROID(r, f, thread);
end_f_loop(f, thread)

}

Pls help
Shrinand 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 parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 01:27
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


All times are GMT -4. The time now is 12:59.