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

Udf 3d

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 26, 2012, 23:30
Default Udf 3d
  #1
New Member
 
Soumya Anantharaman
Join Date: Apr 2012
Posts: 1
Rep Power: 0
Soumya is on a distinguished road
Hey All,

My question is about a 3D rectangular channel. I have a UDF defined for a temperature profile along the length (linear). I have modified my channel to a 3D one, but I do not want a temperature variation along the z direction... Will the code below work or should I specify a different function for z ??


#include "udf.h"

DEFINE_PROFILE(test2pressure,thread,position)

{
real y[ND_ND];
real x;
face_t f;

begin_f_loop(f,thread)
{
F_CENTROID(y,f,thread);
x=y[0];
F_PROFILE(f, thread, position) = (6.3571*x)+ 291.61 ;
}
end_f_loop(f,thread)
}
Soumya is offline   Reply With Quote

Reply

Tags
3d flow, udf for temp. profile

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 22: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 00:27
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 04:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


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